Educational Codeforces Round 72 (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
1217 Educational Codeforces Round 72 (Rated for Div. 2) FINISHED False 7200 169745087 Sept. 5, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15123 ) A Creating a Character PROGRAMMING binary search math 1300

B"You play your favourite game yet another time. You chose the character you didn't play before. It has str points of strength and int points of intelligence. Also, at start, the character has exp free experience points you can invest either in strength or in intelligence (by investing one point you can either raise strength by 1 or raise intelligence by 1 ). Since you'd like to make some fun you want to create a jock character, so it has more strength than intelligence points (resulting strength is strictly greater than the resulting intelligence). Calculate the number of different character builds you can create (for the purpose of replayability) if you must invest all free points. Two character builds are different if their strength and/or intellect are different. The first line contains the single integer T ( 1 <= T <= 100 ) -- the number of queries. Next T lines contain descriptions of queries -- one per line. This line contains three integers str , int and exp ( 1 <= str, int <= 10^8 , 0 <= exp <= 10^8 ) -- the initial strength and intelligence of the character and the number of free points, respectively. Print T integers -- one per query. For each query print the number of different character builds you can create. In the first query there are only three appropriate character builds: (str = 7, int = 5) , (8, 4) and (9, 3) . All other builds are either too smart or don't use all free points. In the second query there is only one possible build: (2, 1) . In the third query there are two appropriate builds: (7, 6) , (8, 5) . In the fourth query all builds have too much brains. "...

Tutorials

