Search found 8 matches
- Mon Jan 26, 2004 9:49 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10587 - Mayor's posters
- Replies: 16
- Views: 9603
10587
I'm still getting WA, i solved that problem using a heap and i'm sure it works. Do you have any "tricky" input sample to test my program ?
- Mon Jan 26, 2004 4:30 pm
- Forum: Volume 4 (400-499)
- Topic: 494 - Kindergarten Counting Game
- Replies: 119
- Views: 37240
- Sun Jan 25, 2004 10:03 pm
- Forum: Volume 4 (400-499)
- Topic: 494 - Kindergarten Counting Game
- Replies: 119
- Views: 37240
[494] whats wrong?
#include <iostream>
using namespace std;
char buff;
int words;
bool is;
int main() {
while(!cin.eof()) {
buff = cin.get();
while(buff!='\n' && buff!=EOF) {
if( ( buff >= 'a' && buff <= 'z') || (buff >= 'A' && buff <= 'Z') ) {
if(!is) {
is = true;
words++;
}
}
else is = false;
buff ...
- Fri Dec 26, 2003 10:35 pm
- Forum: Volume 6 (600-699)
- Topic: 681 - Convex Hull Finding
- Replies: 60
- Views: 30688
- Thu Dec 04, 2003 8:03 pm
- Forum: Volume 6 (600-699)
- Topic: 681 - Convex Hull Finding
- Replies: 60
- Views: 30688
- Thu Dec 04, 2003 7:19 pm
- Forum: Volume 6 (600-699)
- Topic: 681 - Convex Hull Finding
- Replies: 60
- Views: 30688
- Thu Dec 04, 2003 7:07 pm
- Forum: Volume 6 (600-699)
- Topic: 681 - Convex Hull Finding
- Replies: 60
- Views: 30688
- Thu Dec 04, 2003 4:59 pm
- Forum: Volume 6 (600-699)
- Topic: 681 - Convex Hull Finding
- Replies: 60
- Views: 30688
681
for this test :
1
15
0 0
1 0
2 0
3 0
4 0
4 1
4 2
4 3
4 4
3 3
2 2
1 3
0 4
0 3
0 2
0 1
anwser:
1
5
0 0
4 0
4 4
0 4
0 0
is correct?
1
15
0 0
1 0
2 0
3 0
4 0
4 1
4 2
4 3
4 4
3 3
2 2
1 3
0 4
0 3
0 2
0 1
anwser:
1
5
0 0
4 0
4 4
0 4
0 0
is correct?