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 1121. Branches

What's the answer for this test?
Posted by Paul - Dan Baltescu 27 Mar 2007 23:37
15 19
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1671 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1091 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1942 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 822 0 0 0 0 0 0 0 0 1197
0 0 0 0 870 0 0 0 1719 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 640 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1871 0 0 0
0 57 0 0 0 0 0 0 0 0 0 500 0 0 0 0 0 0 0
0 0 0 0 0 1743 0 557 0 0 0 0 0 0 0 0 0 0 0
0 1153 0 0 0 0 768 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1364 0 0 0 0 0 0 1094 0 0 0 0 0 0 0
0 0 724 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 212 0 0 0 0 0 0 20 0
Re: What's the answer for this test? (+)
Posted by Orlangur [KievNU] 28 Mar 2007 00:26
My AC says

1671 1671 1671 1671 870 870 0 1975 1975 822 1942 1942 1942 1091 1091 1091 1091 1091 1197
-1 1671 1671 1671 870 870 2039 1975 1975 822 1942 1942 1942 1091 1091 -1 1091 1091 1197
1671 1671 1671 870 870 870 2039 1975 1975 822 1942 -1 1942 1942 1091 1091 1091 1197 1197
1671 1671 870 870 870 870 2039 1975 1975 -1 822 1942 1942 1942 1091 1091 1197 1197 -1
1671 870 870 870 -1 870 2039 1719 -1 1975 640 1942 1942 1942 1871 1871 1197 1197 1197
1727 57 870 870 870 870 2039 1719 1719 640 -1 640 640 640 1871 1871 1871 1197 1197
57 57 57 870 870 2031 2047 1727 1719 640 640 1012 1012 1871 1871 1871 1871 1871 1197
57 57 57 57 2031 1743 2031 557 1727 1012 1012 500 500 1871 1871 -1 1871 1871 1871
57 -1 57 57 1743 1743 2031 557 557 500 500 -1 500 500 1871 1871 1871 1871 1871
1209 1209 1209 1743 1743 -1 2031 -1 557 557 500 500 500 500 1871 1871 1871 1871 1871
1153 -1 1153 1493 1364 1999 -1 813 813 1903 1094 1094 1094 1094 1871 1871 1871 20 20
1153 1153 724 1364 -1 1364 768 813 1903 1094 1094 -1 1094 1094 1094 1871 20 20 20
724 724 -1 724 1364 1364 768 813 2047 1238 1238 1094 1094 1094 1094 20 20 20 20
724 724 724 724 1364 1364 768 1021 212 212 212 1238 1238 1238 20 20 20 20 20
724 724 724 724 1364 1364 980 212 212 212 -1 212 212 212 20 20 20 -1 20
Judges, attention, please!
Posted by strider 17 Feb 2009 15:48
And my AC says quite different:

1711 1671 1671 1671 1671 1671 1671 1671 1671 1719 0 0 0 0 0
1711 1671 1671 1671 -1 1671 1671 1671 1671 1719 1719 0 0 0 0
1197 1091 1091 1091 -1 1091 1911 1911 2039 1719 1719 1719 0 0 0
1197 1983 1942 1942 -1 1942 822 822 1975 1719 1719 1719 1719 0 0
1197 1197 1983 1942 1942 886 -1 822 1975 1719 1719 1719 1719 2047 0
-1 1197 1197 870 870 -1 886 2039 1719 -1 1719 1719 1719 2047 2047
1709 1709 1709 870 870 870 886 2039 1719 1719 1719 1719 2047 1871 1871
-1 640 640 697 870 870 886 2039 1719 1719 1719 2047 1871 1871 1871
640 640 697 57 57 870 886 2039 1719 1719 2047 1999 1871 1871 1871
640 697 57 57 57 57 57 57 2047 2047 1999 1999 1871 -1 1871
697 57 57 -1 57 57 57 57 1743 1743 1743 1743 500 -1 500
768 768 57 57 57 57 57 1743 1743 1743 1743 -1 1775 -1 557
768 768 768 1405 1405 724 724 1153 1153 1153 1153 -1 1153 557 557
768 -1 768 1364 1364 724 724 1750 1094 1094 1094 1153 1153 557 557
768 768 1364 -1 1364 724 724 1750 1094 1094 -1 1094 1094 1647 1647
768 768 1364 1364 724 -1 724 724 1750 1094 1094 1094 1094 20 20
768 768 1364 1364 724 724 724 724 1750 1094 1094 1094 20 20 20
768 768 1364 1364 724 724 212 212 212 1238 1094 20 20 20 20
0 980 212 212 212 212 -1 212 212 212 20 20 20 -1 20
Re: What's the answer for this test? (+)
Posted by [RSU_Tash]Nodirbek_Kuklamov 30 Jan 2011 07:34
But my prog. outs:

1671 1671 1671 1671 870 870 0 2541 2541 822 1942 1942 1942 1091 1091 1091 1091 1091 1197
-1 1671 1671 1671 870 870 3411 2541 2541 822 1942 1942 1942 1091 1091 -1 1091 1091 1197
1671 1671 1671 870 870 870 3411 2541 2541 822 1942 -1 1942 1942 1091 1091 1091 1197 1197
1671 1671 870 870 870 870 3411 2541 2541 -1 822 1942 1942 1942 1091 1091 1197 1197 -1
1671 870 870 870 -1 870 2589 1719 -1 2541 640 2582 2582 2582 2962 2962 1197 1197 1197
1728 57 870 870 870 870 2589 1719 1719 640 -1 640 640 640 1871 1871 1871 1197 1197
57 57 57 870 870 2613 5657 2276 1719 640 640 1140 1140 1871 1871 1871 1871 1871 1197
57 57 57 57 2613 1743 3068 557 2276 1140 1140 500 500 1871 1871 -1 1871 1871 1871
57 -1 57 57 1743 1743 3068 557 557 500 500 -1 500 500 1871 1871 1871 1871 1871
1210 1210 1210 1743 1743 -1 3068 -1 557 557 500 500 500 500 1871 1871 1871 1871 1871
1153 -1 1153 2517 1364 2511 -1 1325 1325 2419 1094 1094 1094 1094 2965 1871 1871 20 20
1153 1153 724 1364 -1 1364 768 1325 2419 1094 1094 -1 1094 1094 1094 2965 20 20 20
724 724 -1 724 1364 1364 768 1325 2631 1306 1306 1094 1094 1094 1094 20 20 20 20
724 724 724 724 1364 1364 768 1537 212 212 212 1306 1306 1306 20 20 20 20 20
724 724 724 724 1364 1364 980 212 212 212 -1 212 212 212 20 20 20 -1 20


And I get Wrong Answer on test 17. If anybody knows this test, please tells me my mistake.

What is there wrong?  I think that b[1][8] = 1719 + 822 = 2541

And how can it be 1975?

I am sorry for my bad language.

Edited by author 30.01.2011 08:23