Search found 2 matches

by dominus
Tue Mar 02, 2004 7:18 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 77486

Yeah, you are totally right. What a stupid I am... :oops: . Thanks for notifying me
by dominus
Fri Feb 27, 2004 5:57 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 77486

10038 WA

Can anybody tell me why this code returns WA? #include <iostream.h> int abs(int i) { if (i>0){ return i;} else { return -i;} } int main() { int inp1=0, inp2=0, jolly=1, n=0, i=0, a[3005]={0}; while( (cin >> n) && n ) { jolly=1; cin >> inp1; //first number for(i=1;i<n;i++) //other numbers { cin >> in...

Go to advanced search