Educational Codeforces Round 66 (Rated for Div. 2)

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
1175 Educational Codeforces Round 66 (Rated for Div. 2) FINISHED False 7200 177693887 June 5, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10908 ) B Catch Overflow! PROGRAMMING data structures expression parsing implementation 1600

B'You are given a function f written in some basic language. The function accepts an integer value, which is immediately written into some variable x . x is an integer variable and can be assigned values from 0 to 2^{32}-1 . The function contains three types of commands: After the execution of these commands, value of x is returned. Every "for n " is matched with "end", thus the function is guaranteed to be valid. "for n " can be immediately followed by "end"."add" command can be outside of any for loops. Notice that "add" commands might overflow the value of x ! It means that the value of x becomes greater than 2^{32}-1 after some "add" command. Now you run f(0) and wonder if the resulting value of x is correct or some overflow made it incorrect. If overflow happened then output "OVERFLOW!!!", otherwise print the resulting value of x . The first line contains a single integer l ( 1 <= l <= 10^5 ) -- the number of lines in the function. Each of the next l lines contains a single command of one of three types: If overflow happened during execution of f(0) , then output "OVERFLOW!!!", otherwise print the resulting value of x . In the first example the first "add" is executed 1 time, the second "add" is executed 150 times and the last "add" is executed 10 times. Note that "for n " can be immediately followed by "end" and that "add" can be outside of any for loops. In the second example there are no commands "add", thus the returning value is 0. In the third example "add" command is executed too many times, which causes x to go over 2^{32}-1 . '...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68942578 vjudge5 B Jan. 16, 2020, 2:54 p.m. OK Clang++17 Diagnostics TESTS 104 109 5222400 1600
55301603 jiangly B June 8, 2019, 12:17 p.m. OK Clang++17 Diagnostics TESTS 104 233 1024000 1600
55284440 rlac B June 8, 2019, 3:50 a.m. OK Clang++17 Diagnostics TESTS 104 295 28774400 1600
55231882 True1 B June 7, 2019, 6:11 a.m. OK Clang++17 Diagnostics TESTS 104 405 15974400 1600
55296274 Nodir_Bobiev B June 8, 2019, 10:01 a.m. OK Clang++17 Diagnostics TESTS 104 467 7577600 1600
56365130 X-O__O-X B June 30, 2019, 10:03 p.m. OK Clang++17 Diagnostics TESTS 104 468 7475200 1600
55310464 khalil_2017 B June 8, 2019, 5:16 p.m. OK Clang++17 Diagnostics TESTS 104 499 7475200 1600
55204642 xcodevn B June 6, 2019, 12:03 p.m. OK D TESTS 104 202 4198400 1600
55173546 Arteni_Cristi B June 5, 2019, 5:43 p.m. OK FPC TESTS 104 93 1126400 1600
55177170 rajanjha B June 5, 2019, 7:15 p.m. OK GNU C11 TESTS 104 46 819200 1600
61047677 nikhilreddy123 B Sept. 22, 2019, 5:15 a.m. OK GNU C11 TESTS 104 46 819200 1600
55291038 akash19jain B June 8, 2019, 7:42 a.m. OK GNU C11 TESTS 104 46 819200 1600
55605460 rainboy B June 15, 2019, 10:26 p.m. OK GNU C11 TESTS 104 46 819200 1600
55581329 c1729 B June 15, 2019, 6:55 a.m. OK GNU C11 TESTS 104 46 1638400 1600
55581902 c1729 B June 15, 2019, 7:13 a.m. OK GNU C11 TESTS 104 46 1638400 1600
55573774 c1729 B June 14, 2019, 9:01 p.m. OK GNU C11 TESTS 104 46 1638400 1600
55573817 c1729 B June 14, 2019, 9:03 p.m. OK GNU C11 TESTS 104 46 1638400 1600
55181546 Venky99 B June 5, 2019, 11:01 p.m. OK GNU C11 TESTS 104 46 2355200 1600
58143698 Sarica B Aug. 1, 2019, 7:31 p.m. OK GNU C11 TESTS 104 46 7987200 1600
55610553 ReaLNero1 B June 16, 2019, 5:24 a.m. OK GNU C++11 TESTS 104 31 614400 1600
55419460 liguoxiong B June 11, 2019, 5:27 a.m. OK GNU C++11 TESTS 104 31 1331200 1600
58065014 bojverdict2 B July 31, 2019, 8:39 a.m. OK GNU C++11 TESTS 104 31 1433600 1600
58063740 bojverdict2 B July 31, 2019, 8:17 a.m. OK GNU C++11 TESTS 104 31 1740800 1600
56450053 7NationTengri B July 2, 2019, 9:22 p.m. OK GNU C++11 TESTS 104 31 4096000 1600
55396817 ouqingliang B June 10, 2019, 12:09 p.m. OK GNU C++11 TESTS 104 31 5222400 1600
58061241 WsSyx B July 31, 2019, 7:30 a.m. OK GNU C++11 TESTS 104 31 12800000 1600
58416836 beacon_cwk B Aug. 7, 2019, 5:32 a.m. OK GNU C++11 TESTS 104 46 204800 1600
55290373 minyzero B June 8, 2019, 7:24 a.m. OK GNU C++11 TESTS 104 46 204800 1600
55612701 luogu_bot3 B June 16, 2019, 6:56 a.m. OK GNU C++11 TESTS 104 46 204800 1600
55199755 hotrod B June 6, 2019, 10:04 a.m. OK GNU C++14 TESTS 104 31 614400 1600
55213088 Leandro.Acosta B June 6, 2019, 3:28 p.m. OK GNU C++14 TESTS 104 31 614400 1600
55237772 tytanium B June 7, 2019, 9:17 a.m. OK GNU C++14 TESTS 104 31 1024000 1600
55204159 limstash B June 6, 2019, 11:51 a.m. OK GNU C++14 TESTS 104 46 307200 1600
55941243 Enigma_28 B June 22, 2019, 4:46 p.m. OK GNU C++14 TESTS 104 46 409600 1600
60347811 lybzscyzb B Sept. 10, 2019, 1:12 p.m. OK GNU C++14 TESTS 104 46 409600 1600
59805912 Scut82 B Aug. 31, 2019, 11:53 a.m. OK GNU C++14 TESTS 104 46 409600 1600
58062906 bojverdict2 B July 31, 2019, 8:01 a.m. OK GNU C++14 TESTS 104 46 409600 1600
57778521 vjudge2 B July 26, 2019, 4:55 a.m. OK GNU C++14 TESTS 104 46 409600 1600
55932826 keysersoze29 B June 22, 2019, 12:21 p.m. OK GNU C++14 TESTS 104 46 409600 1600
57095282 lesskreker B July 15, 2019, 12:04 p.m. OK GNU C++17 TESTS 104 31 819200 1600
55702574 vvvb B June 18, 2019, 5:38 a.m. OK GNU C++17 TESTS 104 46 409600 1600
55530161 BinaryBoy B June 13, 2019, 1:10 p.m. OK GNU C++17 TESTS 104 46 409600 1600
56674142 lmiskiew B July 7, 2019, 2:36 p.m. OK GNU C++17 TESTS 104 46 409600 1600
56773777 verngutz B July 10, 2019, 1:06 a.m. OK GNU C++17 TESTS 104 46 409600 1600
56829956 vjudge5 B July 11, 2019, 6:33 a.m. OK GNU C++17 TESTS 104 46 409600 1600
59077324 Momentum B Aug. 19, 2019, 7:40 a.m. OK GNU C++17 TESTS 104 46 409600 1600
60275330 nbsjy B Sept. 8, 2019, 5:29 p.m. OK GNU C++17 TESTS 104 46 409600 1600
64351428 becom_better B Nov. 6, 2019, 8:32 a.m. OK GNU C++17 TESTS 104 46 409600 1600
55545075 vjudge2 B June 14, 2019, 1:08 a.m. OK GNU C++17 TESTS 104 46 409600 1600
55283314 Lancern B June 8, 2019, 3:05 a.m. OK Go TESTS 104 46 0 1600
56289923 sashamc B June 29, 2019, 11:17 p.m. OK Haskell TESTS 104 155 16896000 1600
55527293 sahiltiwari B June 13, 2019, 11:48 a.m. OK Haskell TESTS 104 358 18944000 1600
67987255 MaxHeap B Dec. 31, 2019, 12:19 a.m. OK Java 11 TESTS 104 202 0 1600
55309336 In_The_Name_Of_Love B June 8, 2019, 4:34 p.m. OK Java 8 TESTS 104 124 0 1600
56530116 Lior B July 4, 2019, 7:10 p.m. OK Java 8 TESTS 104 124 0 1600
55605459 Dukkha B June 15, 2019, 10:26 p.m. OK Java 8 TESTS 104 124 0 1600
55233984 DesaiNikunj B June 7, 2019, 7:20 a.m. OK Java 8 TESTS 104 124 0 1600
55213329 insane_28 B June 6, 2019, 3:34 p.m. OK Java 8 TESTS 104 124 0 1600
55184334 Garett B June 6, 2019, 2:15 a.m. OK Java 8 TESTS 104 124 0 1600
55180908 shubhammitt B June 5, 2019, 10:09 p.m. OK Java 8 TESTS 104 124 0 1600
60447033 LeamyCodes B Sept. 12, 2019, 2:30 p.m. OK Java 8 TESTS 104 139 0 1600
56178473 jonnyboy69 B June 27, 2019, 8:51 p.m. OK Java 8 TESTS 104 139 0 1600
56053956 Shivam_72 B June 25, 2019, 9:19 p.m. OK Java 8 TESTS 104 139 0 1600
55418472 Killer45 B June 11, 2019, 4:39 a.m. OK Kotlin TESTS 104 140 0 1600
55173584 Jamb0t B June 5, 2019, 5:44 p.m. OK Kotlin TESTS 104 171 4710400 1600
55198926 timurtibeyev B June 6, 2019, 9:44 a.m. OK Kotlin TESTS 104 218 307200 1600
55987058 Spheniscine B June 24, 2019, 4:49 a.m. OK Kotlin TESTS 104 234 204800 1600
56284131 sashamc B June 29, 2019, 6:31 p.m. OK Kotlin TESTS 104 249 307200 1600
55180332 heat_wave B June 5, 2019, 9:33 p.m. OK Kotlin TESTS 104 265 0 1600
55992049 og.kostya B June 24, 2019, 8:13 a.m. OK Mono C# TESTS 104 62 4915200 1600
63956274 hibatibati B Nov. 1, 2019, 1:54 a.m. OK Mono C# TESTS 104 78 5017600 1600
55227706 camypaper B June 7, 2019, 3:11 a.m. OK Mono C# TESTS 104 92 17612800 1600
55333876 barmaglot B June 9, 2019, 12:35 p.m. OK Mono C# TESTS 104 93 4198400 1600
55190253 eki B June 6, 2019, 6:08 a.m. OK Mono C# TESTS 104 93 4915200 1600
63674229 m1_k3 B Oct. 28, 2019, 5:53 p.m. OK Mono C# TESTS 104 93 5120000 1600
55177456 AmrGhallab B June 5, 2019, 7:23 p.m. OK Mono C# TESTS 104 93 5529600 1600
63674763 m1_k3 B Oct. 28, 2019, 6:02 p.m. OK Mono C# TESTS 104 93 5632000 1600
55177873 SegaMegaDrive B June 5, 2019, 7:36 p.m. OK Mono C# TESTS 104 93 8089600 1600
55336902 treasuryonly B June 9, 2019, 2:22 p.m. OK Mono C# TESTS 104 93 9216000 1600
55187287 Mamba0Z B June 6, 2019, 4:20 a.m. OK MS C++ TESTS 104 46 409600 1600
57778265 vjudge3 B July 26, 2019, 4:48 a.m. OK MS C++ TESTS 104 46 819200 1600
56833834 vjudge1 B July 11, 2019, 8:08 a.m. OK MS C++ TESTS 104 46 1024000 1600
65910142 vjudge2 B Nov. 28, 2019, 12:36 p.m. OK MS C++ TESTS 104 46 1228800 1600
55193147 stephentao333 B June 6, 2019, 7:19 a.m. OK MS C++ TESTS 104 46 1228800 1600
62456536 vjudge5 B Oct. 13, 2019, 6:39 a.m. OK MS C++ TESTS 104 46 1433600 1600
66039421 vjudge1 B Nov. 30, 2019, 12:58 p.m. OK MS C++ TESTS 104 46 1843200 1600
57778163 vjudge2 B July 26, 2019, 4:44 a.m. OK MS C++ TESTS 104 46 2560000 1600
57257589 scorpiowf B July 18, 2019, 3:09 a.m. OK MS C++ TESTS 104 46 2764800 1600
56831604 vjudge5 B July 11, 2019, 7:15 a.m. OK MS C++ TESTS 104 46 2867200 1600
58970923 Still_Theory B Aug. 17, 2019, 8:22 p.m. OK MS C++ 2017 TESTS 104 46 3174400 1600
55194338 NPUlzh B June 6, 2019, 7:50 a.m. OK MS C++ 2017 TESTS 104 61 2662400 1600
55231480 hunggggg B June 7, 2019, 5:56 a.m. OK MS C++ 2017 TESTS 104 62 614400 1600
55229564 RANCAFE B June 7, 2019, 4:37 a.m. OK MS C++ 2017 TESTS 104 62 819200 1600
55206071 2017224400 B June 6, 2019, 12:37 p.m. OK MS C++ 2017 TESTS 104 62 819200 1600
55203028 R99 B June 6, 2019, 11:25 a.m. OK MS C++ 2017 TESTS 104 62 819200 1600
55190789 Yilis B June 6, 2019, 6:23 a.m. OK MS C++ 2017 TESTS 104 62 819200 1600
55336179 senich B June 9, 2019, 1:54 p.m. OK MS C++ 2017 TESTS 104 62 819200 1600
56027963 AcNaQue B June 25, 2019, 7:58 a.m. OK MS C++ 2017 TESTS 104 62 819200 1600
55184735 hwi B June 6, 2019, 2:35 a.m. OK MS C++ 2017 TESTS 104 62 1228800 1600
59954852 pascal_handle B Sept. 3, 2019, 3:46 p.m. OK PascalABC.NET TESTS 104 233 0 1600
69805188 mm944 B Jan. 30, 2020, 1:21 a.m. OK PascalABC.NET TESTS 104 452 4198400 1600
55210324 lostamok B June 6, 2019, 2:20 p.m. OK PHP TESTS 104 93 10035200 1600
55177979 meiniak B June 5, 2019, 7:39 p.m. OK PyPy 2 TESTS 104 155 3379200 1600
55177947 meiniak B June 5, 2019, 7:38 p.m. OK PyPy 2 TESTS 104 171 3379200 1600
55203194 shafwanur010 B June 6, 2019, 11:29 a.m. OK PyPy 2 TESTS 104 171 5529600 1600
55211303 raj1307 B June 6, 2019, 2:44 p.m. OK PyPy 2 TESTS 104 217 3481600 1600
55203135 shafwanur010 B June 6, 2019, 11:27 a.m. OK PyPy 2 TESTS 104 218 5529600 1600
55226980 bertrandovide B June 7, 2019, 2:33 a.m. OK PyPy 2 TESTS 104 405 9523200 1600
55174748 17ucs031 B June 5, 2019, 6:09 p.m. OK PyPy 2 TESTS 104 421 11161600 1600
55177850 Strange_Evil B June 5, 2019, 7:35 p.m. OK PyPy 2 TESTS 104 436 11059200 1600
55177795 meiniak B June 5, 2019, 7:33 p.m. OK PyPy 2 TESTS 104 639 3788800 1600
55178844 c1729 B June 5, 2019, 8:11 p.m. OK PyPy 2 TESTS 104 655 5836800 1600
55579313 yumtam B June 15, 2019, 5:24 a.m. OK PyPy 3 TESTS 104 171 2867200 1600
55422187 mb1te B June 11, 2019, 7:05 a.m. OK PyPy 3 TESTS 104 187 5427200 1600
55199650 vyassamir B June 6, 2019, 10:01 a.m. OK PyPy 3 TESTS 104 202 6246400 1600
63685147 d_i_m_a B Oct. 28, 2019, 10:04 p.m. OK PyPy 3 TESTS 104 233 6860800 1600
55174937 bkalra28 B June 5, 2019, 6:14 p.m. OK PyPy 3 TESTS 104 233 9011200 1600
56483272 koptev B July 3, 2019, 5:08 p.m. OK PyPy 3 TESTS 104 295 9011200 1600
56483157 koptev B July 3, 2019, 5:06 p.m. OK PyPy 3 TESTS 104 342 9011200 1600
55175227 III_Wolverine_III B June 5, 2019, 6:22 p.m. OK PyPy 3 TESTS 104 794 11366400 1600
55205477 Rajan_sust B June 6, 2019, 12:23 p.m. OK PyPy 3 TESTS 104 795 7577600 1600
55311359 edytr B June 8, 2019, 5:50 p.m. OK PyPy 3 TESTS 104 795 8601600 1600
55428145 29029 B June 11, 2019, 10:01 a.m. OK Python 2 TESTS 104 233 1945600 1600
55179898 pajenegod B June 5, 2019, 9:04 p.m. OK Python 2 TESTS 104 249 1945600 1600
55179940 pajenegod B June 5, 2019, 9:06 p.m. OK Python 2 TESTS 104 265 1945600 1600
55179237 pajenegod B June 5, 2019, 8:28 p.m. OK Python 2 TESTS 104 265 1945600 1600
55179074 pajenegod B June 5, 2019, 8:21 p.m. OK Python 2 TESTS 104 265 1945600 1600
55178830 c1729 B June 5, 2019, 8:10 p.m. OK Python 2 TESTS 104 265 1945600 1600
55179485 pajenegod B June 5, 2019, 8:38 p.m. OK Python 2 TESTS 104 280 1945600 1600
55179281 pajenegod B June 5, 2019, 8:30 p.m. OK Python 2 TESTS 104 280 1945600 1600
55179184 pajenegod B June 5, 2019, 8:26 p.m. OK Python 2 TESTS 104 280 1945600 1600
55178768 c1729 B June 5, 2019, 8:08 p.m. OK Python 2 TESTS 104 280 1945600 1600
55174981 Bin4ryGh0st B June 5, 2019, 6:15 p.m. OK Python 3 TESTS 104 186 5427200 1600
55187562 ZiJohnCena B June 6, 2019, 4:31 a.m. OK Python 3 TESTS 104 202 716800 1600
55207688 misclicked B June 6, 2019, 1:16 p.m. OK Python 3 TESTS 104 202 5324800 1600
55215230 madergaser B June 6, 2019, 4:23 p.m. OK Python 3 TESTS 104 218 1740800 1600
55205350 SalmonTimo B June 6, 2019, 12:20 p.m. OK Python 3 TESTS 104 218 6144000 1600
55422219 mb1te B June 11, 2019, 7:06 a.m. OK Python 3 TESTS 104 249 614400 1600
55276464 ravi.kaushal97 B June 7, 2019, 7:28 p.m. OK Python 3 TESTS 104 249 614400 1600
64321961 lrnz B Nov. 5, 2019, 3:57 p.m. OK Python 3 TESTS 104 249 716800 1600
55650831 Seer_Sayem B June 16, 2019, 2:28 p.m. OK Python 3 TESTS 104 249 716800 1600
62768807 spark_in B Oct. 17, 2019, 9:33 a.m. OK Python 3 TESTS 104 249 921600 1600
55190202 geckods anurag11699 B June 6, 2019, 6:07 a.m. OK Ruby TESTS 104 249 1536000 1600
56532491 no__ B July 4, 2019, 8:45 p.m. OK Rust TESTS 104 46 819200 1600
56782080 fanzhang B July 10, 2019, 6:42 a.m. OK Rust TESTS 104 46 1024000 1600
67629894 gearjack B Dec. 26, 2019, 2:54 a.m. OK Rust TESTS 104 46 3686400 1600
55223174 smas B June 6, 2019, 9:30 p.m. OK Scala TESTS 104 608 0 1600

remove filters

Back to search problems