379 - Hi-Q

All about problems in Volume 3. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

379 - Hi-Q

Post 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
Last edited by Dominik Michniewski on Fri Mar 05, 2004 10:44 am, edited 2 times in total.
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)

Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Post 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
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)

RED-C0DE
New poster
Posts: 16
Joined: Mon Mar 26, 2007 6:47 pm

Post 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

RED-C0DE
New poster
Posts: 16
Joined: Mon Mar 26, 2007 6:47 pm

Post 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

Post Reply

Return to “Volume 3 (300-399)”