Search found 5 matches

by fahim_xubayer
Thu Oct 29, 2009 1:27 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 162
Views: 16244

Re: 113- power of cryptography - What is the algorithm?

@ noor vai

have a look at the way you are taking the input :) it should be while(scanf("%lf %lf",&b,&a)==2) :)
hope this kids advice helps LOL :)
by fahim_xubayer
Wed Oct 28, 2009 11:15 pm
Forum: Volume 6 (600-699)
Topic: 644 - Immediate Decodability
Replies: 13
Views: 5875

Re: 644 - Immediate Decodability

getting WA.can anyone please help? #include<stdio.h> #include<string.h> int main(){ int a,b=0,d,e,f,x,y,z,bi[9][10],l,len[10],zz=1,aa,p,q; char c,m[11]; while(gets(m)){ l=strlen(m); len[b]=l; for(a=0;a<l;a++) bi[b][a]=m[a]-48; b++; if(m[0]!='9') continue; p=0;q=0; for(e=0;e<b;e++){ for(f=e+1;f<b;f++...
by fahim_xubayer
Tue Oct 27, 2009 11:08 pm
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 22076

Re: 494 WA

getting Wa can anyone help please? #include<stdio.h> #include<string.h> int main(){ unsigned long int a,b,d,x,y,z,l; char c,m[50000]; while(gets(m)){ l=strlen(m); b=0; for(a=0;a<l;a++){ c=m[a]; if(((c<65)||(c>122))||((c>90)&&(c<97))) continue; while(((m[a]>65)&&(m[a]<91))||((m[a]>96)&&(m[a]<123))){ ...
by fahim_xubayer
Wed Oct 21, 2009 9:30 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 67874

PC/UVa IDs: 110102/10189 MINESWEEPER

can anyone please tell me what is wrong with my algorithm? it is getting WA .in my compiler,there comes a warning everytime while compiling saying that the null characters is being ignored.however,it did produce correct answe ( test cases succeded); #include<stdio.h> #include<string.h> int main(){ l...
by fahim_xubayer
Wed Sep 23, 2009 3:18 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184435

Re: 100

i am new to programming. can anyone tell me why i am getting TLE for the following code-- #include<stdio.h> int main(){ unsigned long int a,b,c,d,e,f,x,y; while(scanf("%lu %lu",&x,&y)==2){ if(x>y){ a=x; b=y; } if(y>x){ a=y; b=x; } f=0; for(c=b;c<=a;c++){ d=c; e=0; while(1){ if(d==1) break; if(d%2==0...

Go to advanced search