## Search found 5 matches

Sun Oct 12, 2003 12:18 am
Forum: Volume 2 (200-299)
Topic: 255 - Correct Move
Replies: 17
Views: 4810

### Need input for 255 - Correct Move

Hi everybody!

i got every time wrong answer for the 255 ! Could anyone give me some big input in order to try to discover a bug in my source code ??

Thanks a lot,

Calvin
Sat Jun 07, 2003 5:00 pm
Forum: Volume 4 (400-499)
Topic: 424 - Integer Inquiry
Replies: 96
Views: 22680

### 424 WA ...

hi! watch my code please. I got a WA for this, but i try so much input.. can you give me some input which create a WA ?? [c]#include <stdio.h> #include <string.h> int main() { int somme[110]={0}; char tmp[100],i,j,max=0; scanf("%s",tmp); while (strlen(tmp)>1 || tmp[0]!=48) { j=0; for (i=st...
Tue May 20, 2003 3:54 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 19677

### PB 400 > UNIX LS | WA

I got wa for this problem ! Could anyone try to explain to me where the matter is ?? Thanks a lot.. [c] #include <stdio.h> #include <stdlib.h> int compare(char*a,char*b) { int i=0; while (a ==b ) { i++; } return(a -b ); } void space(char*tab,int len) { int i; printf("%s", tab); for (i=strl...
Fri Mar 14, 2003 5:47 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 42988
What a complicated program and so long for such a problem!! You should start again and think in a simple way..

For ratio, the problem is for 2 numbers A and B to calculate (A/B)*100 si A is smaller than B and (B/A)*100 if B smaller than A...[/java]
Sat Mar 08, 2003 2:59 pm
Forum: Volume 101 (10100-10199)
Topic: 10110 - Light, more light
Replies: 76
Views: 28427

### 10110

See my code : #include <stdio.h> int main() { unsigned int num,i,j; char step; scanf("%d",&num); while (num!=0) { step=0; i=4; j=5; while (num>i && i>0) { i+=j; j+=2; } if (num==i) printf("yes\n"); else printf("no\n"); scanf("%d",&num); } retur...