Search found 4 matches

by WAandAC
Sun Jun 29, 2008 2:43 am
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 7122

Re: problem no 138--help pls

Hi, I think this is an easy problem, but why i get wa? Here is my code #include <iostream> using namespace std; int main () { int l1 [10] = {6, 35, 204, 1189, 6930, 256, 7742, 11707, 19813, 25162}; int l2 [10] = {8 ,49, 288, 1681, 9800, 131072, 131528, 132113, 134033, 135816}; for ( int i = 0; i < 1...
by WAandAC
Sun Jun 01, 2008 8:08 pm
Forum: Volume 3 (300-399)
Topic: 344 - Roman Digititis
Replies: 15
Views: 4434

Re: 344 Problem

Why WA? I have already checked several outputs. #include <iostream> using namespace std; int main () { int s1[101]; int s5 [101]; int s10[101]; int s50 [101]; int s100 [101]; s1 [1] = 1; s5 [1] = 0; s10 [1] = 0; s50 [1] = 0; s100 [1] = 0; for (int i = 2; i <= 100; i++) { if (i%10 == 1 || i%10 == 2||...
by WAandAC
Fri May 23, 2008 11:28 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 19200

Re: 382 WA

I doubt the judge's test case doesn't have 0 at end. Can anyone confirm this?
by WAandAC
Sat Nov 03, 2007 4:46 am
Forum: Volume 107 (10700-10799)
Topic: 10783 - Odd Sum
Replies: 34
Views: 15144

Why WA

Hi, I know this is an easy problem, but why I get WA? I tested the even number case, but is there anything wrong with output or tricky test cases? #include <iostream> #include <string> int calc (int a, int b) { if ( a == b && a%2 == 0 && b % 2 == 0) { return 0; } int low = a; int high = b; if (a > b...

Go to advanced search