Educational Codeforces Round 28

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
846 Educational Codeforces Round 28 FINISHED False 7200 227199299 Sept. 5, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4266 ) A Curriculum Vitae PROGRAMMING brute force implementation 1500

B"Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were successful, some were not. Hideo wants to remove several of them (possibly zero) from his CV to make a better impression on employers. As a result there should be no unsuccessful game which comes right after successful one in his CV. More formally, you are given an array s1, xe2 x80 x89s2, xe2 x80 x89..., xe2 x80 x89sn of zeros and ones. Zero corresponds to an unsuccessful game, one -- to a successful one. Games are given in order they were produced, and Hideo can't swap these values. He should remove some elements from this array in such a way that no zero comes right after one. Besides that, Hideo still wants to mention as much games in his CV as possible. Help this genius of a man determine the maximum number of games he can leave in his CV. The first line contains one integer number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). The second line contains n space-separated integer numbers s1, xe2 x80 x89s2, xe2 x80 x89..., xe2 x80 x89sn (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89si xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891). 0 corresponds to an unsuccessful game, 1 -- to a successful one. Print one integer -- the maximum number of games Hideo can leave in his CV so that no unsuccessful game comes after a successful one. "...

Tutorials

54357

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
30122068 hieutony15935 A Sept. 6, 2017, 3:43 a.m. OK FPC TESTS 18 15 0 1500
30104391 eR6 A Sept. 5, 2017, 3:17 p.m. OK FPC TESTS 18 15 0 1500
30109918 Minh_love_Hong_Phuc A Sept. 5, 2017, 4:06 p.m. OK FPC TESTS 18 15 0 1500
30104966 caubengungo A Sept. 5, 2017, 3:21 p.m. OK FPC TESTS 18 15 0 1500
30104890 choidu A Sept. 5, 2017, 3:20 p.m. OK FPC TESTS 18 15 0 1500
30114759 slavik228 A Sept. 5, 2017, 5:22 p.m. OK FPC TESTS 18 15 102400 1500
31162779 datew2001 A Oct. 9, 2017, 8:49 a.m. OK FPC TESTS 18 15 102400 1500
31162966 datew2001 A Oct. 9, 2017, 9 a.m. OK FPC TESTS 18 15 102400 1500
31163110 datew2001 A Oct. 9, 2017, 9:08 a.m. OK FPC TESTS 18 15 102400 1500
31162676 datew2001 A Oct. 9, 2017, 8:43 a.m. OK FPC TESTS 18 15 102400 1500
30117617 chutku_sona A Sept. 5, 2017, 7:57 p.m. OK GNU C TESTS 18 15 0 1500
30113602 AkaiShuuichi9866 A Sept. 5, 2017, 4:57 p.m. OK GNU C TESTS 18 15 0 1500
30109747 saurabhag21_ A Sept. 5, 2017, 4:04 p.m. OK GNU C TESTS 18 15 0 1500
30107539 congmingyige A Sept. 5, 2017, 3:42 p.m. OK GNU C TESTS 18 15 0 1500
30104343 MckitC A Sept. 5, 2017, 3:16 p.m. OK GNU C TESTS 18 15 0 1500
30105909 sgtlaugh A Sept. 5, 2017, 3:28 p.m. OK GNU C TESTS 18 15 0 1500
31233959 saerd A Oct. 12, 2017, 6:55 a.m. OK GNU C TESTS 18 15 0 1500
30566815 BAby_BoSS A Sept. 21, 2017, 4:26 a.m. OK GNU C TESTS 18 15 0 1500
30252370 tabac A Sept. 10, 2017, 5:18 p.m. OK GNU C TESTS 18 15 0 1500
30232540 Charlie9731 A Sept. 9, 2017, 7:03 p.m. OK GNU C TESTS 18 15 0 1500
40720520 njupt16041404 A July 25, 2018, 12:50 a.m. OK GNU C++ TESTS 18 15 0 1500
40700030 vjudge3 A July 24, 2018, 10:12 a.m. OK GNU C++ TESTS 18 15 0 1500
40691468 vjudge2 A July 24, 2018, 6:06 a.m. OK GNU C++ TESTS 18 15 0 1500
40691094 vjudge3 A July 24, 2018, 5:55 a.m. OK GNU C++ TESTS 18 15 0 1500
32333487 vjudge3 A Nov. 15, 2017, 1:49 p.m. OK GNU C++ TESTS 18 15 0 1500
32333482 llpeace A Nov. 15, 2017, 1:48 p.m. OK GNU C++ TESTS 18 15 0 1500
32307937 Scut82 A Nov. 14, 2017, 9:46 a.m. OK GNU C++ TESTS 18 15 0 1500
32307398 Scut82 A Nov. 14, 2017, 9:07 a.m. OK GNU C++ TESTS 18 15 0 1500
31317853 NazariyLebed A Oct. 14, 2017, 4:30 p.m. OK GNU C++ TESTS 18 15 0 1500
31186701 TRR A Oct. 10, 2017, 10:26 a.m. OK GNU C++ TESTS 18 15 0 1500
52306553 AntonioDaSilva A April 4, 2019, 12:28 p.m. OK GNU C11 TESTS 18 31 0 1500
45594063 vjudge1 A Nov. 12, 2018, 2:16 p.m. OK GNU C11 TESTS 18 31 0 1500
45299798 Robin40 A Nov. 4, 2018, 7:41 p.m. OK GNU C++11 TESTS 18 15 0 1500
59196527 vjudge2 A Aug. 21, 2019, 2:01 a.m. OK GNU C++11 TESTS 18 15 0 1500
59195706 vjudge5 A Aug. 21, 2019, 1:28 a.m. OK GNU C++11 TESTS 18 15 0 1500
54657922 luogu_bot5 A May 26, 2019, 9:16 a.m. OK GNU C++11 TESTS 18 15 0 1500
54081336 linzheng_m A May 14, 2019, 3:27 a.m. OK GNU C++11 TESTS 18 15 0 1500
54079185 linzheng_m A May 14, 2019, 12:39 a.m. OK GNU C++11 TESTS 18 15 0 1500
54052721 nanatoday A May 13, 2019, 5:42 a.m. OK GNU C++11 TESTS 18 15 0 1500
46372163 wolf.001.618 A Nov. 29, 2018, 4:25 p.m. OK GNU C++11 TESTS 18 15 0 1500
42469687 IsTiaQue A Sept. 4, 2018, 5:47 p.m. OK GNU C++11 TESTS 18 15 0 1500
39650658 gaurav172 A June 25, 2018, 1:23 p.m. OK GNU C++11 TESTS 18 15 0 1500
59377526 vjudge4 A Aug. 23, 2019, 11:29 p.m. OK GNU C++14 TESTS 18 15 0 1500
57611444 fuad036 A July 23, 2019, 9:12 p.m. OK GNU C++14 TESTS 18 15 0 1500
56957524 doped.silicon A July 13, 2019, 5:21 a.m. OK GNU C++14 TESTS 18 15 0 1500
56539419 yeeshu A July 5, 2019, 3:53 a.m. OK GNU C++14 TESTS 18 15 0 1500
56362615 Helal A June 30, 2019, 8:08 p.m. OK GNU C++14 TESTS 18 15 0 1500
62590604 kid_maksikkk A Oct. 14, 2019, 8:54 p.m. OK GNU C++14 TESTS 18 15 0 1500
67129611 SpartaCU A Dec. 17, 2019, 10:25 p.m. OK GNU C++14 TESTS 18 15 0 1500
60278680 onceincentury A Sept. 8, 2019, 7:19 p.m. OK GNU C++14 TESTS 18 15 0 1500
69157357 ss_loves_ap A Jan. 19, 2020, 8:15 p.m. OK GNU C++14 TESTS 18 15 0 1500
69002706 Khalil_Bay A Jan. 17, 2020, 8:31 p.m. OK GNU C++14 TESTS 18 15 0 1500
57292410 Arsenal_FC A July 18, 2019, 5:21 p.m. OK GNU C++17 TESTS 18 15 0 1500
69634048 solve_every_day A Jan. 27, 2020, 6:01 p.m. OK GNU C++17 TESTS 18 15 0 1500
69263689 masaow A Jan. 21, 2020, 5:53 p.m. OK GNU C++17 TESTS 18 15 0 1500
68420300 Kallaseldor A Jan. 8, 2020, 9:29 p.m. OK GNU C++17 TESTS 18 15 0 1500
68216992 nowyyz A Jan. 5, 2020, 12:48 a.m. OK GNU C++17 TESTS 18 15 0 1500
66256061 abhinavrastogi9596 A Dec. 4, 2019, 6:01 a.m. OK GNU C++17 TESTS 18 15 0 1500
65162090 chitrung1 A Nov. 16, 2019, 11:47 a.m. OK GNU C++17 TESTS 18 15 0 1500
59411547 charity A Aug. 24, 2019, 4:04 p.m. OK GNU C++17 TESTS 18 15 0 1500
59196200 tomjobs A Aug. 21, 2019, 1:47 a.m. OK GNU C++17 TESTS 18 15 0 1500
56836584 Wernier A July 11, 2019, 9:21 a.m. OK GNU C++17 TESTS 18 15 0 1500
32734548 4yush933 A Nov. 27, 2017, 8:12 p.m. OK GNU C++17 Diagnostics TESTS 18 810 99123200 1500
36226524 201713137089 A March 12, 2018, 2:09 p.m. OK GNU C++17 Diagnostics TESTS 18 920 100966400 1500
30119046 Leonardone A Sept. 5, 2017, 10:03 p.m. OK Go TESTS 18 15 0 1500
30193983 Low_power A Sept. 8, 2017, 3:06 a.m. OK Go TESTS 18 31 18022400 1500
30114780 only_methol A Sept. 5, 2017, 5:22 p.m. OK Go TESTS 18 31 18841600 1500
30104437 sl0th A Sept. 5, 2017, 3:17 p.m. OK Haskell TESTS 18 15 0 1500
30106239 nadavishe A Sept. 5, 2017, 3:31 p.m. OK Haskell TESTS 18 15 8396800 1500
50162665 vjudge5 A Feb. 19, 2019, 1:17 p.m. OK Haskell TESTS 18 31 102400 1500
30234611 Bleem A Sept. 9, 2017, 9:47 p.m. OK Haskell TESTS 18 31 8499200 1500
30123372 stczhc A Sept. 6, 2017, 5:31 a.m. OK Haskell TESTS 18 31 8499200 1500
50161964 vjudge1 A Feb. 19, 2019, 12:58 p.m. OK Haskell TESTS 18 46 102400 1500
30768569 di_halt A Sept. 27, 2017, 5:53 a.m. OK Java 8 TESTS 18 93 0 1500
30114925 static A Sept. 5, 2017, 5:28 p.m. OK Java 8 TESTS 18 108 0 1500
30279771 VernitaGreen A Sept. 12, 2017, 7:15 a.m. OK Java 8 TESTS 18 108 0 1500
30239925 spaul100 A Sept. 10, 2017, 7:46 a.m. OK Java 8 TESTS 18 108 0 1500
30115261 LirikIonov A Sept. 5, 2017, 5:42 p.m. OK Java 8 TESTS 18 108 0 1500
30108710 bovinophile A Sept. 5, 2017, 3:53 p.m. OK Java 8 TESTS 18 108 0 1500
30107457 mcfeed A Sept. 5, 2017, 3:41 p.m. OK Java 8 TESTS 18 108 0 1500
30107153 ode_to_code A Sept. 5, 2017, 3:38 p.m. OK Java 8 TESTS 18 108 0 1500
30103736 Oopsimbad A Sept. 5, 2017, 3:12 p.m. OK Java 8 TESTS 18 108 0 1500
66997107 unicorn20141 A Dec. 16, 2019, 2:52 a.m. OK Java 8 TESTS 18 109 0 1500
30540950 vjudge3 A Sept. 20, 2017, 10:14 a.m. OK JavaScript TESTS 18 30 0 1500
30116333 crazylina A Sept. 5, 2017, 6:34 p.m. OK JavaScript TESTS 18 46 0 1500
30114834 Eva A Sept. 5, 2017, 5:24 p.m. OK JavaScript TESTS 18 46 0 1500
46535626 Killer45 A Dec. 3, 2018, 8:49 a.m. OK Kotlin TESTS 18 109 0 1500
30107942 ramil.agger A Sept. 5, 2017, 3:46 p.m. OK Kotlin TESTS 18 109 0 1500
46535769 Killer45 A Dec. 3, 2018, 8:53 a.m. OK Kotlin TESTS 18 124 0 1500
42824586 065583 A Sept. 13, 2018, 9:07 a.m. OK Kotlin TESTS 18 171 0 1500
30117738 xap4o A Sept. 5, 2017, 8:05 p.m. OK Kotlin TESTS 18 186 1126400 1500
30108165 kuuso A Sept. 5, 2017, 3:48 p.m. OK Mono C# TESTS 18 46 0 1500
30104683 leign A Sept. 5, 2017, 3:19 p.m. OK Mono C# TESTS 18 46 102400 1500
31541313 og.kostya A Oct. 20, 2017, 5:24 p.m. OK Mono C# TESTS 18 61 9318400 1500
32701956 Barnoul A Nov. 27, 2017, 6:43 a.m. OK MS C# TESTS 18 46 9318400 1500
30107695 renadeen A Sept. 5, 2017, 3:43 p.m. OK MS C# TESTS 18 62 409600 1500
30261891 fr0st A Sept. 11, 2017, 8:50 a.m. OK MS C# TESTS 18 62 2560000 1500
30385494 Hadezkos A Sept. 16, 2017, 2:30 p.m. OK MS C# TESTS 18 77 2560000 1500
30180815 kshitij A Sept. 7, 2017, 12:20 p.m. OK MS C++ TESTS 18 15 0 1500
48550861 vjudge2 A Jan. 19, 2019, 1:39 a.m. OK MS C++ TESTS 18 15 0 1500
31320921 WiCry A Oct. 14, 2017, 6:31 p.m. OK MS C++ TESTS 18 15 0 1500
30865283 vjudge2 A Sept. 30, 2017, 11:50 a.m. OK MS C++ TESTS 18 15 0 1500
30421729 Decibit A Sept. 17, 2017, 12:52 p.m. OK MS C++ TESTS 18 15 0 1500
30297594 zhongdi A Sept. 13, 2017, 1:36 a.m. OK MS C++ TESTS 18 15 0 1500
30164055 achudov89 A Sept. 6, 2017, 6:42 p.m. OK MS C++ TESTS 18 15 0 1500
30119696 Kick420 A Sept. 5, 2017, 11:26 p.m. OK MS C++ TESTS 18 15 0 1500
30106920 neurophysicist A Sept. 5, 2017, 3:36 p.m. OK MS C++ TESTS 18 15 0 1500
30106505 Mithridat A Sept. 5, 2017, 3:33 p.m. OK MS C++ TESTS 18 15 0 1500
66444651 Mad112233 A Dec. 7, 2019, 9:11 a.m. OK MS C++ 2017 TESTS 18 31 0 1500
66444810 Mad112233 A Dec. 7, 2019, 9:14 a.m. OK MS C++ 2017 TESTS 18 31 0 1500
31507503 danshtal A Oct. 19, 2017, 12:21 p.m. OK PascalABC.NET TESTS 18 46 16896000 1500
30200014 s_p A Sept. 8, 2017, 10:32 a.m. OK Perl TESTS 18 15 0 1500
33845951 mayakin A Jan. 1, 2018, 11:32 a.m. OK PHP TESTS 18 31 5939200 1500
30548566 nealzane A Sept. 20, 2017, 2:22 p.m. OK PyPy 2 TESTS 18 62 0 1500
30231361 Yash_ A Sept. 9, 2017, 5:44 p.m. OK PyPy 2 TESTS 18 62 0 1500
30109319 WyattWismer A Sept. 5, 2017, 3:59 p.m. OK PyPy 2 TESTS 18 62 0 1500
34589305 SerChirag A Jan. 26, 2018, 10:19 p.m. OK PyPy 2 TESTS 18 62 21299200 1500
30119140 masonsbro A Sept. 5, 2017, 10:11 p.m. OK PyPy 2 TESTS 18 77 0 1500
30111920 le_michael A Sept. 5, 2017, 4:31 p.m. OK PyPy 2 TESTS 18 77 307200 1500
30198648 ResQ A Sept. 8, 2017, 9:05 a.m. OK PyPy 3 TESTS 18 93 0 1500
32576091 madhav_1999 A Nov. 23, 2017, 1:12 p.m. OK PyPy 3 TESTS 18 93 307200 1500
31770082 sb_riThu A Oct. 26, 2017, 6:51 p.m. OK PyPy 3 TESTS 18 93 307200 1500
30377200 Yukimai A Sept. 16, 2017, 6:14 a.m. OK PyPy 3 TESTS 18 109 0 1500
30103667 Naoki_M A Sept. 5, 2017, 3:11 p.m. OK PyPy 3 TESTS 18 109 0 1500
30106715 tmarice A Sept. 5, 2017, 3:35 p.m. OK PyPy 3 TESTS 18 109 819200 1500
30208772 sjsakib A Sept. 8, 2017, 5:22 p.m. OK PyPy 3 TESTS 18 124 0 1500
69584842 kchau A Jan. 26, 2020, 6:58 p.m. OK PyPy 3 TESTS 18 140 1331200 1500
60223340 CubeCakes A Sept. 7, 2019, 2:29 p.m. OK PyPy 3 TESTS 18 155 0 1500
56729414 gaurav17050 A July 8, 2019, 11:18 p.m. OK PyPy 3 TESTS 18 155 1433600 1500
31717392 isgulkov A Oct. 25, 2017, 4:22 p.m. OK Python 2 TESTS 18 46 0 1500
30608909 abhigyank A Sept. 22, 2017, 8:07 a.m. OK Python 2 TESTS 18 46 0 1500
30559466 antipr000 A Sept. 20, 2017, 6:52 p.m. OK Python 2 TESTS 18 46 0 1500
30200463 TohaKhan A Sept. 8, 2017, 11:02 a.m. OK Python 2 TESTS 18 46 0 1500
30197779 TahniatNiger A Sept. 8, 2017, 8:10 a.m. OK Python 2 TESTS 18 46 0 1500
30179977 ariel.chelsau A Sept. 7, 2017, 11:48 a.m. OK Python 2 TESTS 18 46 0 1500
30177023 ariel.chelsau A Sept. 7, 2017, 9:08 a.m. OK Python 2 TESTS 18 46 0 1500
30125464 Wizmann A Sept. 6, 2017, 7:46 a.m. OK Python 2 TESTS 18 46 0 1500
30112113 Djin31 A Sept. 5, 2017, 4:34 p.m. OK Python 2 TESTS 18 46 0 1500
30110534 kennyhothedev A Sept. 5, 2017, 4:13 p.m. OK Python 2 TESTS 18 46 0 1500
30568304 antonydeepak A Sept. 21, 2017, 6:31 a.m. OK Python 3 TESTS 18 46 0 1500
30119155 olegeo A Sept. 5, 2017, 10:12 p.m. OK Python 3 TESTS 18 46 0 1500
30118892 arknave A Sept. 5, 2017, 9:44 p.m. OK Python 3 TESTS 18 46 0 1500
30107779 bati06 A Sept. 5, 2017, 3:44 p.m. OK Python 3 TESTS 18 46 0 1500
30106878 Sheemon7 A Sept. 5, 2017, 3:36 p.m. OK Python 3 TESTS 18 46 0 1500
33515491 vjudge3 A Dec. 22, 2017, 5:15 p.m. OK Python 3 TESTS 18 46 5529600 1500
32572170 RelyOnTheTruth A Nov. 23, 2017, 10:34 a.m. OK Python 3 TESTS 18 61 0 1500
30748006 StinsonOvO A Sept. 26, 2017, 11:07 a.m. OK Python 3 TESTS 18 61 0 1500
30697872 Tihohon A Sept. 25, 2017, 7:45 a.m. OK Python 3 TESTS 18 61 0 1500
30683511 aliheidary1989 A Sept. 24, 2017, 4:27 p.m. OK Python 3 TESTS 18 61 0 1500
30948694 ShJ A Oct. 2, 2017, 4:49 p.m. OK Ruby TESTS 18 62 0 1500
30155789 cielavenir A Sept. 6, 2017, 2:50 p.m. OK Ruby TESTS 18 108 0 1500
30108788 Hillmouse A Sept. 5, 2017, 3:54 p.m. OK Rust TESTS 18 15 0 1500
34055551 kobae964 A Jan. 9, 2018, 6:06 p.m. OK Rust TESTS 18 15 106496000 1500
30267588 mikcorer A Sept. 11, 2017, 2:14 p.m. OK Scala TESTS 18 249 0 1500

remove filters

Back to search problems