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.
Problems
Consider a regular Codeforces round consisting of three problems that uses dynamic scoring. You are given an almost final scoreboard. For each participant (including yourself), the time of the accepted submission for each of the problems is given. Also, for each solution you already know whether you are able to hack it or not. The only changes in the scoreboard that will happen before the end of the round are your challenges. What is the best place you may take at the end? More formally, n people are participating (including yourself). For any problem, if it was solved by exactly k people at the end of the round, the maximum score for this problem is defined as: If n < 2 k ≤ 2 n , then the maximum possible score is 500 ; If n < 4 k ≤ 2 n , then the maximum possible score is 1000 ; If n < 8 k ≤ 2 n , then the maximum possible score is 1500 ; If n < 16 k ≤ 2 n , then the maximum possible score is 2000 ; If n < 32 k ≤ 2 n , then the maximum possible score is 2500 ; If 32 k ≤ n , then the maximum possible score is 3000 . Let the maximum possible score for some problem be equal to s . Then a contestant who didn't manage to get it accepted (or his solution was hacked) earns 0 points for this problem. If he got the the solution accepted t minutes after the beginning of the round (and his solution wasn't hacked), he earns points for this problem. The overall score of a participant is equal to the sum of points he earns for each problem plus 100 points for each successful hack (only you make hacks). The resulting place you get is equal to one plus the number of participants who's overall score is strictly greater than yours. The first line of the input contains a single integer n ( 1 ≤ n ≤ 5000 ) — the number of participants. You are the participant number 1 . Each of the following n lines contains three integers a i , b i and c i . Here a i = 0 means that the participant number i didn't manage to accept first problem. If 1 ≤ a i ≤ 120 , then the participant number |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
17523874 |
130705009 |
E |
April 26, 2016, 3:14 p.m. |
OK |
GNU C++ |
TESTS |
65 |
15 |
8601600 |
|
2800 |
|
20928882 |
jiyutian |
E |
Sept. 26, 2016, 3:40 p.m. |
OK |
GNU C++ |
TESTS |
65 |
31 |
2969600 |
|
2800 |
|
40984578 |
ReaLNero1 |
E |
July 30, 2018, 7:28 p.m. |
OK |
GNU C++ |
TESTS |
65 |
31 |
6348800 |
|
2800 |
|
38621176 |
zjo_2001 |
E |
May 26, 2018, 2:30 a.m. |
OK |
GNU C++ |
TESTS |
65 |
78 |
6553600 |
|
2800 |
|
18054962 |
Lightning34 |
E |
May 24, 2016, 12:16 p.m. |
OK |
GNU C++ |
TESTS |
65 |
78 |
8192000 |
|
2800 |
|
17463705 |
Arturia |
E |
April 22, 2016, 11:42 p.m. |
OK |
GNU C++ |
TESTS |
65 |
124 |
9011200 |
|
2800 |
|
21330973 |
returnzoo |
E |
Oct. 10, 2016, 5:57 a.m. |
OK |
GNU C++ |
TESTS |
65 |
436 |
8192000 |
|
2800 |
|
21098614 |
skywalkert |
E |
Oct. 1, 2016, 10:21 p.m. |
OK |
GNU C++ |
TESTS |
65 |
452 |
5734400 |
|
2800 |
|
21098736 |
skywalkert |
E |
Oct. 1, 2016, 10:37 p.m. |
OK |
GNU C++ |
TESTS |
65 |
483 |
5734400 |
|
2800 |
|
18054180 |
Lightning34 |
E |
May 24, 2016, 11:14 a.m. |
OK |
GNU C++ |
TESTS |
65 |
498 |
8192000 |
|
2800 |
|
17512038 |
krijgertje |
E |
April 25, 2016, 4:13 p.m. |
OK |
GNU C++11 |
TESTS |
65 |
15 |
20377600 |
|
2800 |
|
57815450 |
py_ultron |
E |
July 26, 2019, 7:25 p.m. |
OK |
GNU C++11 |
TESTS |
65 |
31 |
8089600 |
|
2800 |
|
17467737 |
Los_Angelos_Laycurse |
E |
April 23, 2016, 9:45 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
31 |
8396800 |
|
2800 |
|
60589540 |
TankEngineer |
E |
Sept. 15, 2019, 12:47 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
46 |
4710400 |
|
2800 |
|
54502960 |
WOSHIGEPACHONG2 |
E |
May 23, 2019, 12:31 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
46 |
5939200 |
|
2800 |
|
57881105 |
lopare |
E |
July 28, 2019, 7:49 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
46 |
8089600 |
|
2800 |
|
38264897 |
zhouyuyang |
E |
May 15, 2018, 10:54 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
46 |
9420800 |
|
2800 |
|
17384650 |
pitskhelauri |
E |
April 19, 2016, 8:22 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
78 |
8192000 |
|
2800 |
|
17396995 |
Nezzar |
E |
April 20, 2016, 9:29 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
93 |
14643200 |
|
2800 |
|
18896702 |
chitanda |
E |
July 5, 2016, 9:09 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
124 |
6144000 |
|
2800 |
|
32822398 |
NiroBC |
E |
Dec. 1, 2017, 6:15 a.m. |
OK |
GNU C++14 |
TESTS |
65 |
31 |
2048000 |
|
2800 |
|
35889562 |
______M______ |
E |
March 3, 2018, 2:42 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
46 |
10137600 |
|
2800 |
|
22289907 |
rrepeat |
E |
Nov. 17, 2016, 1:51 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
139 |
6041600 |
|
2800 |
|
23409261 |
Ali.Pi |
E |
Dec. 29, 2016, 8:55 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
358 |
2662400 |
|
2800 |
|
62633371 |
saketh |
E |
Oct. 15, 2019, 4:06 p.m. |
OK |
GNU C++17 |
TESTS |
65 |
218 |
409600 |
|
2800 |
|
69548901 |
hjk1030 |
E |
Jan. 26, 2020, 5:18 a.m. |
OK |
GNU C++17 |
TESTS |
65 |
436 |
6041600 |
|
2800 |
|
17467750 |
Los_Angelos_Laycurse |
E |
April 23, 2016, 9:46 a.m. |
OK |
MS C++ |
TESTS |
65 |
31 |
8396800 |
|
2800 |
remove filters
Back to search problems