Search found 215 matches

by ImLazy
Fri Jan 14, 2005 7:25 am
Forum: C
Topic: What's wrong with this "scanf()"??
Replies: 2
Views: 1917

What's wrong with this "scanf()"??

Code: Select all

#include<stdio.h>
int main()
{
  double p;
  scanf("%f",&p);
  printf("%f\n",p);
  return 0;
}
when input 11111, the output is -0.000000. Why??
by ImLazy
Thu Jan 13, 2005 3:46 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 7944

...

I'm sorry. I have realized it is a so stupid question. Now I have got AC in this problem.
by ImLazy
Thu Jan 13, 2005 10:11 am
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 7944

I have a question about problem 110.

I know nothing about Pascal's format, so I have a question: The sample output is: begin readln(a,b,c); if a < b then if b < c then writeln(a,b,c) else if a < c then writeln(a,c,b) else writeln(c,a,b) else if a < c then writeln(b,a,c) else if b < c then writeln(b,c,a) else writeln(c,b,a) end. Then ca...
by ImLazy
Thu Jan 13, 2005 5:25 am
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14157

...

Dear Mistr,
My program works all right by the inupts you have given above, but still WA!!! I'm getting crazy!
by ImLazy
Wed Jan 12, 2005 10:09 am
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14157

...

I think I'm in the same situation with Emotional Blind. My program works all right by the sample input while still gets WA by the on-line judge. I just need some special input to help me to debug. Anyone can help us? This is my code: #include<stdio.h> #define MAX 100 int main() { int i,j,k, get, nod...

Go to advanced search