Page 1 of 1

379 - Hi-Q

Posted: Fri Mar 05, 2004 10:34 am
by Dominik Michniewski
Could anyone help me ?
I try to solve this problem (WA in 0.002 sec) but without success ... Could anyone post me some IO ? I think that I must miss something :( ...

Best regards
DM

Posted: Fri Mar 05, 2004 10:42 am
by Dominik Michniewski
Never mind - another silly mistake in my code ...
I thnk, that I must stop solving problem ;-) I make so many mistakes :D

Best regards
DM

Posted: Tue Jul 17, 2007 7:37 pm
by RED-C0DE
Hello everyone, could u please give me some IO samples for this problem (# 379 HI-Q)

I really need it :(

and why did just few people solved this problem... I think it's not very hard...but i can't solve it yet...

tnx 4 ur help :D

Posted: Tue Jul 17, 2007 7:57 pm
by RED-C0DE
here is my code 4 this problem :

Code: Select all

SOLVED :lol: 
here some IO :


input :

Code: Select all

14
10 12 17 19 25 0
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 0
1 2 3 4 5 0
1 2 3 4 5 6 7 8 9 10 0
11 22 33 0
13 14 15 29 30 31 0
3 9 0
7 13 21 27 0
1 3 7 13 21 27 31 33 0
1 33 0
3 31 0
17 0
my AC program output :

Code: Select all

HI Q OUTPUT
51
0
561
98
14
37
66
41
12
68
136
34
34
17
END OF OUTPUT