Educational Codeforces Round 72 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
61583072 vjudge2 A Oct. 1, 2019, 3:14 a.m. OK Clang++17 Diagnostics TESTS 9 31 0 1300
60241866 LeamyCodes A Sept. 7, 2019, 10:01 p.m. OK Clang++17 Diagnostics TESTS 9 46 0 1300
60845328 Avitella A Sept. 19, 2019, 12:22 p.m. OK Clang++17 Diagnostics TESTS 9 46 0 1300
60359970 muromirg A Sept. 10, 2019, 5:47 p.m. OK Clang++17 Diagnostics TESTS 9 46 0 1300
61095452 fluffyowl A Sept. 23, 2019, 2:30 a.m. OK D TESTS 9 15 0 1300
61596362 tranminhprvt01 A Oct. 1, 2019, 8:59 a.m. OK FPC TESTS 9 30 0 1300
60158284 taqhahaha A Sept. 6, 2019, 7:50 a.m. OK FPC TESTS 9 30 0 1300
60248060 nguyenhoangminh31082003 A Sept. 8, 2019, 4:41 a.m. OK FPC TESTS 9 30 0 1300
61429394 Julia-Kotova A Sept. 28, 2019, 2:10 p.m. OK FPC TESTS 9 31 0 1300
60635743 pascal_handle A Sept. 15, 2019, 1:45 p.m. OK FPC TESTS 9 31 0 1300
60271455 calonmaster A Sept. 8, 2019, 3:43 p.m. OK FPC TESTS 9 31 0 1300
60261832 cs234_shrey A Sept. 8, 2019, 11:49 a.m. OK GNU C11 TESTS 9 15 0 1300
60480600 kiastien A Sept. 13, 2019, 10:14 a.m. OK GNU C11 TESTS 9 15 0 1300
61075155 Shakib_SRK A Sept. 22, 2019, 2:09 p.m. OK GNU C11 TESTS 9 15 0 1300
61163860 sartajekram A Sept. 23, 2019, 3:57 p.m. OK GNU C11 TESTS 9 15 0 1300
61557297 ___Shallow__ A Sept. 30, 2019, 2:26 p.m. OK GNU C11 TESTS 9 15 0 1300
61970825 tkumar777 A Oct. 6, 2019, 9:02 a.m. OK GNU C11 TESTS 9 15 0 1300
62454404 rahulgoel A Oct. 13, 2019, 5:49 a.m. OK GNU C11 TESTS 9 15 0 1300
63369442 luogu_bot3 A Oct. 25, 2019, 8:48 a.m. OK GNU C11 TESTS 9 15 0 1300
64317993 vjudge2 A Nov. 5, 2019, 2:41 p.m. OK GNU C11 TESTS 9 15 0 1300
66214170 DevJewel A Dec. 3, 2019, 8:12 a.m. OK GNU C11 TESTS 9 15 0 1300
66136728 coder370 A Dec. 1, 2019, 12:32 p.m. OK GNU C++11 TESTS 9 15 0 1300
66138059 dDuanduang A Dec. 1, 2019, 1:07 p.m. OK GNU C++11 TESTS 9 15 0 1300
67622135 Mostafa_ELbadawy A Dec. 25, 2019, 7:21 p.m. OK GNU C++11 TESTS 9 15 0 1300
67988524 fmln A Dec. 31, 2019, 2:04 a.m. OK GNU C++11 TESTS 9 15 0 1300
68085180 God_particle A Jan. 2, 2020, 3:57 p.m. OK GNU C++11 TESTS 9 15 0 1300
68139850 monk A Jan. 3, 2020, 9:18 p.m. OK GNU C++11 TESTS 9 15 0 1300
68233883 cckk4467 A Jan. 5, 2020, 10:12 a.m. OK GNU C++11 TESTS 9 15 0 1300
68688678 ren_jian_cheng A Jan. 13, 2020, 5 a.m. OK GNU C++11 TESTS 9 15 0 1300
69593328 DevC A Jan. 27, 2020, 2:33 a.m. OK GNU C++11 TESTS 9 15 0 1300
69820448 wendy2003888 A Jan. 30, 2020, 7:38 a.m. OK GNU C++11 TESTS 9 15 0 1300
68714641 doreamon_ A Jan. 13, 2020, 2:03 p.m. OK GNU C++14 TESTS 9 15 0 1300
69528670 rahul_2019 A Jan. 25, 2020, 4:08 p.m. OK GNU C++14 TESTS 9 15 0 1300
69497308 dnpshuser A Jan. 25, 2020, 4:53 a.m. OK GNU C++14 TESTS 9 15 0 1300
69423707 Nursikkkkkkarrrdashian A Jan. 23, 2020, 3:09 p.m. OK GNU C++14 TESTS 9 15 0 1300
69373503 anshulgoel553 A Jan. 22, 2020, 5:37 p.m. OK GNU C++14 TESTS 9 15 0 1300
69073238 riverwalk7 A Jan. 19, 2020, 12:29 a.m. OK GNU C++14 TESTS 9 15 0 1300
68945467 sangram_skm A Jan. 16, 2020, 3:59 p.m. OK GNU C++14 TESTS 9 15 0 1300
68752073 aramun_haesulla A Jan. 14, 2020, 7:01 a.m. OK GNU C++14 TESTS 9 15 0 1300
68750735 vgarg_2.0 A Jan. 14, 2020, 6:34 a.m. OK GNU C++14 TESTS 9 15 0 1300
68718575 x20 A Jan. 13, 2020, 3:23 p.m. OK GNU C++14 TESTS 9 15 0 1300
69710758 1351753894 A Jan. 29, 2020, 6:55 a.m. OK GNU C++17 TESTS 9 15 0 1300
69711477 1351753894 A Jan. 29, 2020, 7:13 a.m. OK GNU C++17 TESTS 9 15 0 1300
69712945 whitabbit A Jan. 29, 2020, 7:50 a.m. OK GNU C++17 TESTS 9 15 0 1300
69713062 1351753894 A Jan. 29, 2020, 7:52 a.m. OK GNU C++17 TESTS 9 15 0 1300
69713587 whitabbit A Jan. 29, 2020, 8:06 a.m. OK GNU C++17 TESTS 9 15 0 1300
69852886 Nah1d A Jan. 30, 2020, 4:09 p.m. OK GNU C++17 TESTS 9 15 0 1300
69873230 jasonleft A Jan. 31, 2020, 2:08 a.m. OK GNU C++17 TESTS 9 15 0 1300
69898760 vjudge4 A Jan. 31, 2020, 12:28 p.m. OK GNU C++17 TESTS 9 15 0 1300
69914372 thisisnottaken A Jan. 31, 2020, 4:21 p.m. OK GNU C++17 TESTS 9 15 0 1300
69947915 Kot-Skazochnik A Feb. 1, 2020, 8:07 a.m. OK GNU C++17 TESTS 9 15 0 1300
61188270 sighduck A Sept. 24, 2019, 12:54 a.m. OK Go TESTS 9 15 0 1300
60190838 ralekseenkov A Sept. 6, 2019, 9:15 p.m. OK Go TESTS 9 30 0 1300
62115147 congbao A Oct. 8, 2019, 1:11 p.m. OK Go TESTS 9 31 0 1300
60910413 acafterwa A Sept. 20, 2019, 5:34 a.m. OK Go TESTS 9 31 0 1300
60542749 admarkov A Sept. 14, 2019, 1:31 p.m. OK Go TESTS 9 31 0 1300
60452619 dSnix A Sept. 12, 2019, 4:35 p.m. OK Go TESTS 9 31 0 1300
60288745 digiter A Sept. 9, 2019, 5:24 a.m. OK Go TESTS 9 31 0 1300
60272715 xenowits A Sept. 8, 2019, 4:17 p.m. OK Go TESTS 9 31 0 1300
60596548 asdacap A Sept. 15, 2019, 6:01 a.m. OK Haskell TESTS 9 30 102400 1300
60581657 okahnus A Sept. 14, 2019, 6:46 p.m. OK Haskell TESTS 9 46 102400 1300
69939844 KreedM A Feb. 1, 2020, 5:44 a.m. OK Java 11 TESTS 9 171 0 1300
67569292 lightseba A Dec. 24, 2019, 8:57 p.m. OK Java 11 TESTS 9 171 0 1300
66037135 machhra A Nov. 30, 2019, 12:11 p.m. OK Java 11 TESTS 9 171 0 1300
69580159 alankritanand001 A Jan. 26, 2020, 5:02 p.m. OK Java 11 TESTS 9 202 0 1300
65943651 30818 A Nov. 29, 2019, 7:37 a.m. OK Java 11 TESTS 9 202 0 1300
60526423 Nesrin A Sept. 14, 2019, 10:35 a.m. OK Java 8 TESTS 9 93 0 1300
60514490 jsgomez23 A Sept. 14, 2019, 5:45 a.m. OK Java 8 TESTS 9 93 0 1300
67779533 bluesky111 A Dec. 28, 2019, 10:24 a.m. OK Java 8 TESTS 9 108 0 1300
67459199 Mann_27__ A Dec. 23, 2019, 8:25 a.m. OK Java 8 TESTS 9 108 0 1300
66445134 iam_ljk A Dec. 7, 2019, 9:21 a.m. OK Java 8 TESTS 9 108 0 1300
64687826 GreatWhite A Nov. 11, 2019, 12:16 p.m. OK Java 8 TESTS 9 108 0 1300
62854894 kocko A Oct. 18, 2019, 8:52 a.m. OK Java 8 TESTS 9 108 0 1300
61400920 asad_abd A Sept. 28, 2019, 5:08 a.m. OK Java 8 TESTS 9 108 0 1300
61272630 Jarik A Sept. 25, 2019, 2:28 p.m. OK Java 8 TESTS 9 108 0 1300
61272445 Jarik A Sept. 25, 2019, 2:26 p.m. OK Java 8 TESTS 9 108 0 1300
60149874 Spheniscine A Sept. 6, 2019, 3:13 a.m. OK Kotlin TESTS 9 109 0 1300
68027835 vjudge2 A Jan. 1, 2020, 7:13 a.m. OK Kotlin TESTS 9 139 0 1300
60190369 Tlatoani A Sept. 6, 2019, 8:55 p.m. OK Kotlin TESTS 9 139 0 1300
60388896 SalmonTimo A Sept. 11, 2019, 12:34 p.m. OK Kotlin TESTS 9 139 102400 1300
60280335 Black_Fregat A Sept. 8, 2019, 8:22 p.m. OK Kotlin TESTS 9 139 102400 1300
60270215 wbars A Sept. 8, 2019, 3:08 p.m. OK Kotlin TESTS 9 140 0 1300
60460725 dkozak94 A Sept. 12, 2019, 8:26 p.m. OK Kotlin TESTS 9 140 102400 1300
60195773 plourde27 A Sept. 7, 2019, 1:36 a.m. OK Kotlin TESTS 9 155 102400 1300
60687551 shakram02 A Sept. 16, 2019, 4:01 p.m. OK Kotlin TESTS 9 155 204800 1300
60189528 AmineTrabelsi A Sept. 6, 2019, 8:24 p.m. OK Kotlin TESTS 9 155 204800 1300
60230215 m1_k3 A Sept. 7, 2019, 4:13 p.m. OK Mono C# TESTS 9 31 0 1300
60514559 LapsleyJuno SaurumanS A Sept. 14, 2019, 5:47 a.m. OK Mono C# TESTS 9 46 0 1300
68988340 TheThing A Jan. 17, 2020, 1:19 p.m. OK Mono C# TESTS 9 46 0 1300
66088994 shohag_16030 A Dec. 1, 2019, 6:28 a.m. OK Mono C# TESTS 9 46 0 1300
63298324 Tan42 A Oct. 24, 2019, 1:34 p.m. OK Mono C# TESTS 9 46 0 1300
61403518 zm_nation96 A Sept. 28, 2019, 6:12 a.m. OK Mono C# TESTS 9 46 0 1300
61277907 og.kostya A Sept. 25, 2019, 4:03 p.m. OK Mono C# TESTS 9 46 0 1300
61119143 Salatik231166 A Sept. 23, 2019, 1:51 p.m. OK Mono C# TESTS 9 46 0 1300
60737043 trolina32 A Sept. 17, 2019, 6 p.m. OK Mono C# TESTS 9 46 0 1300
60531052 zazak A Sept. 14, 2019, 12:29 p.m. OK Mono C# TESTS 9 46 0 1300
64863944 vjudge3 A Nov. 14, 2019, 5:01 a.m. OK MS C++ TESTS 9 15 0 1300
64057357 vjudge3 A Nov. 2, 2019, 2:07 a.m. OK MS C++ TESTS 9 15 0 1300
62875511 vjudge5 A Oct. 18, 2019, 3:11 p.m. OK MS C++ TESTS 9 15 0 1300
61819890 vjudge3 A Oct. 4, 2019, 1:42 a.m. OK MS C++ TESTS 9 15 0 1300
60592953 vjudge4 A Sept. 15, 2019, 3:32 a.m. OK MS C++ TESTS 9 15 0 1300
68393586 vjudge3 A Jan. 8, 2020, 9:51 a.m. OK MS C++ TESTS 9 15 0 1300
68036601 vjudge4 A Jan. 1, 2020, 12:22 p.m. OK MS C++ TESTS 9 15 0 1300
68023528 vjudge2 A Jan. 1, 2020, 3 a.m. OK MS C++ TESTS 9 15 0 1300
67951437 vjudge3 A Dec. 30, 2019, 7:50 a.m. OK MS C++ TESTS 9 15 0 1300
65256111 Satan666_ A Nov. 17, 2019, 1:27 p.m. OK MS C++ TESTS 9 15 0 1300
60835859 Peton A Sept. 19, 2019, 8:58 a.m. OK MS C++ 2017 TESTS 9 15 0 1300
65737655 Sorin1932 A Nov. 26, 2019, 8:37 a.m. OK MS C++ 2017 TESTS 9 15 0 1300
65625996 Kirja_ES A Nov. 24, 2019, 8:02 a.m. OK MS C++ 2017 TESTS 9 15 0 1300
65256129 Satan666_ A Nov. 17, 2019, 1:28 p.m. OK MS C++ 2017 TESTS 9 15 0 1300
61375190 Still_Theory A Sept. 27, 2019, 4:04 p.m. OK MS C++ 2017 TESTS 9 15 0 1300
60910342 tejalnaik A Sept. 20, 2019, 5:32 a.m. OK MS C++ 2017 TESTS 9 15 0 1300
60686849 Ruslan376 A Sept. 16, 2019, 3:46 p.m. OK MS C++ 2017 TESTS 9 15 0 1300
60573619 Kafka1408 A Sept. 14, 2019, 3:38 p.m. OK MS C++ 2017 TESTS 9 15 0 1300
60473841 MishaSm A Sept. 13, 2019, 7 a.m. OK MS C++ 2017 TESTS 9 15 0 1300
60385136 coder_pikachu A Sept. 11, 2019, 11:10 a.m. OK MS C++ 2017 TESTS 9 15 0 1300
60817005 magic_beans A Sept. 18, 2019, 8:48 p.m. OK Node.js TESTS 9 140 1126400 1300
60146960 evanli2014 A Sept. 6, 2019, 12:57 a.m. OK Node.js TESTS 9 186 1228800 1300
60207823 Loremon A Sept. 7, 2019, 8:54 a.m. OK Node.js TESTS 9 234 1228800 1300
60241632 yumtam A Sept. 7, 2019, 9:49 p.m. OK PyPy 2 TESTS 9 124 0 1300
60515566 thenewguy39 A Sept. 14, 2019, 6:23 a.m. OK PyPy 2 TESTS 9 264 7680000 1300
61440250 Soapen Felerius A Sept. 28, 2019, 6:25 p.m. OK PyPy 3 TESTS 9 124 0 1300
61745238 algowa.z A Oct. 2, 2019, 11:30 p.m. OK PyPy 3 TESTS 9 124 0 1300
60735781 hnagamin A Sept. 17, 2019, 5:26 p.m. OK PyPy 3 TESTS 9 124 0 1300
60262258 Phantom__586 A Sept. 8, 2019, noon OK PyPy 3 TESTS 9 124 0 1300
60257122 adkorolkov2 A Sept. 8, 2019, 9:53 a.m. OK PyPy 3 TESTS 9 124 0 1300
60393546 Evil__Coder A Sept. 11, 2019, 2:07 p.m. OK PyPy 3 TESTS 9 124 1331200 1300
65031521 thekushalghosh A Nov. 15, 2019, 10:05 a.m. OK PyPy 3 TESTS 9 139 0 1300
64573039 lke_python A Nov. 9, 2019, 9:51 a.m. OK PyPy 3 TESTS 9 139 0 1300
62610116 mad_foodie A Oct. 15, 2019, 9:24 a.m. OK PyPy 3 TESTS 9 139 0 1300
62446598 vjudge5 A Oct. 12, 2019, 11:59 p.m. OK PyPy 3 TESTS 9 139 0 1300
60247600 intspt A Sept. 8, 2019, 4:16 a.m. OK Python 2 TESTS 9 171 0 1300
60216278 biltharesatyendra A Sept. 7, 2019, 11:58 a.m. OK Python 2 TESTS 9 186 0 1300
62461543 shirsha A Oct. 13, 2019, 8:26 a.m. OK Python 2 TESTS 9 187 0 1300
61607000 SanyOK_149191 A Oct. 1, 2019, 12:59 p.m. OK Python 3 TESTS 9 93 0 1300
61600231 Mission2020 A Oct. 1, 2019, 10:37 a.m. OK Python 3 TESTS 9 93 0 1300
60818488 minase1224 A Sept. 18, 2019, 9:49 p.m. OK Python 3 TESTS 9 93 0 1300
60418012 Koetbilge A Sept. 12, 2019, 3:47 a.m. OK Python 3 TESTS 9 93 0 1300
60352516 sunyeul A Sept. 10, 2019, 2:50 p.m. OK Python 3 TESTS 9 93 0 1300
60347895 sunyeul A Sept. 10, 2019, 1:14 p.m. OK Python 3 TESTS 9 93 0 1300
60323814 gogokefakefa A Sept. 9, 2019, 10:41 p.m. OK Python 3 TESTS 9 93 0 1300
60307196 pro_reaper A Sept. 9, 2019, 2:21 p.m. OK Python 3 TESTS 9 93 0 1300
60175075 SinKing A Sept. 6, 2019, 2:07 p.m. OK Python 3 TESTS 9 93 0 1300
67846770 preha_rohatgi A Dec. 28, 2019, 10:10 p.m. OK Python 3 TESTS 9 108 0 1300
60143600 kalari499 A Sept. 5, 2019, 9:47 p.m. OK Ruby TESTS 9 46 204800 1300
60150103 bozh A Sept. 6, 2019, 3:22 a.m. OK Ruby TESTS 9 108 102400 1300
60468791 chinmaykousik1 A Sept. 13, 2019, 3:59 a.m. OK Rust TESTS 9 15 0 1300
69709732 sansen A Jan. 29, 2020, 6:30 a.m. OK Rust TESTS 9 30 0 1300
60403674 tpoeiras A Sept. 11, 2019, 5:40 p.m. OK Rust TESTS 9 30 0 1300
60661682 000golabi A Sept. 16, 2019, 5:21 a.m. OK Rust TESTS 9 31 0 1300
60499642 Velikan A Sept. 13, 2019, 6:01 p.m. OK Rust TESTS 9 31 0 1300
60187681 A.K.Goharshady A Sept. 6, 2019, 7:22 p.m. OK Rust TESTS 9 31 0 1300
61117824 ikazuya0201 A Sept. 23, 2019, 1:27 p.m. OK Rust TESTS 9 31 204800 1300
60156200 limed A Sept. 6, 2019, 6:55 a.m. OK Scala TESTS 9 155 0 1300
60156128 limed A Sept. 6, 2019, 6:53 a.m. OK Scala TESTS 9 155 0 1300
60156038 limed A Sept. 6, 2019, 6:51 a.m. OK Scala TESTS 9 155 0 1300
60155848 limed A Sept. 6, 2019, 6:45 a.m. OK Scala TESTS 9 155 0 1300
60156831 limed A Sept. 6, 2019, 7:12 a.m. OK Scala TESTS 9 156 0 1300
60156759 limed A Sept. 6, 2019, 7:10 a.m. OK Scala TESTS 9 171 0 1300
60155962 limed A Sept. 6, 2019, 6:49 a.m. OK Scala TESTS 9 389 0 1300
60156163 limed A Sept. 6, 2019, 6:54 a.m. OK Scala TESTS 9 390 0 1300
60156441 limed A Sept. 6, 2019, 7:02 a.m. OK Scala TESTS 9 421 0 1300
60156692 limed A Sept. 6, 2019, 7:08 a.m. OK Scala TESTS 9 436 0 1300

remove filters

Back to search problems