Search found 7 matches

by sidsi
Sun Jul 06, 2014 1:44 am
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 20976

Re: 444 - Encoder and Decoder (runtime Error!)

brianfry713 wrote:I believe there is a blank line in the judge's input.
i got accepted after considering the massage can be more than 100 characters long. first it was TE while i assumed 90 would be good. then directly i consider 1000 and got accptd. :(
by sidsi
Thu May 15, 2014 1:26 pm
Forum: Volume 3 (300-399)
Topic: 383 - Shipping Routes
Replies: 27
Views: 5682

Re: 383 - Shipping Route

:D :D thnx vsha041 i don't think i could figure the two spaces... :)
by sidsi
Sat Apr 05, 2014 2:26 pm
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 20863

Re: uva 469

thnx :D
by sidsi
Fri Apr 04, 2014 7:13 pm
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 20863

Re: uva 469

why i am getting WA?? plz help... #include<stdio.h> #include<string.h> void f(int x,int y); char a[210][210]; int d[210][210]; int j=0,count=0; int main() { int t,x,y,line=0;char s[110]; scanf("%d",&t); getchar();getchar(); while(t--) { int i=0; while(gets(s)&&strlen(s)>0) {if ( s[0] == 'L' || s [0]...
by sidsi
Fri Mar 28, 2014 2:59 am
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 8905

Re: WA(118 - Mutant Flatworld Explorers)

where is the problem??? :( #include<stdio.h> #include<string.h> int main() { int x,y,c=0,m,n;char b[105],o; char a[105][105][105]; memset(a,0,sizeof(a)); scanf("%d %d",&m,&n); while(scanf("%d %d %c",&x,&y,&o)==3) {getchar();c=0; gets(b); for(int i=0;i<strlen(b);i++) { if(o=='N') { if(b =='L') o='W';...
by sidsi
Mon Mar 24, 2014 12:57 pm
Forum: Volume 109 (10900-10999)
Topic: 10976 - Fractions Again?!
Replies: 11
Views: 5698

Re: 10976 - Fractions Again?!

thnx, brainfry... :) accepted. but i dont understand the difference of using double or float in this code. :(
thnx again
by sidsi
Sun Mar 23, 2014 5:38 pm
Forum: Volume 109 (10900-10999)
Topic: 10976 - Fractions Again?!
Replies: 11
Views: 5698

Re: 10976 - Fractions Again?!

where is the problem in this code?? getting wrong answer #include<stdio.h> int main() {int d[1000],e[1000],i,k; float a,b,y; int c; double x; while(scanf("%d",&k)==1) { a=k*2; for( i=k+1,c=0;i<=a;i++) {y=i; x=(k*y)/(y-k); if(x==(int)x) {d[c]=(int)x,e[c]=(int)y; c++;} } printf("%d\n",c); for(i=0;i<c;...

Go to advanced search