Search found 8 matches

by miko'mized
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 ?
by miko'mized
Mon Jan 26, 2004 4:30 pm
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 37240

thx. i considered that but i thought that input looks like this:

word word word('\n')
word word(EOF)

now i've got AC. thx again.
by miko'mized
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 ...
by miko'mized
Fri Dec 26, 2003 10:35 pm
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 30688


when i implemented Graham scan, i used the following points to check my Graham scan:

1
15 // number of points
0 0
0 1
0 2
0 3
0 4
1 3
2 2
3 3
4 4
4 3
4 1
4 0
3 0
2 0
1 0

i hope that can help.


Mind one thing... in 681 problem given input is naturaly sorted so we needn't to do that again. I ...
by miko'mized
Thu Dec 04, 2003 8:03 pm
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 30688

[; I fixed it , but still doesn't work.

WA WA WA WA...

so frustrating.
by miko'mized
Thu Dec 04, 2003 7:19 pm
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 30688

hm maybe that's wrong ... for this test:
1
7
0 6
-4 4
-6 2
-2 -2
0 -4
1 -4
4 4
anwser is:
1
7
0 -4
1 -4
4 4
0 6
-4 4
-6 2
0 -4

right?
by miko'mized
Thu Dec 04, 2003 7:07 pm
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 30688

Thx, then everything in my program seems to be alright. But it isn't :|
by miko'mized
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?

Go to advanced search