ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1573. Alchemy

I didn't understand.
Posted by CHIDEMYAN SERGEY 13 Feb 2008 18:36
Please explain me this problem>Thank!!!
Re: I didn't understand.
Posted by CHIDEMYAN SERGEY 15 Feb 2008 21:39
Give me some tests,please,because I think I don't understand problem correctly,please.Thank in advance!!!
Re: I didn't understand.
Posted by tn 16 Feb 2008 20:18


Edited by author 16.02.2008 20:28
Re: I didn't understand.
Posted by Alexander (201 - P TNU) 16 Feb 2008 20:30
this problem seems hard at first, but it's very easy

2 4 5
3
Red
Yellow
Blue
>40

3 4 5
3
Red
Yellow
Blue
>60

3 4 5
3
Red
Yellow
>36

3 4 5
2
Red
Yellow
>20

3 4 5
2
Blue
Re: I didn't understand.
Posted by CHIDEMYAN SERGEY 16 Feb 2008 23:53
Thank you for tests!!!I have just last questions:can k be more than 3(k>3)and in 3-th & 5-th of your tests why there is only 2(in 3-th test) and 1(in 5-th test) strings,while k=3(in 3-th test) and k=2(in 5-th test). Thank in advance!!!


Edited by author 17.02.2008 00:30
Re: I didn't understand.
Posted by Alexander (201 - P TNU) 17 Feb 2008 03:31
no, k <= 3
and I gave you some wrong tests)
3 4 5
3
Red
Yellow
>36 - can't be(k must be 2)

3 4 5
2
Blue
Red
>12
Re: I didn't understand.
Posted by CHIDEMYAN SERGEY 17 Feb 2008 19:09
Thank you very much!!!I get AC!!!

Edited by author 17.02.2008 19:33
Re: I didn't understand.
Posted by Khamitbekov Madi 25 May 2010 21:54
Test is wrong (Alexander (201 - P TNU)).
If input:
3 4 5
2
Red
Yellow
Output must be 20, not 36.

Edited by author 25.05.2010 21:56