Search found 18 matches

by nahid
Fri Aug 22, 2008 8:19 pm
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 27726

Re: 11462 - Ages Sort

Thaks to Hellone and emotional. I got AC
by nahid
Thu Aug 21, 2008 8:33 pm
Forum: Volume 113 (11300-11399)
Topic: 11313 - Gourmet Games
Replies: 5
Views: 5822

11313 - Gourmet Games

As usual i'm having WA with this easy problem. here is my code. would u pls check it .
Thanks In advance.

#include <stdio.h>

int main()
{
int n,m,ns,lc,temp,t,count;

scanf("%d",&t);

while(t--)
{
scanf("%d%d",&n,&m);
ns = n/m;
lc = n%m;
temp = ns + lc;

count = 1;

while (temp>=m ...
by nahid
Tue Aug 19, 2008 9:04 pm
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 27726

Re: 11462 - Ages Sort WA

As usual, I'm having WA with 11462. may be i have problem in presentation. in most of the phe probem I get WA. her is my code, someone pls help me.

Code: Select all

removed after AC
by nahid
Sat Jun 21, 2008 1:11 pm
Forum: Volume 110 (11000-11099)
Topic: 11086 - Composite Prime
Replies: 33
Views: 23509

11086 - TLE

I'm having TLE for this code. anyone pls fix my probs. here is code.
#include<stdio.h>
#include<math.h>

#define MAX 2000000
#define PRIME 0
#define NOTPRIME 1

unsigned char flag[MAX];

void seive()
{
int i,j,sq;

flag[0]=flag[1]=NOTPRIME;
flag[2] = PRIME;


sq = (int) sqrt(MAX);

for (i = 4 ...
by nahid
Mon Jun 09, 2008 7:41 am
Forum: Volume 101 (10100-10199)
Topic: 10106 - Product
Replies: 98
Views: 40157

10106 - Product geting WA

I've read all the posts about this problem.and tried all the critical inputs, but, still WA. here is my code.

#include<stdio.h>
#include<string.h>
#define SIZEXYI 255
#define SIZEXYJ 510

int main()
{
char a[255],b[255];
int x[255],y[255],xy[SIZEXYI][SIZEXYJ],i,j,alen,blen,car,p,res[550 ...
by nahid
Thu May 22, 2008 12:48 am
Forum: Volume 114 (11400-11499)
Topic: 11455 - Behold my quadrangle
Replies: 21
Views: 24979

11455 - Behold my quadrangle

i'm getting right output for all smple input. but having WA in submission. if i had more crtical input, then it would easy to fix my bug. pls give me some critical inputs. if u need to cheak my code, i'll post it.
by nahid
Mon Feb 18, 2008 11:23 pm
Forum: Volume 102 (10200-10299)
Topic: 10281 - Average Speed
Replies: 39
Views: 21923

m2 WA

i'm getting WA on this code. could u tell pls, why?


#include<stdio.h>

int main()
{
double spd,pspd,pdis=0,tdis=0,itime=0,ctime;
long int hour;
int min,sec;
char c1,c2,c3;

while(scanf("%ld%c%d%c%d%c",&hour,&c1,&min,&c2,&sec,&c3)!=EOF)
{
if(c3==' ')
{
scanf("%lf",&spd ...
by nahid
Fri Jan 18, 2008 1:06 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51312

input limit of 105

105 problem description clearly told about positve integers. and my code replys right outputs due to the possible inputs which i got on net but not for negatve co-ordinates. what i should do?
by nahid
Tue Jan 01, 2008 10:58 pm
Forum: Volume 4 (400-499)
Topic: 424 - Integer Inquiry
Replies: 96
Views: 38497

Got AC, but.....

Thanks sohel vai. i've got AC. :D :D :D
Could u pls explain, why it is RE for C. another thing, on the descriptin of the problem, here didn't mention about new line after the output. is that rule, to print a new line after all the output (if it doesn't mention anything about newline)???? :roll ...
by nahid
Mon Dec 31, 2007 5:45 pm
Forum: Volume 4 (400-499)
Topic: 424 - Integer Inquiry
Replies: 96
Views: 38497

posted code

I've posted the code
by nahid
Sun Dec 30, 2007 7:08 am
Forum: Volume 4 (400-499)
Topic: 424 - Integer Inquiry
Replies: 96
Views: 38497

424 - Integer Inquiry

i've solved the problem 424 on visual c++. And run this code on visual C++ and Turbo C. For both compiler i've got expected output. But in case of submission i'm having RE for C. and CE for C++. what might be the problem? if u need to see my code, i'll post it. :roll: :roll: :roll: :roll:

OK, here ...
by nahid
Sat Dec 29, 2007 7:18 pm
Forum: C
Topic: link for GNU C compiler
Replies: 4
Views: 6218

link for GNU C compiler

From where, i can download "ANSI C 4.1.2 - GNU C Compiler with options: -lm -lcrypt -O2 -pipe -ansi -DONLINE_JUDGE", which suitable for windows platform?
by nahid
Thu Aug 30, 2007 3:43 pm
Forum: Other words
Topic: need some ad hoc problem
Replies: 1
Views: 2633

need some ad hoc problem

I need a list of Ad Hoc Problems. Can U help me?
by nahid
Thu Nov 30, 2006 5:52 pm
Forum: Volume 1 (100-199)
Topic: 145 - Gondwanaland Telecom
Replies: 62
Views: 22441

runing but not debuging

i have write a code for problem-145. this code is runing with 5-wornings, but not geting output. if i try to debug, geting message like" unhandled exeption"
HERE IS MY CODE.
PLEASE EXECUTE IT.



#include<stdio.h>
int sth,eth,sts,ets,td,te,tn1,tn2;
void timerd(int sth,int eth,int sts,int ets);
void ...
by nahid
Mon Nov 13, 2006 5:57 am
Forum: C++
Topic: input a iteger like a string
Replies: 3
Views: 2791

input a iteger like a string

I need to input two very long int in a single line seperated by a space. in this case "gets()" does not terminate by space(" ") . as the number of digits is undefined , i can't use "scanf()" with "while{}" loop.
a sample input is given .

/*************sample input*****************/

2(test case ...

Go to advanced search