Search found 4 matches

by K0stIa
Thu Aug 11, 2011 10:11 pm
Forum: Volume 106 (10600-10699)
Topic: 10679 - I Love Strings!!
Replies: 101
Views: 69080

Re: 10679 - I love Strings!!!

Who can explain me why the server gives on the following test

1
abcAGbcbd
3
bcA
abcAG
cA

the answer
n
n
n

instead of
y
y
y.

Thnx in advance.
by K0stIa
Fri Sep 24, 2010 6:04 pm
Forum: Volume 2 (200-299)
Topic: 259 - Software Allocation
Replies: 28
Views: 13971

Re: Runtime Error



Is that valid input..?
My AC code returns "_AB_______" :(

Anyway, your approach look correct..
But, your code is missing '\n' after the last case.. (when the output of the last case is not '!')

So, it's still WA :( I'm very disappointed. Can u show me ur code ? I don't understand what wrong ...
by K0stIa
Fri Sep 24, 2010 4:42 pm
Forum: Volume 2 (200-299)
Topic: 259 - Software Allocation
Replies: 28
Views: 13971

Re: Runtime Error

What u can say about my approach ?
It's one of the usual approaches in such kind problems. We add source & sink nodes, first we connect with jobs, second with computers. Edges capacity from source to jobs nodes are equal to amount of jobs, capacities from computer node to sink are equal one. So, in ...
by K0stIa
Fri Sep 24, 2010 9:42 am
Forum: Volume 2 (200-299)
Topic: 259 - Software Allocation
Replies: 28
Views: 13971

Re: Runtime Error

Any one can get runtime error because input may be like

A1 13579;
B1 a-123;

Handle this i got accepted other wise i got runtime error.


hello, guys.

I tired to submit problems on this site. I think i solved this problem and have problems with I/O. Can anybody see on my code below ? If u can ...

Go to advanced search