Educational Codeforces Round 117 (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
1612 Educational Codeforces Round 117 (Rated for Div. 2) FINISHED False 7200 99692663 Nov. 22, 2021, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2587 ) E Messages PROGRAMMING greedy math probabilities sortings

B"Monocarp is a tutor of a group of n students. He communicates with them using a conference in a popular messenger. Today was a busy day for Monocarp -- he was asked to forward a lot of posts and announcements to his group, that's why he had to write a very large number of messages in the conference. Monocarp knows the students in the group he is tutoring quite well, so he understands which message should each student read: Monocarp wants the student i to read the message m_i . Of course, no one's going to read all the messages in the conference. That's why Monocarp decided to pin some of them. Monocarp can pin any number of messages, and if he wants anyone to read some message, he should pin it -- otherwise it will definitely be skipped by everyone. Unfortunately, even if a message is pinned, some students may skip it anyway. For each student i , Monocarp knows that they will read at most k_i messages. Suppose Monocarp pins t messages; if t <= k_i , then the i -th student will read all the pinned messages; but if t > k_i , the i -th student will choose exactly k_i random pinned messages (all possible subsets of pinned messages of size k_i are equiprobable) and read only the chosen messages. Monocarp wants to maximize the expected number of students that read their respective messages (i.e. the number of such indices i that student i reads the message m_i ). Help him to choose how many (and which) messages should he pin! The first line contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of students in the conference. Then n lines follow. The i -th line contains two integers m_i and k_i ( 1 <= m_i <= 2 cdot 10^5 ; 1 <= k_i <= 20 ) -- the index of the message which Monocarp wants the i -th student to read and the maximum number of messages the i -th student will read, respectively. In the first line, pr"...

Tutorials

