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 |
| 639
|
VK Cup 2016 - Round 1 |
FINISHED |
False |
7200 |
317222723 |
March 28, 2016, 4:35 p.m. |
Problems
Limak is a big polar bear. He prepared n problems for an algorithmic contest. The i -th problem has initial score p i . Also, testers said that it takes t i minutes to solve the i -th problem. Problems aren't necessarily sorted by difficulty and maybe harder problems have smaller initial score but it's too late to change it — Limak has already announced initial scores for problems. Though it's still possible to adjust the speed of losing points, denoted by c in this statement. Let T denote the total number of minutes needed to solve all problems (so, T = t 1 + t 2 + ... + t n ). The contest will last exactly T minutes. So it's just enough to solve all problems. Points given for solving a problem decrease linearly. Solving the i -th problem after x minutes gives exactly points, where is some real constant that Limak must choose. Let's assume that c is fixed. During a contest a participant chooses some order in which he or she solves problems. There are n ! possible orders and each of them gives some total number of points, not necessarily integer. We say that an order is optimal if it gives the maximum number of points. In other words, the total number of points given by this order is greater or equal than the number of points given by any other order. It's obvious that there is at least one optimal order. However, there may be more than one optimal order. Limak assumes that every participant will properly estimate t i at the very beginning and will choose some optimal order. He also assumes that testers correctly predicted time needed to solve each problem. For two distinct problems i and j such that p i < p j Limak wouldn't be happy to see a participant with strictly more points for problem i than for problem j . He calls such a situation a paradox . It's not hard to prove that there will be no paradox for c = 0 . The situation may be worse for bigger c . What is the maximum real value c (remember that ) for which there is no paradox possible, that is, th |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
17375703 |
Arturia |
E |
April 18, 2016, 12:24 p.m. |
OK |
GNU C++ |
TESTS |
45 |
109 |
6656000 |
|
2800 |
|
20887175 |
jiyutian |
E |
Sept. 24, 2016, noon |
OK |
GNU C++ |
TESTS |
45 |
124 |
3379200 |
|
2800 |
|
18911238 |
AkaneSasu |
E |
July 6, 2016, 4:09 a.m. |
OK |
GNU C++ |
TESTS |
45 |
124 |
4608000 |
|
2800 |
|
25680139 |
vjudge1 |
E |
March 21, 2017, 4:45 a.m. |
OK |
GNU C++ |
TESTS |
45 |
171 |
7884800 |
|
2800 |
|
17014454 |
jiangshibiao |
E |
March 29, 2016, 6:01 a.m. |
OK |
GNU C++ |
TESTS |
45 |
171 |
9830400 |
|
2800 |
|
22162945 |
XuYipei |
E |
Nov. 11, 2016, 12:58 p.m. |
OK |
GNU C++ |
TESTS |
45 |
217 |
4812800 |
|
2800 |
|
17013729 |
130705009 |
E |
March 29, 2016, 4:37 a.m. |
OK |
GNU C++ |
TESTS |
45 |
218 |
9420800 |
|
2800 |
|
17027016 |
syc1999 |
E |
March 30, 2016, 1:03 a.m. |
OK |
GNU C++ |
TESTS |
45 |
249 |
46182400 |
|
2800 |
|
17117410 |
Fedosik |
E |
April 1, 2016, 6:38 p.m. |
OK |
GNU C++ |
TESTS |
45 |
265 |
20275200 |
|
2800 |
|
17135352 |
Bugday |
E |
April 2, 2016, 6:17 p.m. |
OK |
GNU C++ |
TESTS |
45 |
452 |
10649600 |
|
2800 |
|
65126657 |
luogu_bot4 |
E |
Nov. 16, 2019, 2:53 a.m. |
OK |
GNU C++11 |
TESTS |
45 |
78 |
4812800 |
|
2800 |
|
64686512 |
Mirach |
E |
Nov. 11, 2019, 11:54 a.m. |
OK |
GNU C++11 |
TESTS |
45 |
78 |
4812800 |
|
2800 |
|
69733941 |
spacevortex |
E |
Jan. 29, 2020, 2:08 p.m. |
OK |
GNU C++11 |
TESTS |
45 |
93 |
9625600 |
|
2800 |
|
64857911 |
142857 |
E |
Nov. 14, 2019, 12:53 a.m. |
OK |
GNU C++11 |
TESTS |
45 |
109 |
8192000 |
|
2800 |
|
68963292 |
mrsrz |
E |
Jan. 17, 2020, 3 a.m. |
OK |
GNU C++11 |
TESTS |
45 |
124 |
3379200 |
|
2800 |
|
63371542 |
cjy2003 |
E |
Oct. 25, 2019, 9:32 a.m. |
OK |
GNU C++11 |
TESTS |
45 |
124 |
3481600 |
|
2800 |
|
64609290 |
ZhongJQ |
E |
Nov. 9, 2019, 11:34 p.m. |
OK |
GNU C++11 |
TESTS |
45 |
124 |
3891200 |
|
2800 |
|
43235109 |
emoairx |
E |
Sept. 22, 2018, 7:47 a.m. |
OK |
GNU C++11 |
TESTS |
45 |
124 |
9625600 |
|
2800 |
|
67505581 |
xymtxdy |
E |
Dec. 24, 2019, 7:05 a.m. |
OK |
GNU C++11 |
TESTS |
45 |
139 |
5427200 |
|
2800 |
|
17003097 |
-XraY- ershov.stanislav |
E |
March 28, 2016, 6:02 p.m. |
OK |
GNU C++11 |
TESTS |
45 |
139 |
7680000 |
|
2800 |
|
67422549 |
PinkRabbit |
E |
Dec. 22, 2019, 12:15 p.m. |
OK |
GNU C++14 |
TESTS |
45 |
124 |
3584000 |
|
2800 |
|
66293329 |
yhx-12243 |
E |
Dec. 5, 2019, 1:29 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
124 |
4812800 |
|
2800 |
|
65934241 |
nqiiii |
E |
Nov. 29, 2019, 12:08 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
124 |
4812800 |
|
2800 |
|
68338366 |
liuxiao |
E |
Jan. 7, 2020, 12:49 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
124 |
6758400 |
|
2800 |
|
22378764 |
darry140 |
E |
Nov. 21, 2016, 8:01 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
124 |
7270400 |
|
2800 |
|
65821815 |
Minamoto |
E |
Nov. 27, 2019, 10:53 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
140 |
7987200 |
|
2800 |
|
64344580 |
little_waxberry |
E |
Nov. 6, 2019, 5:26 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
156 |
3584000 |
|
2800 |
|
68058797 |
rushcheyo |
E |
Jan. 2, 2020, 1:02 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
171 |
4505600 |
|
2800 |
|
67448913 |
sunnuozhou |
E |
Dec. 23, 2019, 1:55 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
171 |
6656000 |
|
2800 |
|
63362532 |
vjudge5 |
E |
Oct. 25, 2019, 6:16 a.m. |
OK |
GNU C++14 |
TESTS |
45 |
187 |
6860800 |
|
2800 |
|
68570381 |
CMXRYNP |
E |
Jan. 11, 2020, 1:45 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
124 |
4812800 |
|
2800 |
|
57870906 |
Benq |
E |
July 28, 2019, 1:41 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
140 |
10649600 |
|
2800 |
|
64361470 |
jokerwyt |
E |
Nov. 6, 2019, 11:50 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
171 |
5017600 |
|
2800 |
|
68040063 |
hjk1030 |
E |
Jan. 1, 2020, 1:53 p.m. |
OK |
GNU C++17 |
TESTS |
45 |
171 |
6041600 |
|
2800 |
|
63908700 |
alan_cty |
E |
Oct. 31, 2019, 7:28 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
187 |
4812800 |
|
2800 |
|
68478748 |
ppc_qjd |
E |
Jan. 10, 2020, 6:49 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
202 |
8806400 |
|
2800 |
|
68062257 |
Elegia |
E |
Jan. 2, 2020, 5:13 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
280 |
7270400 |
|
2800 |
|
63770520 |
jiangly |
E |
Oct. 30, 2019, 7:49 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
296 |
4812800 |
|
2800 |
|
67581314 |
Jayce132 |
E |
Dec. 25, 2019, 6:13 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
374 |
92364800 |
|
2800 |
|
69446123 |
jah_melon |
E |
Jan. 24, 2020, 3:03 a.m. |
OK |
GNU C++17 |
TESTS |
45 |
795 |
10854400 |
|
2800 |
|
17001967 |
Aksenov239 mmaxio |
E |
March 28, 2016, 5:53 p.m. |
OK |
Java 8 |
TESTS |
45 |
1122 |
33792000 |
|
2800 |
|
17010031 |
VArtem |
E |
March 28, 2016, 8:16 p.m. |
OK |
Java 8 |
TESTS |
45 |
1560 |
41062400 |
|
2800 |
remove filters
Back to search problems