School Personal Contest #3 (Winter Computer School 2010/11) - Codeforces Beta Round 45 (ACM-ICPC Rules)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
48 School Personal Contest #3 (Winter Computer School 2010/11) - Codeforces Beta Round 45 (ACM-ICPC Rules) FINISHED False 10800 484351185 Dec. 12, 2010, 8 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 700 ) E Ivan the Fool VS Gorynych the Dragon PROGRAMMING dp games graphs 2100

Once upon a time in a kingdom far, far away… Okay, let’s start at the point where Ivan the Fool met Gorynych the Dragon. Ivan took out his magic sword and the battle began. First Gorynych had h heads and t tails. With each strike of the sword Ivan can either cut off several heads (from 1 to n , but not more than Gorynych has at the moment), or several tails (from 1 to m , but not more than Gorynych has at the moment). At the same time, horrible though it seems, Gorynych the Dragon can also grow new heads and tails. And the number of growing heads and tails is determined uniquely by the number of heads or tails cut by the current strike. When the total number of heads and tails exceeds R , Gorynych the Dragon strikes its final blow and destroys Ivan the Fool. That’s why Ivan aims to cut off all the dragon’s heads and tails as quickly as possible and win. The events can also develop in a third way: neither of the opponents can win over the other one and they will continue fighting forever. The tale goes like this; easy to say, hard to do. Your task is to write a program that will determine the battle’s outcome. Consider that Ivan strikes consecutively. After each blow Gorynych grows a number of new heads and tails depending on the number of cut ones. Gorynych the Dragon is defeated if after the blow he loses all his heads and tails and can’t grow new ones. Ivan fights in the optimal way (fools are lucky), i.e. if Ivan can win, he wins having struck the least number of blows; if it is impossible to defeat Gorynych, but is possible to resist him for an infinitely long period of time, then that’s the strategy Ivan chooses; if Gorynych wins in any case, Ivan aims to resist him for as long as possible. The first line contains three integers h , t and R ( 0 ≤ h , t , R ≤ 200 , 0 < h + t ≤ R ) which represent the initial numbers of Gorynych’s heads and tails and the largest total number of heads and tails with which Gorynych the Dragon does not yet attack. The next

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
218860 Sereja E Dec. 12, 2010, 9:50 a.m. OK Delphi TESTS 50 80 13414400 2100
219344 Langostinko E Dec. 12, 2010, 10:14 a.m. OK Delphi TESTS 50 110 17408000 2100
219777 CherryTree E Dec. 12, 2010, 10:35 a.m. OK Delphi TESTS 50 250 113254400 2100
221969 MaChao E Jan. 2, 2011, 12:45 p.m. OK FPC TESTS 50 60 1945600 2100
549770 vlad107 E July 17, 2011, 8:24 p.m. OK FPC TESTS 50 190 38502400 2100
221608 flashmt E Dec. 15, 2010, 5:05 p.m. OK FPC TESTS 50 380 69734400 2100
218992 taras.klaskovsky E Dec. 12, 2010, 9:57 a.m. OK FPC TESTS 50 1230 1843200 2100
218515 scottai1 E Dec. 12, 2010, 9:34 a.m. OK GNU C TESTS 50 160 130355200 2100
4067174 abczz E July 14, 2013, 5:49 a.m. OK GNU C++ TESTS 50 15 1126400 2100
12638643 vjudge1 E Aug. 22, 2015, 8:06 a.m. OK GNU C++ TESTS 50 30 1536000 2100
10500204 Trasher E March 28, 2015, 12:48 p.m. OK GNU C++ TESTS 50 30 1843200 2100
4386365 I_so_sad E Aug. 31, 2013, 8:27 a.m. OK GNU C++ TESTS 50 30 2560000 2100
4547591 yenthanh.t7 E Sept. 24, 2013, 8:36 a.m. OK GNU C++ TESTS 50 30 3276800 2100
9737448 samirag1 E Feb. 6, 2015, 2:48 p.m. OK GNU C++ TESTS 50 30 3379200 2100
4127281 ShayanH E July 21, 2013, 7:50 a.m. OK GNU C++ TESTS 50 31 4300800 2100
4127874 Haghani E July 21, 2013, 8:56 a.m. OK GNU C++ TESTS 50 31 9113600 2100
4128199 Rmynz E July 21, 2013, 9:45 a.m. OK GNU C++ TESTS 50 31 9830400 2100
4128188 Hich E July 21, 2013, 9:43 a.m. OK GNU C++ TESTS 50 31 9830400 2100
891354 siuvit E Nov. 25, 2011, 2:57 p.m. OK GNU C++0x TESTS 50 60 3481600 2100
483888 package.zaic E June 9, 2011, 9:04 a.m. OK GNU C++0x TESTS 50 60 3993600 2100
4219977 moji E Aug. 3, 2013, 8:27 a.m. OK GNU C++0x TESTS 50 62 3788800 2100
8162943 DarthKnight E Oct. 10, 2014, 6:30 a.m. OK GNU C++0x TESTS 50 92 17920000 2100
8696170 MamZi E Nov. 14, 2014, 4:53 p.m. OK GNU C++0x TESTS 50 92 33792000 2100
1129222 Archon.JK E Jan. 31, 2012, 6:32 p.m. OK GNU C++0x TESTS 50 140 21811200 2100
9362007 Alimol E Jan. 4, 2015, 6:24 p.m. OK GNU C++0x TESTS 50 154 34611200 2100
794816 vjudge5 E Oct. 25, 2011, 8:35 a.m. OK GNU C++0x TESTS 50 170 123392000 2100
8413603 ArtinTD E Oct. 25, 2014, 4:14 p.m. OK GNU C++0x TESTS 50 310 67072000 2100
8506964 ._. E Oct. 31, 2014, 11:16 p.m. OK GNU C++0x TESTS 50 716 125132800 2100
19518591 oml1111 E July 30, 2016, 1:45 p.m. OK GNU C++11 TESTS 50 30 2048000 2100
34494323 vjudge3 E Jan. 23, 2018, 7:27 p.m. OK GNU C++11 TESTS 50 30 3481600 2100
57907018 lopare E July 28, 2019, 6:03 p.m. OK GNU C++11 TESTS 50 62 819200 2100
57728328 yltx E July 25, 2019, 7:51 a.m. OK GNU C++11 TESTS 50 62 1024000 2100
13964110 Roms E Oct. 31, 2015, 5:17 a.m. OK GNU C++11 TESTS 50 62 1126400 2100
11576634 wdk E June 14, 2015, 4:25 a.m. OK GNU C++11 TESTS 50 62 1126400 2100
10559144 MaGaroo E April 3, 2015, 10:59 a.m. OK GNU C++11 TESTS 50 62 1228800 2100
19385097 Deemo E July 24, 2016, 1:54 p.m. OK GNU C++11 TESTS 50 62 1638400 2100
30995786 vjudge3 E Oct. 4, 2017, 3:20 p.m. OK GNU C++11 TESTS 50 62 2150400 2100
44063811 arshiya_ E Oct. 10, 2018, 7:49 a.m. OK GNU C++11 TESTS 50 62 2867200 2100
31727797 vjudge1 E Oct. 26, 2017, 3:48 a.m. OK GNU C++14 TESTS 50 30 1843200 2100
31727780 MahdiOR E Oct. 26, 2017, 3:46 a.m. OK GNU C++14 TESTS 50 30 1843200 2100
23494231 Ali.Pi E Jan. 2, 2017, 6:54 a.m. OK GNU C++14 TESTS 50 30 3072000 2100
33855262 vjudge4 E Jan. 1, 2018, 9:59 p.m. OK GNU C++14 TESTS 50 30 4096000 2100
33855248 Atreus E Jan. 1, 2018, 9:57 p.m. OK GNU C++14 TESTS 50 30 4096000 2100
32982365 Yazdan_ra E Dec. 6, 2017, 4:53 p.m. OK GNU C++14 TESTS 50 60 12390400 2100
43530864 vjudge4 E Sept. 28, 2018, 1:28 p.m. OK GNU C++14 TESTS 50 62 614400 2100
56015795 sorry_im_smurfing E June 24, 2019, 9:04 p.m. OK GNU C++14 TESTS 50 62 1024000 2100
51297795 Origenes E March 14, 2019, 1:06 p.m. OK GNU C++14 TESTS 50 62 1331200 2100
29638866 whzzt E Aug. 21, 2017, 8:34 a.m. OK GNU C++14 TESTS 50 62 1740800 2100
47020027 Hitler E Dec. 14, 2018, 11:34 p.m. OK GNU C++17 TESTS 50 60 13926400 2100
46308888 artimis_me E Nov. 28, 2018, 12:03 p.m. OK GNU C++17 TESTS 50 62 921600 2100
45323452 William324 E Nov. 5, 2018, 11:45 a.m. OK GNU C++17 TESTS 50 62 1331200 2100
53807320 kenimo E May 6, 2019, 2:41 a.m. OK GNU C++17 TESTS 50 62 2048000 2100
44063872 vjudge5 E Oct. 10, 2018, 7:52 a.m. OK GNU C++17 TESTS 50 62 2867200 2100
51377718 Kianaz.A E March 16, 2019, 2:49 p.m. OK GNU C++17 TESTS 50 62 4198400 2100
38015344 ruo E May 8, 2018, 8:27 a.m. OK GNU C++17 TESTS 50 62 4403200 2100
50394024 Nargess-Seifi E Feb. 23, 2019, 3:05 p.m. OK GNU C++17 TESTS 50 62 4608000 2100
46579764 vjudge2 E Dec. 4, 2018, 10:43 a.m. OK GNU C++17 TESTS 50 62 13926400 2100
44063959 vjudge2 E Oct. 10, 2018, 7:56 a.m. OK GNU C++17 TESTS 50 92 1843200 2100
220117 SpookyCookie E Dec. 12, 2010, 10:49 a.m. OK Java 6 TESTS 50 170 43827200 2100
6933008 hellbuster E June 20, 2014, 9:44 p.m. OK Java 6 TESTS 50 216 614400 2100
221668 Rasifiel E Dec. 16, 2010, 6:30 p.m. OK Java 6 TESTS 50 220 44134400 2100
2035908 Azat_Yusupov E Aug. 19, 2012, 4:03 p.m. OK Java 6 TESTS 50 220 44544000 2100
242996 S.Yesipenko E Jan. 9, 2011, 1:51 p.m. OK Java 6 TESTS 50 420 43724800 2100
220979 uwi E Dec. 12, 2010, 2:56 p.m. OK Java 6 TESTS 50 640 228147200 2100
220971 uwi E Dec. 12, 2010, 2:47 p.m. OK Java 6 TESTS 50 700 251187200 2100
585633 Navigabimus E Aug. 4, 2011, 8:49 p.m. OK Java 6 TESTS 50 1010 142540800 2100
563451 tehqin E July 24, 2011, 7:38 a.m. OK Java 6 TESTS 50 1110 149811200 2100
221162 tl268 E Dec. 13, 2010, 11:09 a.m. OK Java 6 TESTS 50 1200 51916800 2100
5602016 Zyflair E Jan. 2, 2014, 4:07 a.m. OK Java 7 TESTS 50 810 117248000 2100
15155813 AndreiNet E Jan. 2, 2016, 7:31 a.m. OK Java 8 TESTS 50 248 0 2100
220986 tanzaku E Dec. 12, 2010, 3:03 p.m. OK Mono C# TESTS 50 200 49152000 2100
4110840 vjudge5 E July 20, 2013, 8:58 a.m. OK MS C++ TESTS 50 46 2457600 2100
243757 starvae E Jan. 10, 2011, 12:36 p.m. OK MS C++ TESTS 50 50 1945600 2100
221725 moondy E Dec. 17, 2010, 6:52 a.m. OK MS C++ TESTS 50 50 2048000 2100
220135 P___ E Dec. 12, 2010, 10:50 a.m. OK MS C++ TESTS 50 50 3276800 2100
220540 Borisp E Dec. 12, 2010, 11:07 a.m. OK MS C++ TESTS 50 50 6553600 2100
221240 Sigmar E Dec. 13, 2010, 3:35 p.m. OK MS C++ TESTS 50 60 2662400 2100
218130 maksay E Dec. 12, 2010, 9:16 a.m. OK MS C++ TESTS 50 60 3481600 2100
2043956 Timur_Sitdikov E Aug. 23, 2012, 6:37 a.m. OK MS C++ TESTS 50 60 4198400 2100
219237 antonkov E Dec. 12, 2010, 10:09 a.m. OK MS C++ TESTS 50 60 100864000 2100
4085390 aa2985759 E July 17, 2013, 8:23 a.m. OK MS C++ TESTS 50 62 210534400 2100

remove filters

Back to search problems