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 |
---|---|---|---|---|---|---|
367 | Codeforces Round 215 (Div. 1) | FINISHED | False | 7200 | 352218597 | Nov. 26, 2013, 3:30 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1806 ) | C | Sereja and the Arrangement of Numbers | PROGRAMMING | graphs greedy sortings | 2200 |
B"Let's call an array consisting of n integer numbers a1, a2, ..., an, beautiful if it has the following property: Sereja wants to build a beautiful array a, consisting of n integers. But not everything is so easy, Sereja's friend Dima has m coupons, each contains two integers qi, xe2 x80 x89wi. Coupon i costs wi and allows you to use as many numbers qi as you want when constructing the array a. Values qi are distinct. Sereja has no coupons, so Dima and Sereja have made the following deal. Dima builds some beautiful array a of n elements. After that he takes wi rubles from Sereja for each qi, which occurs in the array a. Sereja believed his friend and agreed to the contract, and now he is wondering, what is the maximum amount of money he can pay. Help Sereja, find the maximum amount of money he can pay to Dima. The first line contains two integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7106, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Next m lines contain pairs of integers. The i-th line contains numbers qi, xe2 x80 x89wi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89qi, xe2 x80 x89wi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). It is guaranteed that all qi are distinct. In a single line print maximum amount of money (in rubles) Sereja can pay. Please, do not use the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specifier. In the first sample Sereja can pay 5 rubles, for example, if Dima constructs the following array: [1, xe2 x80 x892, xe2 x80 x891, xe2 x80 x892, xe2 x80 x892]. There are another optimal arrays for this test. In the third sample Sereja can pay 100 rubles, if Dima constructs the following array: [2]."... |
Codeforces Round #215 — tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
5252261 | Gassa | C | Nov. 26, 2013, 4:36 p.m. | OK | D | TESTS | 41 | 140 | 1331200 | 2200 | |
5656624 | Djez | C | Jan. 10, 2014, 6:25 p.m. | OK | Delphi | TESTS | 41 | 31 | 4096000 | 2200 | |
5255892 | equi | C | Nov. 26, 2013, 5:18 p.m. | OK | Delphi | TESTS | 41 | 46 | 3276800 | 2200 | |
5829706 | Misha100896 | C | Jan. 29, 2014, 4:54 a.m. | OK | Delphi | TESTS | 41 | 46 | 4096000 | 2200 | |
5260099 | ruban | C | Nov. 26, 2013, 6:20 p.m. | OK | Delphi | TESTS | 41 | 62 | 18534400 | 2200 | |
5266776 | vietdoan | C | Nov. 27, 2013, 12:42 a.m. | OK | FPC | TESTS | 41 | 31 | 409600 | 2200 | |
5259183 | nghiemtucboy | C | Nov. 26, 2013, 5:58 p.m. | OK | FPC | TESTS | 41 | 31 | 921600 | 2200 | |
13186511 | vjudge2 | C | Sept. 23, 2015, 1:07 p.m. | OK | FPC | TESTS | 41 | 46 | 409600 | 2200 | |
11236555 | chenjb | C | May 23, 2015, 10:09 a.m. | OK | FPC | TESTS | 41 | 46 | 409600 | 2200 | |
11199085 | vjudge5 | C | May 22, 2015, 8:39 a.m. | OK | FPC | TESTS | 41 | 46 | 409600 | 2200 | |
5289895 | Wolfik | C | Nov. 28, 2013, 9:08 p.m. | OK | FPC | TESTS | 41 | 46 | 409600 | 2200 | |
5261688 | metalopocalipsis | C | Nov. 26, 2013, 8:13 p.m. | OK | FPC | TESTS | 41 | 46 | 409600 | 2200 | |
5253517 | Alex_2oo8 | C | Nov. 26, 2013, 4:50 p.m. | OK | FPC | TESTS | 41 | 46 | 512000 | 2200 | |
13212288 | vjudge4 | C | Sept. 25, 2015, 2:17 a.m. | OK | FPC | TESTS | 41 | 46 | 819200 | 2200 | |
13186900 | vjudge4 | C | Sept. 23, 2015, 1:24 p.m. | OK | FPC | TESTS | 41 | 46 | 819200 | 2200 | |
7954296 | Pudge123 | C | Sept. 26, 2014, 8:25 a.m. | OK | GNU C++ | TESTS | 41 | 15 | 409600 | 2200 | |
5283697 | FancyCoder | C | Nov. 28, 2013, 3:35 a.m. | OK | GNU C++ | TESTS | 41 | 15 | 409600 | 2200 | |
5248714 | bcurcio | C | Nov. 26, 2013, 4:01 p.m. | OK | GNU C++ | TESTS | 41 | 15 | 3072000 | 2200 | |
7303626 | vjudge3 | C | Aug. 1, 2014, 3:01 a.m. | OK | GNU C++ | TESTS | 41 | 30 | 20889600 | 2200 | |
18833453 | mrtempo | C | July 1, 2016, 2:45 a.m. | OK | GNU C++ | TESTS | 41 | 31 | 204800 | 2200 | |
40190982 | Scut82 | C | July 11, 2018, 6:35 a.m. | OK | GNU C++ | TESTS | 41 | 31 | 409600 | 2200 | |
7432936 | DanAlex | C | Aug. 12, 2014, 7:21 a.m. | OK | GNU C++ | TESTS | 41 | 31 | 409600 | 2200 | |
6982975 | RNS | C | June 30, 2014, 1:15 a.m. | OK | GNU C++ | TESTS | 41 | 31 | 409600 | 2200 | |
6861944 | dzy493941464 | C | June 11, 2014, 2:08 a.m. | OK | GNU C++ | TESTS | 41 | 31 | 409600 | 2200 | |
6158017 | pkqs90 | C | March 27, 2014, 1:20 a.m. | OK | GNU C++ | TESTS | 41 | 31 | 409600 | 2200 | |
5250059 | mruxim | C | Nov. 26, 2013, 4:14 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
6507232 | crazypursuer | C | April 29, 2014, 5:22 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
5266489 | johnLate | C | Nov. 26, 2013, 11:23 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
5263023 | Xellos | C | Nov. 26, 2013, 9:20 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
5258982 | API | C | Nov. 26, 2013, 5:52 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
5256534 | potaty | C | Nov. 26, 2013, 5:25 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
5249474 | ifsmirnov | C | Nov. 26, 2013, 4:08 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
5248990 | dnk | C | Nov. 26, 2013, 4:03 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 409600 | 2200 | |
5322858 | Gullesnuffs | C | Dec. 1, 2013, 3:49 p.m. | OK | GNU C++0x | TESTS | 41 | 31 | 819200 | 2200 | |
5269607 | 2011330300713 | C | Nov. 27, 2013, 8:15 a.m. | OK | GNU C++0x | TESTS | 41 | 31 | 819200 | 2200 | |
59950595 | rainboy | C | Sept. 3, 2019, 2:24 p.m. | OK | GNU C11 | TESTS | 41 | 61 | 409600 | 2200 | |
12132796 | Kmcode | C | July 20, 2015, 4:16 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 2150400 | 2200 | |
17132361 | freebsdx | C | April 2, 2016, 3 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 2457600 | 2200 | |
25785388 | Ahmed_Morsy | C | March 25, 2017, 12:56 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 2457600 | 2200 | |
23737785 | Sukeesh | C | Jan. 12, 2017, 1:35 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 3686400 | 2200 | |
15612736 | kcm1700 | C | Jan. 27, 2016, 1:58 p.m. | OK | GNU C++11 | TESTS | 41 | 46 | 204800 | 2200 | |
14958126 | spetsnaz | C | Dec. 23, 2015, 6:44 p.m. | OK | GNU C++11 | TESTS | 41 | 46 | 204800 | 2200 | |
39256058 | spacewalker | C | June 15, 2018, 2:43 a.m. | OK | GNU C++11 | TESTS | 41 | 46 | 204800 | 2200 | |
42344837 | Omar_Elawady | C | Sept. 1, 2018, 8:08 p.m. | OK | GNU C++11 | TESTS | 41 | 46 | 409600 | 2200 | |
21013128 | abdelkarim | C | Sept. 30, 2016, 11:14 a.m. | OK | GNU C++11 | TESTS | 41 | 46 | 409600 | 2200 | |
55183261 | SoiMae | C | June 6, 2019, 1:16 a.m. | OK | GNU C++11 | TESTS | 41 | 46 | 409600 | 2200 | |
28342172 | LiChenKoh | C | July 7, 2017, 6:04 a.m. | OK | GNU C++14 | TESTS | 41 | 15 | 2355200 | 2200 | |
28342051 | LiChenKoh | C | July 7, 2017, 5:55 a.m. | OK | GNU C++14 | TESTS | 41 | 30 | 3993600 | 2200 | |
27472856 | Momentaiii | C | May 31, 2017, 6:46 p.m. | OK | GNU C++14 | TESTS | 41 | 46 | 409600 | 2200 | |
45568741 | n_dao107 | C | Nov. 11, 2018, 4:18 p.m. | OK | GNU C++14 | TESTS | 41 | 46 | 409600 | 2200 | |
27327642 | RNS_JKS | C | May 25, 2017, 1:15 a.m. | OK | GNU C++14 | TESTS | 41 | 46 | 819200 | 2200 | |
34562737 | BThero | C | Jan. 26, 2018, 2:58 a.m. | OK | GNU C++14 | TESTS | 41 | 46 | 2252800 | 2200 | |
23480823 | szawinis | C | Jan. 1, 2017, 9:22 a.m. | OK | GNU C++14 | TESTS | 41 | 46 | 2355200 | 2200 | |
25445932 | dustbite | C | March 13, 2017, 2:54 a.m. | OK | GNU C++14 | TESTS | 41 | 46 | 2355200 | 2200 | |
31471438 | _Shakil | C | Oct. 18, 2017, 7:08 a.m. | OK | GNU C++14 | TESTS | 41 | 46 | 5939200 | 2200 | |
29216541 | SmokeOut | C | Aug. 5, 2017, 10:50 a.m. | OK | GNU C++14 | TESTS | 41 | 46 | 9932800 | 2200 | |
45675569 | igba | C | Nov. 13, 2018, 12:57 p.m. | OK | GNU C++17 | TESTS | 41 | 61 | 614400 | 2200 | |
60280145 | tushar_2658 | C | Sept. 8, 2019, 8:14 p.m. | OK | GNU C++17 | TESTS | 41 | 61 | 819200 | 2200 | |
68952950 | GiannisAntetokounmpo | C | Jan. 16, 2020, 6:44 p.m. | OK | GNU C++17 | TESTS | 41 | 61 | 3993600 | 2200 | |
41633069 | arbitrary_A | C | Aug. 15, 2018, 7:55 p.m. | OK | GNU C++17 | TESTS | 41 | 62 | 409600 | 2200 | |
57859373 | 89264270823 | C | July 27, 2019, 4:52 p.m. | OK | GNU C++17 | TESTS | 41 | 62 | 819200 | 2200 | |
69595450 | Shahraaz | C | Jan. 27, 2020, 4:21 a.m. | OK | GNU C++17 | TESTS | 41 | 62 | 1126400 | 2200 | |
39110523 | Omar_Morsi | C | June 10, 2018, 11:29 a.m. | OK | GNU C++17 | TESTS | 41 | 62 | 1126400 | 2200 | |
58227349 | kaihr | C | Aug. 3, 2019, 3:03 p.m. | OK | GNU C++17 | TESTS | 41 | 62 | 1638400 | 2200 | |
65274728 | NelsonGomesNeto | C | Nov. 17, 2019, 11:07 p.m. | OK | GNU C++17 | TESTS | 41 | 62 | 1638400 | 2200 | |
60659781 | TelmaZzzz | C | Sept. 16, 2019, 3:45 a.m. | OK | GNU C++17 | TESTS | 41 | 62 | 2457600 | 2200 | |
5246924 | uwi | C | Nov. 26, 2013, 3:47 p.m. | OK | Java 6 | TESTS | 41 | 78 | 0 | 2200 | |
5287379 | vellvisher | C | Nov. 28, 2013, 2:50 p.m. | OK | Java 6 | TESTS | 41 | 93 | 716800 | 2200 | |
5253631 | wackloner | C | Nov. 26, 2013, 4:52 p.m. | OK | Java 6 | TESTS | 41 | 109 | 102400 | 2200 | |
5355675 | udontknowme | C | Dec. 5, 2013, 4:24 p.m. | OK | Java 6 | TESTS | 41 | 109 | 102400 | 2200 | |
5261372 | hiukim | C | Nov. 26, 2013, 7:38 p.m. | OK | Java 6 | TESTS | 41 | 124 | 102400 | 2200 | |
5821688 | arzjain | C | Jan. 27, 2014, 7:59 p.m. | OK | Java 6 | TESTS | 41 | 405 | 102400 | 2200 | |
5413389 | iovesnov | C | Dec. 12, 2013, 7:19 a.m. | OK | Java 7 | TESTS | 41 | 62 | 102400 | 2200 | |
5775831 | hama-du | C | Jan. 23, 2014, 9:15 a.m. | OK | Java 7 | TESTS | 41 | 77 | 204800 | 2200 | |
5268170 | xenoslash | C | Nov. 27, 2013, 5:05 a.m. | OK | Java 7 | TESTS | 41 | 93 | 0 | 2200 | |
5292049 | KNIGHT0X300 | C | Nov. 29, 2013, 8:22 a.m. | OK | Java 7 | TESTS | 41 | 93 | 204800 | 2200 | |
5412472 | chinh7 | C | Dec. 12, 2013, 2:19 a.m. | OK | Java 7 | TESTS | 41 | 93 | 307200 | 2200 | |
5456270 | alexey.kasatkin | C | Dec. 17, 2013, 3:52 p.m. | OK | Java 7 | TESTS | 41 | 93 | 307200 | 2200 | |
5248881 | Egor | C | Nov. 26, 2013, 4:02 p.m. | OK | Java 7 | TESTS | 41 | 109 | 0 | 2200 | |
5273432 | FattyPenguin | C | Nov. 27, 2013, 2:40 p.m. | OK | Java 7 | TESTS | 41 | 109 | 204800 | 2200 | |
5268607 | hyggyh | C | Nov. 27, 2013, 6:06 a.m. | OK | Java 7 | TESTS | 41 | 109 | 204800 | 2200 | |
5261562 | 0p9o8i | C | Nov. 26, 2013, 7:57 p.m. | OK | Java 7 | TESTS | 41 | 109 | 204800 | 2200 | |
16908303 | Sumeet.Varma | C | March 24, 2016, 2:58 p.m. | OK | Java 8 | TESTS | 41 | 140 | 20787200 | 2200 | |
16908266 | Sumeet.Varma | C | March 24, 2016, 2:56 p.m. | OK | Java 8 | TESTS | 41 | 140 | 20787200 | 2200 | |
16908332 | Sumeet.Varma | C | March 24, 2016, 2:59 p.m. | OK | Java 8 | TESTS | 41 | 140 | 20889600 | 2200 | |
36669540 | parth_15 | C | March 27, 2018, 1:41 p.m. | OK | Java 8 | TESTS | 41 | 155 | 20992000 | 2200 | |
40471428 | Nesrin | C | July 17, 2018, 9:42 a.m. | OK | Java 8 | TESTS | 41 | 187 | 0 | 2200 | |
39072050 | Hoda_Hisham | C | June 9, 2018, 2:48 p.m. | OK | Java 8 | TESTS | 41 | 202 | 0 | 2200 | |
24519233 | Ahmad_Elsagheer | C | Feb. 8, 2017, 6:20 a.m. | OK | Java 8 | TESTS | 41 | 202 | 20480000 | 2200 | |
60052460 | Washoum | C | Sept. 5, 2019, 1:32 a.m. | OK | Java 8 | TESTS | 41 | 217 | 0 | 2200 | |
48198180 | jdurie | C | Jan. 11, 2019, 2:02 a.m. | OK | Java 8 | TESTS | 41 | 358 | 0 | 2200 | |
59950596 | Dukkha | C | Sept. 3, 2019, 2:24 p.m. | OK | Java 8 | TESTS | 41 | 436 | 0 | 2200 | |
53224167 | darkkcyan | C | April 24, 2019, 1:28 p.m. | OK | Kotlin | TESTS | 41 | 202 | 716800 | 2200 | |
10158892 | azukun | C | March 5, 2015, 10:14 a.m. | OK | MS C# | TESTS | 41 | 155 | 11059200 | 2200 | |
5255074 | KungA | C | Nov. 26, 2013, 5:09 p.m. | OK | MS C++ | TESTS | 41 | 31 | 307200 | 2200 | |
5251762 | Giraffy | C | Nov. 26, 2013, 4:31 p.m. | OK | MS C++ | TESTS | 41 | 31 | 307200 | 2200 | |
6258280 | Mosyagin | C | April 4, 2014, 2:08 p.m. | OK | MS C++ | TESTS | 41 | 31 | 716800 | 2200 | |
5267802 | ricardol | C | Nov. 27, 2013, 4:09 a.m. | OK | MS C++ | TESTS | 41 | 31 | 4710400 | 2200 | |
5255455 | nf001 | C | Nov. 26, 2013, 5:13 p.m. | OK | MS C++ | TESTS | 41 | 31 | 7884800 | 2200 | |
5254584 | InDaBag | C | Nov. 26, 2013, 5:03 p.m. | OK | MS C++ | TESTS | 41 | 31 | 7987200 | 2200 | |
5256496 | lost3030 | C | Nov. 26, 2013, 5:25 p.m. | OK | MS C++ | TESTS | 41 | 31 | 8806400 | 2200 | |
5401841 | cvm | C | Dec. 10, 2013, 7:59 a.m. | OK | MS C++ | TESTS | 41 | 46 | 307200 | 2200 | |
5256704 | IgorS | C | Nov. 26, 2013, 5:27 p.m. | OK | MS C++ | TESTS | 41 | 46 | 307200 | 2200 | |
5252004 | MrDindows | C | Nov. 26, 2013, 4:34 p.m. | OK | MS C++ | TESTS | 41 | 46 | 409600 | 2200 | |
9549904 | vjudge1 | C | Jan. 25, 2015, 2:15 p.m. | OK | Python 2 | TESTS | 41 | 218 | 2457600 | 2200 | |
5816885 | yexuDart | C | Jan. 27, 2014, 4:18 a.m. | OK | Python 2 | TESTS | 41 | 265 | 4915200 | 2200 | |
5816755 | yexuDart | C | Jan. 27, 2014, 3:34 a.m. | OK | Python 2 | TESTS | 41 | 265 | 5017600 | 2200 | |
5269008 | 136873448 | C | Nov. 27, 2013, 6:58 a.m. | OK | Python 2 | TESTS | 41 | 280 | 4096000 | 2200 | |
5454568 | ronaflx | C | Dec. 17, 2013, 10:12 a.m. | OK | Python 2 | TESTS | 41 | 280 | 4198400 | 2200 | |
5816888 | yexuDart | C | Jan. 27, 2014, 4:19 a.m. | OK | Python 2 | TESTS | 41 | 280 | 4915200 | 2200 | |
5268919 | 136873448 | C | Nov. 27, 2013, 6:47 a.m. | OK | Python 2 | TESTS | 41 | 296 | 4096000 | 2200 | |
5255160 | nwi | C | Nov. 26, 2013, 5:10 p.m. | OK | Python 2 | TESTS | 41 | 296 | 5222400 | 2200 | |
35862262 | ______u______ | C | March 2, 2018, 10:21 p.m. | OK | Python 2 | TESTS | 41 | 311 | 8704000 | 2200 | |
35862082 | ______n______ | C | March 2, 2018, 10:16 p.m. | OK | Python 2 | TESTS | 41 | 311 | 8704000 | 2200 | |
5283470 | GateOne | C | Nov. 28, 2013, 2:22 a.m. | OK | Python 3 | TESTS | 41 | 327 | 6656000 | 2200 | |
47647355 | MarcoXerox | C | Dec. 28, 2018, 3:57 p.m. | OK | Python 3 | TESTS | 41 | 358 | 30924800 | 2200 | |
42135340 | Mk_Python_v1 | C | Aug. 26, 2018, 11:02 p.m. | OK | Python 3 | TESTS | 41 | 436 | 4300800 | 2200 | |
7289312 | lxgsbqylbk | C | July 30, 2014, 3:55 a.m. | OK | Python 3 | TESTS | 41 | 452 | 4505600 | 2200 | |
7289246 | lxgsbqylbk | C | July 30, 2014, 3:34 a.m. | OK | Python 3 | TESTS | 41 | 452 | 4505600 | 2200 | |
5375938 | kirill135 | C | Dec. 7, 2013, 1:10 p.m. | OK | Python 3 | TESTS | 41 | 452 | 7577600 | 2200 |
Back to search problems