Search found 3 matches

by NrmMyth
Sun Oct 01, 2006 11:12 am
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 48274

gtbass wrote:

Code: Select all

while(gets(str) && strlen(str)) {...}
Thank you. :)
by NrmMyth
Sun Jul 02, 2006 10:52 pm
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 48274

10258 "Contest Scoreboard" - Runtime error clarifi

Hi.
I would be very grateful if somebody can find my error. I'm getting "Runtime Error (Invalid memory reference)"
Thanks in advance.
#define pb( x ) push_back( x )
#define mp( x, y ) make_pair( x, y )

void trunc() // truncates line until newline character
{
char c;
while( (c = getchar()) != '\n ...
by NrmMyth
Mon Mar 20, 2006 10:53 pm
Forum: Volume 7 (700-799)
Topic: 796 - Critical Links
Replies: 54
Views: 32060

Hi, i'm trying to solve this one but i'm geting a feel that the input isn't correct all the time.
Try with this.
input

2
0 (1) 1
1 (0) 0

1
0 (1) 1

Output

1 critical links
1 - 0

0 critical links

How can this be correct input?!?!?

How to pass this one i did about dozens of tests, and it ...

Go to advanced search