97164

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
136530411 gaoshuzhendanten E Nov. 22, 2021, 3:11 p.m. OK GNU C++14 TESTS 175 171 3993600
136476956 XiEn1847 E Nov. 22, 2021, 11:39 a.m. OK GNU C++14 TESTS 175 187 4812800
136480203 gllonkxc E Nov. 22, 2021, 12:02 p.m. OK GNU C++14 TESTS 175 202 4812800
136528754 WaAccept E Nov. 22, 2021, 2:52 p.m. OK GNU C++14 TESTS 175 202 5734400
136562574 xuan13853715014 E Nov. 23, 2021, 2:44 a.m. OK GNU C++14 TESTS 176 218 4812800
136562567 xuan13853715014 E Nov. 23, 2021, 2:44 a.m. OK GNU C++14 TESTS 176 218 4812800
136557435 Jonothor_Darry E Nov. 22, 2021, 11:27 p.m. OK GNU C++14 TESTS 175 218 215654400
136476519 XSamsara E Nov. 22, 2021, 11:37 a.m. OK GNU C++14 TESTS 175 249 13107200
136559194 Tonyell E Nov. 23, 2021, 12:52 a.m. OK GNU C++14 TESTS 176 264 26112000
136484704 limilttt E Nov. 22, 2021, 12:43 p.m. OK GNU C++14 TESTS 175 265 13516800
136542290 Rogue33 E Nov. 22, 2021, 5:46 p.m. OK GNU C++17 TESTS 175 156 5836800
136487544 1838641320 E Nov. 22, 2021, 1:04 p.m. OK GNU C++17 TESTS 175 156 15769600
136487088 1838641320 E Nov. 22, 2021, 1:03 p.m. OK GNU C++17 TESTS 175 171 15769600
136563420 sillentKiller E Nov. 23, 2021, 3:06 a.m. OK GNU C++17 TESTS 176 187 3174400
136569099 gqf123 E Nov. 23, 2021, 5:17 a.m. OK GNU C++17 TESTS 176 187 3379200
136467185 _JohnWeak_ E Nov. 22, 2021, 11:25 a.m. OK GNU C++17 TESTS 175 234 3993600
136527148 the_compiler E Nov. 22, 2021, 2:35 p.m. OK GNU C++17 TESTS 175 234 19251200
136561040 oql E Nov. 23, 2021, 2:01 a.m. OK GNU C++17 TESTS 176 249 3993600
136468681 retired_account E Nov. 22, 2021, 11:29 a.m. OK GNU C++17 TESTS 175 249 9011200
136470800 DiTenix E Nov. 22, 2021, 11:33 a.m. OK GNU C++17 TESTS 175 249 13004800
136482309 rgnerdplayer E Nov. 22, 2021, 12:20 p.m. OK GNU C++17 (64) TESTS 175 124 3276800
136530600 DeepJay E Nov. 22, 2021, 3:14 p.m. OK GNU C++17 (64) TESTS 175 140 16076800
136479248 brunomont E Nov. 22, 2021, 11:54 a.m. OK GNU C++17 (64) TESTS 175 171 2457600
136485815 Time_JYF E Nov. 22, 2021, 12:53 p.m. OK GNU C++17 (64) TESTS 175 186 3993600
136477874 DreamingLeaf E Nov. 22, 2021, 11:44 a.m. OK GNU C++17 (64) TESTS 175 202 3276800
136559437 antguz E Nov. 23, 2021, 1:01 a.m. OK GNU C++17 (64) TESTS 176 202 4812800
136566639 0e4ef622 E Nov. 23, 2021, 4:22 a.m. OK GNU C++17 (64) TESTS 176 202 5632000
136484964 LacLic E Nov. 22, 2021, 12:46 p.m. OK GNU C++17 (64) TESTS 175 202 5632000
136546831 huehue2322434 E Nov. 22, 2021, 6:58 p.m. OK GNU C++17 (64) TESTS 175 202 67379200
136478819 altair_codf E Nov. 22, 2021, 11:51 a.m. OK GNU C++17 (64) TESTS 175 233 6451200
136534892 Meul E Nov. 22, 2021, 4:06 p.m. OK GNU C++20 (64) TESTS 175 93 3276800
136469647 jiangly E Nov. 22, 2021, 11:31 a.m. OK GNU C++20 (64) TESTS 175 124 3276800
136571543 Alan233 E Nov. 23, 2021, 5:59 a.m. OK GNU C++20 (64) TESTS 176 124 4812800
136537039 I_francis E Nov. 22, 2021, 4:33 p.m. OK GNU C++20 (64) TESTS 175 140 3276800
136466020 pufanyi E Nov. 22, 2021, 11:22 a.m. OK GNU C++20 (64) TESTS 175 140 5017600
136483636 Sigh E Nov. 22, 2021, 12:33 p.m. OK GNU C++20 (64) TESTS 175 140 36044800
136549177 thermodynam1c E Nov. 22, 2021, 7:46 p.m. OK GNU C++20 (64) TESTS 175 156 2457600
136536723 I_francis E Nov. 22, 2021, 4:29 p.m. OK GNU C++20 (64) TESTS 175 171 4812800
136562797 timmyfeng E Nov. 23, 2021, 2:50 a.m. OK GNU C++20 (64) TESTS 176 202 17612800
136524104 heno239 E Nov. 22, 2021, 2:05 p.m. OK GNU C++20 (64) TESTS 175 218 14848000
136552368 glebsamsonov E Nov. 22, 2021, 9:10 p.m. OK Go TESTS 175 1793 105267200
136557895 fgvjkshuifd E Nov. 22, 2021, 11:53 p.m. OK Java 11 TESTS 175 982 49152000
136521874 fgvjkshuifd E Nov. 22, 2021, 1:43 p.m. OK Java 11 TESTS 175 982 49152000
136477531 shojin_pro E Nov. 22, 2021, 11:42 a.m. OK Java 11 TESTS 175 2152 232857600
136480888 saptarshi1729 E Nov. 22, 2021, 12:07 p.m. OK Java 11 TESTS 175 2433 68608000
136563335 dzhi E Nov. 23, 2021, 3:04 a.m. OK Java 11 TESTS 176 2698 17305600
136532220 Whiplash99 E Nov. 22, 2021, 3:33 p.m. OK Java 8 TESTS 175 498 5222400
136531796 Whiplash99 E Nov. 22, 2021, 3:28 p.m. OK Java 8 TESTS 175 763 3891200
136526310 Katushechka E Nov. 22, 2021, 2:26 p.m. OK Java 8 TESTS 175 919 74854400
136467392 thedesalizes E Nov. 22, 2021, 11:25 a.m. OK Java 8 TESTS 175 1341 34508800
136467136 songuno1 E Nov. 22, 2021, 11:25 a.m. OK MS C++ 2017 TESTS 175 171 5017600
136521691 OLOGY E Nov. 22, 2021, 1:41 p.m. OK PyPy 2 TESTS 175 608 47616000
136512242 OLOGY E Nov. 22, 2021, 1:12 p.m. OK PyPy 2 TESTS 175 639 47923200
136530251 OLOGY E Nov. 22, 2021, 3:09 p.m. OK PyPy 2 TESTS 175 654 43315200
136486119 OLOGY E Nov. 22, 2021, 12:56 p.m. OK PyPy 2 TESTS 175 826 42188800
136486323 OLOGY E Nov. 22, 2021, 12:57 p.m. OK PyPy 2 TESTS 175 841 42086400
136485844 OLOGY E Nov. 22, 2021, 12:53 p.m. OK PyPy 2 TESTS 175 1996 57958400
136546842 OLOGY E Nov. 22, 2021, 6:58 p.m. OK PyPy 3 TESTS 175 717 37785600
136482195 xyxoro E Nov. 22, 2021, 12:19 p.m. OK PyPy 3 TESTS 175 998 35430400
136478196 SPD_9X2 E Nov. 22, 2021, 11:47 a.m. OK PyPy 3 TESTS 175 2074 52940800
136470310 lallala E Nov. 22, 2021, 11:32 a.m. OK PyPy 3 TESTS 175 2105 49868800
136512403 OLOGY E Nov. 22, 2021, 1:14 p.m. OK PyPy 3-64 TESTS 175 872 79155200
136486745 OLOGY E Nov. 22, 2021, 1:01 p.m. OK PyPy 3-64 TESTS 175 888 69427200
136530285 OLOGY E Nov. 22, 2021, 3:10 p.m. OK PyPy 3-64 TESTS 175 936 75264000
136528958 nicku123 E Nov. 22, 2021, 2:54 p.m. OK PyPy 3-64 TESTS 175 1918 46899200
136486604 OLOGY E Nov. 22, 2021, 12:59 p.m. OK PyPy 3-64 TESTS 175 2012 70758400
136477652 SPD_9X2 E Nov. 22, 2021, 11:43 a.m. OK PyPy 3-64 TESTS 175 2402 79667200
136549435 sansen E Nov. 22, 2021, 7:52 p.m. OK Rust TESTS 175 342 16179200
136560173 noogler E Nov. 23, 2021, 1:28 a.m. OK Rust TESTS 176 420 14540800
136560057 noogler E Nov. 23, 2021, 1:24 a.m. OK Rust TESTS 176 420 14540800

remove filters

Back to search problems