Search found 19 matches

by sahand
Fri Apr 22, 2005 3:49 pm
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 5814

this part of your code is corrupting the stack: for(i = 1;i<=N;i++) in[i] = 1; because the array in is defined as: int in[N] Which means the last element that you should write to is in[N-1] not in[N]. So you should either change the definition of in to: int in[N+1] or use this: for(i = 1;i<N;i++) in...
by sahand
Fri Apr 22, 2005 3:31 pm
Forum: Volume 1 (100-199)
Topic: 117 - The Postal Worker Rings Once
Replies: 58
Views: 17183

what a mistake!

Thanks sammy. That was a very funny mistake! :D
Sahand :wink:
by sahand
Tue Apr 19, 2005 6:51 pm
Forum: Volume 1 (100-199)
Topic: 117 - The Postal Worker Rings Once
Replies: 58
Views: 17183

117 - The Postal Worker Rings Once - WA - please help!

Hi,
This is my code for 117. It works for the sample inputs but I get WA when I submit it. Please help.

Code: Select all

Code removed!
by sahand
Sun Mar 13, 2005 2:21 am
Forum: Volume 102 (10200-10299)
Topic: 10229 - Modular Fibonacci
Replies: 53
Views: 18174

10229 - WA - please help

Hi guys, this is my code for 10229, and I just can't understand why I get WA's. It uses Q-matrix. It gives correct outputs for the samples and for anything else I checked. It would be great if someone could tell me what i'm doing is wrong. Thanks ------------ Problem solved thanks to mf ----------- ...

Go to advanced search