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 |
|---|---|---|---|---|---|---|
| 268 | Codeforces Round 164 (Div. 2) | FINISHED | False | 7200 | 417018623 | Jan. 28, 2013, 3:30 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1135 ) | E | Playlist | PROGRAMMING | math probabilities sortings | 2100 |
Manao's friends often send him new songs. He never listens to them right away. Instead, he compiles them into a playlist. When he feels that his mind is open to new music, he opens the playlist and starts to listen to the songs. Of course, there are some songs that Manao doesn't particuarly enjoy. To get more pleasure from the received songs, he invented the following procedure of listening to the playlist: If after listening to some song Manao realizes that he liked it, then he remembers it and starts to listen to the next unlistened song. If after listening to some song Manao realizes that he did not like it, he listens to all the songs he liked up to this point and then begins to listen to the next unlistened song. For example, if Manao has four songs in the playlist, A, B, C, D (in the corresponding order) and he is going to like songs A and C in the end, then the order of listening is the following: Manao listens to A, he likes it, he remembers it. Manao listens to B, he does not like it, so he listens to A, again. Manao listens to C, he likes the song and he remembers it, too. Manao listens to D, but does not enjoy it and re-listens to songs A and C. That is, in the end Manao listens to song A three times, to song C twice and songs B and D once. Note that if Manao once liked a song, he will never dislike it on a subsequent listening. Manao has received n songs: the i -th of them is l i seconds long and Manao may like it with a probability of p i percents. The songs could get on Manao's playlist in any order, so Manao wants to know the maximum expected value of the number of seconds after which the listening process will be over, for all possible permutations of the songs in the playlist. The first line contains a single integer n ( 1 ≤ n ≤ 50000 ). The i -th of the following n lines contains two integers, separated by a single space — l i and p i ( 15 ≤ l i ≤ 1000 , 0 ≤ p i ≤ 100 ) — the length of the i -th song in seconds and the probability that Ma |
| Codeforces Round #164 (Div. 2) — Problems Analysis |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 19437398 | vjudge3 | E | July 27, 2016, 8:57 a.m. | OK | GNU C++ | TESTS | 16 | 30 | 614400 | 2100 | |
| 19437258 | vjudge4 | E | July 27, 2016, 8:50 a.m. | OK | GNU C++ | TESTS | 16 | 62 | 204800 | 2100 | |
| 22046998 | fenice | E | Nov. 5, 2016, 2:28 a.m. | OK | GNU C++ | TESTS | 16 | 62 | 409600 | 2100 | |
| 19463343 | Anani_leaf | E | July 28, 2016, 2:32 p.m. | OK | GNU C++ | TESTS | 16 | 62 | 409600 | 2100 | |
| 19436293 | vjudge3 | E | July 27, 2016, 7:59 a.m. | OK | GNU C++ | TESTS | 16 | 62 | 409600 | 2100 | |
| 19436367 | vjudge1 | E | July 27, 2016, 8:03 a.m. | OK | GNU C++ | TESTS | 16 | 62 | 614400 | 2100 | |
| 19442898 | vjudge4 | E | July 27, 2016, 1:27 p.m. | OK | GNU C++ | TESTS | 16 | 62 | 819200 | 2100 | |
| 19434947 | vjudge5 | E | July 27, 2016, 6:43 a.m. | OK | GNU C++ | TESTS | 16 | 62 | 1638400 | 2100 | |
| 28313197 | Scut82 | E | July 5, 2017, 11:10 p.m. | OK | GNU C++ | TESTS | 16 | 62 | 2867200 | 2100 | |
| 25885985 | PhanTrinh | E | March 29, 2017, 1:56 a.m. | OK | GNU C++ | TESTS | 16 | 62 | 2867200 | 2100 | |
| 58682312 | rainboy | E | Aug. 12, 2019, 7:41 p.m. | OK | GNU C11 | TESTS | 16 | 92 | 409600 | 2100 | |
| 17129868 | freebsdx | E | April 2, 2016, 12:22 p.m. | OK | GNU C++11 | TESTS | 16 | 30 | 2252800 | 2100 | |
| 19434509 | vjudge1 | E | July 27, 2016, 6:16 a.m. | OK | GNU C++11 | TESTS | 16 | 60 | 204800 | 2100 | |
| 32087224 | dcordb | E | Nov. 6, 2017, 4:20 a.m. | OK | GNU C++11 | TESTS | 16 | 60 | 409600 | 2100 | |
| 20383683 | HandsomeHow | E | Sept. 4, 2016, 1:55 p.m. | OK | GNU C++11 | TESTS | 16 | 60 | 716800 | 2100 | |
| 57897587 | lopare | E | July 28, 2019, 2:15 p.m. | OK | GNU C++11 | TESTS | 16 | 62 | 204800 | 2100 | |
| 18846221 | abdelkarim | E | July 1, 2016, 9:07 p.m. | OK | GNU C++11 | TESTS | 16 | 62 | 409600 | 2100 | |
| 46532029 | Pigbrain | E | Dec. 3, 2018, 6:21 a.m. | OK | GNU C++11 | TESTS | 16 | 62 | 409600 | 2100 | |
| 19445251 | andwho | E | July 27, 2016, 4:14 p.m. | OK | GNU C++11 | TESTS | 16 | 62 | 614400 | 2100 | |
| 21888778 | Noureldin | E | Oct. 30, 2016, 8:24 a.m. | OK | GNU C++11 | TESTS | 16 | 62 | 614400 | 2100 | |
| 35867374 | oos1111 | E | March 3, 2018, 3:29 a.m. | OK | GNU C++11 | TESTS | 16 | 62 | 2867200 | 2100 | |
| 23642434 | Ali.Pi | E | Jan. 8, 2017, 8:06 a.m. | OK | GNU C++14 | TESTS | 16 | 62 | 2355200 | 2100 | |
| 38601800 | xproxmess | E | May 25, 2018, 6:22 a.m. | OK | GNU C++14 | TESTS | 16 | 62 | 2457600 | 2100 | |
| 36239309 | filipeabelha | E | March 13, 2018, 5:16 a.m. | OK | GNU C++14 | TESTS | 16 | 62 | 2662400 | 2100 | |
| 41501534 | AghaTizi | E | Aug. 11, 2018, 5:23 p.m. | OK | GNU C++14 | TESTS | 16 | 92 | 614400 | 2100 | |
| 42335983 | hqwhuang | E | Sept. 1, 2018, 1:58 p.m. | OK | GNU C++14 | TESTS | 16 | 92 | 819200 | 2100 | |
| 41465144 | Amoo_Safar | E | Aug. 11, 2018, 10:34 a.m. | OK | GNU C++14 | TESTS | 16 | 92 | 819200 | 2100 | |
| 41972532 | neeleshsinha | E | Aug. 22, 2018, 4:05 p.m. | OK | GNU C++14 | TESTS | 16 | 92 | 1126400 | 2100 | |
| 44042970 | UncleGrandpa | E | Oct. 9, 2018, 3:41 p.m. | OK | GNU C++14 | TESTS | 16 | 92 | 1638400 | 2100 | |
| 22463818 | Navick | E | Nov. 24, 2016, 10:40 a.m. | OK | GNU C++14 | TESTS | 16 | 92 | 1638400 | 2100 | |
| 36414346 | fgt | E | March 19, 2018, 3:09 p.m. | OK | GNU C++14 | TESTS | 16 | 92 | 4403200 | 2100 | |
| 41940062 | am.azadi | E | Aug. 21, 2018, 2:53 p.m. | OK | GNU C++17 | TESTS | 16 | 92 | 614400 | 2100 | |
| 65283183 | ViciousCoder | E | Nov. 18, 2019, 7:01 a.m. | OK | GNU C++17 | TESTS | 16 | 92 | 1638400 | 2100 | |
| 61743676 | _Samir | E | Oct. 2, 2019, 9:55 p.m. | OK | GNU C++17 | TESTS | 16 | 92 | 21606400 | 2100 | |
| 61743464 | _Samir | E | Oct. 2, 2019, 9:44 p.m. | OK | GNU C++17 | TESTS | 16 | 92 | 32460800 | 2100 | |
| 60921525 | Mahir83 | E | Sept. 20, 2019, 10:49 a.m. | OK | GNU C++17 | TESTS | 16 | 122 | 819200 | 2100 | |
| 51809885 | ruo | E | March 25, 2019, 4:23 a.m. | OK | GNU C++17 | TESTS | 16 | 124 | 819200 | 2100 | |
| 48457357 | AtillaAk | E | Jan. 16, 2019, 1:09 p.m. | OK | GNU C++17 | TESTS | 16 | 124 | 1740800 | 2100 | |
| 46773711 | walidsad | E | Dec. 8, 2018, 6:36 p.m. | OK | GNU C++17 | TESTS | 16 | 216 | 819200 | 2100 | |
| 43111745 | Bation_King | E | Sept. 20, 2018, 12:01 p.m. | OK | GNU C++17 | TESTS | 16 | 278 | 512000 | 2100 | |
| 62082440 | Phortox | E | Oct. 7, 2019, 9:47 p.m. | OK | GNU C++17 | TESTS | 16 | 624 | 2560000 | 2100 | |
| 59608771 | ZeyadKhattab | E | Aug. 28, 2019, 10:01 a.m. | OK | Java 8 | TESTS | 16 | 310 | 2560000 | 2100 | |
| 30900806 | aabdelzaher | E | Oct. 1, 2017, 6:45 a.m. | OK | Java 8 | TESTS | 16 | 342 | 0 | 2100 | |
| 50802665 | PizzaLovers007 | E | March 5, 2019, 1:55 a.m. | OK | Java 8 | TESTS | 16 | 404 | 0 | 2100 | |
| 58682286 | Dukkha | E | Aug. 12, 2019, 7:40 p.m. | OK | Java 8 | TESTS | 16 | 590 | 0 | 2100 | |
| 19435645 | vjudge4 | E | July 27, 2016, 7:25 a.m. | OK | MS C++ | TESTS | 16 | 124 | 819200 | 2100 | |
| 19433844 | vjudge3 | E | July 27, 2016, 5:23 a.m. | OK | MS C++ | TESTS | 16 | 124 | 1228800 | 2100 | |
| 35856254 | ______u______ | E | March 2, 2018, 8:16 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 | |
| 35856226 | ______n______ | E | March 2, 2018, 8:16 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 | |
| 35855717 | _____i_____ | E | March 2, 2018, 8:06 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 | |
| 35855687 | _____k_____ | E | March 2, 2018, 8:06 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 | |
| 35844571 | ______h______ | E | March 2, 2018, 3:32 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 | |
| 35844431 | ______k______ | E | March 2, 2018, 3:30 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 | |
| 35844162 | ______i______ | E | March 2, 2018, 3:25 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 | |
| 35841972 | ______M______ | E | March 2, 2018, 2:44 p.m. | OK | Python 2 | TESTS | 16 | 840 | 8396800 | 2100 |
Back to search problems