Search found 5 matches

by dynamic
Thu Feb 13, 2003 4:19 am
Forum: Volume 104 (10400-10499)
Topic: 10449 - Traffic
Replies: 58
Views: 31688

Thank you very much! :D

I think i know the reason,there must be some extra characters at the end of the input.as i keep reading integers,i will never reach EOF.that's too bad,i kept getting runtime error during the contest 8)
by dynamic
Wed Feb 12, 2003 7:14 pm
Forum: Volume 104 (10400-10499)
Topic: 10449 - Traffic
Replies: 58
Views: 31688

To Dominik Michniewski:your MAXINT is too big and will overflow when doing addition
by dynamic
Wed Feb 12, 2003 7:09 pm
Forum: Volume 104 (10400-10499)
Topic: 10449 - Traffic
Replies: 58
Views: 31688

why this simple code get TLE?I just intend to read the input...
Please help me,thanks in advance


#include <stdio.h>
#include <string.h>

int main()
{
int n,m,r;
int i,j,k;
while(scanf("%d",&n)!=EOF){
for(i=0;i<n;i++) scanf("%d",&k);
scanf("%d",&r);
for(i=0;i<r;i++) scanf("%d%d",&j,&k ...
by dynamic
Tue Aug 06, 2002 6:15 pm
Forum: Volume 103 (10300-10399)
Topic: 10314 - Three Pigs
Replies: 20
Views: 11958

i'm terribly sorry that i made a mistake...
by dynamic
Tue Aug 06, 2002 9:10 am
Forum: Volume 103 (10300-10399)
Topic: 10314 - Three Pigs
Replies: 20
Views: 11958

try using minimal cost stream

i think it is the same as an IOI97 problem
try to construct a net and use minimal cost stream

Go to advanced search