Search found 96 matches

by uvasarker
Wed Dec 28, 2011 5:37 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 19457

490 - Rotating Sentences why? WA please help me

Anyone help me please, or give me some test cases. #include<stdio.h> #include<string.h> int main() { char s1[1001]={'\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0'...
by uvasarker
Mon Dec 26, 2011 10:52 am
Forum: Bugs and suggestions
Topic: Runtime Error Why? Anyone will help me?
Replies: 1
Views: 1200

Runtime Error Why? Anyone will help me?

Why runtime error occurs in a program. Please, tell me in details.
by uvasarker
Thu Dec 08, 2011 2:55 pm
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 33038

530 Binomial Showdown Time limit exceeded

Please, Help me Why TLE? #include <math.h> int main() { long long n,k; while(scanf("%lld %lld",&n,&k)==2) { long long num=1,d=1,i,a; if(n==0 && k==0) break; long long min = n - k; for(i=n; i > min; i--) num = num * i; for(i=k; i > 1; i--) d = d * i; a = num/d; printf("%lld\n",a); } return 0; }
by uvasarker
Fri Dec 02, 2011 3:36 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 16893

11428 - Cubes (about 7 times TLE and 3 times WA)

Anyone help me please, why WA? Here is my code (WA): #include <cstdio> #include <cmath> int main() { int n; //freopen("in_11428.txt","r",stdin); //freopen("out_11428.txt","w",stdout); while(scanf("%d",&n)==1) { int i,j,flag=0,m,k; int num,x3,y3; if (n==0) break; for(i=1;i<=(sqrt(n)/2)+1;i++) { x3=i*...
by uvasarker
Fri Dec 02, 2011 1:53 pm
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 10889

Re: 591-Box of bricks

print double new line such as mine:
printf("Set #%d",c);

printf("\nThe minimum number of moves is %d.\n\n",q);
by uvasarker
Sun Nov 20, 2011 1:26 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 20978

444 (Encoder Decoder) Why W A? Please, please help me

I removed my post after AC.
But I provide some critical test cases for you. Just check these and get AC.
Sample Input:

Code: Select all

aefd
z?.: ;e
001201
Sample Output

Code: Select all

00120110179
1019523856436221
fd

Go to advanced search