Search found 5 matches
- Mon Dec 25, 2006 8:39 am
- Forum: Bugs and suggestions
- Topic: 11100 - OJ accepts incorrect solutions
- Replies: 4
- Views: 3582
- Mon Dec 25, 2006 7:09 am
- Forum: Bugs and suggestions
- Topic: 11100 - OJ accepts incorrect solutions
- Replies: 4
- Views: 3582
11100 - OJ accepts incorrect solutions
OJ gave me AC although I sent incorrect code! It seems to only check the correctness of k (the minimum number of pieces), but does not care much for the format of the k sequences. Here's the code that got AC: #include <iostream> using namespace std; int a[10000]; int b[10000]; int last = 9999; int L...
- Sun Jun 01, 2003 6:28 am
- Forum: Volume 101 (10100-10199)
- Topic: 10196 - Check The Check
- Replies: 77
- Views: 25427
try this one
mine failed this case at first:
. . . . . . . .
. . . . . . . .
. . . k . . . .
. . . . . . . .
. B . R . . . .
. . . . . . . .
. . . . . . . .
. K . . . . . .
because i had output for both B and R.
just had to add a couple of break statements and got AC!
. . . . . . . .
. . . . . . . .
. . . k . . . .
. . . . . . . .
. B . R . . . .
. . . . . . . .
. . . . . . . .
. K . . . . . .
because i had output for both B and R.
just had to add a couple of break statements and got AC!
- Tue Jul 16, 2002 2:33 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10195 - The Knights Of The Round Table
- Replies: 59
- Views: 17253
What's Wrong?
i can't think of a possible special case... also if i input 34.64 34.64 34.64 should i get 10.000 or 10? #include <iostream.h> #include <math.h> void main() { long double a, b, c; while(cin>>a>>b>>c) { long double p = (a + b + c)/2; long double temp = p*(p-a)*(p-b)*(p-c); long double s = sqrtl(temp)...
- Wed Nov 07, 2001 6:37 am
- Forum: Java
- Topic: JAVA "Press any key to continue..." message
- Replies: 1
- Views: 3068