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 |
|---|---|---|---|---|---|---|
| 201 | Codeforces Round 127 (Div. 1) | FINISHED | False | 7200 | 435421823 | June 29, 2012, 3:30 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 452 ) | D | Brand New Problem | PROGRAMMING | bitmasks brute force dp | 2500 |
A widely known among some people Belarusian sport programmer Lesha decided to make some money to buy a one square meter larger flat. To do this, he wants to make and carry out a Super Rated Match (SRM) on the site Torcoder.com. But there's a problem — a severe torcoder coordinator Ivan does not accept any Lesha's problem, calling each of them an offensive word "duped" (that is, duplicated). And one day they nearely quarrelled over yet another problem Ivan wouldn't accept. You are invited to act as a fair judge and determine whether the problem is indeed brand new , or Ivan is right and the problem bears some resemblance to those used in the previous SRMs. You are given the descriptions of Lesha's problem and each of Torcoder.com archive problems. The description of each problem is a sequence of words. Besides, it is guaranteed that Lesha's problem has no repeated words, while the description of an archive problem may contain any number of repeated words. The "similarity" between Lesha's problem and some archive problem can be found as follows. Among all permutations of words in Lesha's problem we choose the one that occurs in the archive problem as a subsequence. If there are multiple such permutations, we choose the one with the smallest number of inversions. Then the "similarity" of a problem can be written as , where n is the number of words in Lesha's problem and x is the number of inversions in the chosen permutation. Note that the "similarity" p is always a positive integer. The problem is called brand new if there is not a single problem in Ivan's archive which contains a permutation of words from Lesha's problem as a subsequence. Help the boys and determine whether the proposed problem is new, or specify the problem from the archive which resembles Lesha's problem the most, otherwise. The first line contains a single integer n ( 1 ≤ n ≤ 15 ) — the number of words in Lesha's problem. The second line contains n space-separated words — the short descr |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1846730 | _dangerous_ | D | June 30, 2012, 5:14 p.m. | OK | Delphi | TESTS | 84 | 1280 | 83865600 | 2500 | |
| 1845831 | ACTheory | D | June 30, 2012, 9:02 a.m. | OK | FPC | TESTS | 84 | 1420 | 87347200 | 2500 | |
| 1844641 | Sereja | D | June 29, 2012, 7:44 p.m. | OK | FPC | TESTS | 84 | 1580 | 75571200 | 2500 | |
| 1842969 | Sereja | D | June 29, 2012, 5:13 p.m. | OK | FPC | TESTS | 84 | 1640 | 76902400 | 2500 | |
| 2579188 | con_nha_ngheo | D | Nov. 17, 2012, 12:31 p.m. | OK | FPC | TESTS | 84 | 1859 | 77414400 | 2500 | |
| 1894301 | ryanaaa | D | July 12, 2012, 6:09 a.m. | OK | GNU C++ | TESTS | 84 | 200 | 1740800 | 2500 | |
| 1894283 | ryanaaa | D | July 12, 2012, 6:05 a.m. | OK | GNU C++ | TESTS | 84 | 200 | 1740800 | 2500 | |
| 1874918 | Kaylin | D | July 8, 2012, 5 a.m. | OK | GNU C++ | TESTS | 84 | 200 | 1740800 | 2500 | |
| 2849115 | dogcpp | D | Dec. 28, 2012, 1:04 p.m. | OK | GNU C++ | TESTS | 84 | 218 | 2252800 | 2500 | |
| 16560374 | huanongxiaoba | D | March 7, 2016, 4:47 a.m. | OK | GNU C++ | TESTS | 84 | 248 | 307200 | 2500 | |
| 16560360 | huanongxiaoba | D | March 7, 2016, 4:44 a.m. | OK | GNU C++ | TESTS | 84 | 248 | 307200 | 2500 | |
| 2470595 | llj_bash | D | Oct. 30, 2012, 12:32 p.m. | OK | GNU C++ | TESTS | 84 | 265 | 819200 | 2500 | |
| 40991084 | ReaLNero1 | D | July 31, 2018, 12:24 a.m. | OK | GNU C++ | TESTS | 84 | 278 | 307200 | 2500 | |
| 16560382 | vjudge5 | D | March 7, 2016, 4:49 a.m. | OK | GNU C++ | TESTS | 84 | 278 | 307200 | 2500 | |
| 14141068 | 130705009 | D | Nov. 8, 2015, 12:48 p.m. | OK | GNU C++ | TESTS | 84 | 310 | 4505600 | 2500 | |
| 2881796 | xlk | D | Jan. 8, 2013, 2:47 a.m. | OK | GNU C++0x | TESTS | 84 | 687 | 46592000 | 2500 | |
| 2860703 | bakabakashyoshyo | D | Dec. 31, 2012, 10:27 a.m. | OK | GNU C++0x | TESTS | 84 | 937 | 68505600 | 2500 | |
| 2756231 | roosephu | D | Dec. 13, 2012, 1:41 a.m. | OK | GNU C++0x | TESTS | 84 | 1000 | 50278400 | 2500 | |
| 5996951 | stjepan | D | March 11, 2014, 2:30 p.m. | OK | GNU C++0x | TESTS | 84 | 1466 | 58572800 | 2500 | |
| 5996180 | ikatanic | D | March 11, 2014, 1:05 p.m. | OK | GNU C++0x | TESTS | 84 | 1496 | 50995200 | 2500 | |
| 2856266 | CMHJT | D | Dec. 30, 2012, 9:12 a.m. | OK | GNU C++0x | TESTS | 84 | 1794 | 48435200 | 2500 | |
| 6439437 | hos.lyric | D | April 22, 2014, 10:19 a.m. | OK | GNU C++0x | TESTS | 84 | 1870 | 56832000 | 2500 | |
| 6021394 | mislav_bradac | D | March 15, 2014, 2:59 p.m. | OK | GNU C++0x | TESTS | 84 | 2464 | 115302400 | 2500 | |
| 1863442 | ChaRiL | D | July 4, 2012, 9 a.m. | OK | GNU C++0x | TESTS | 84 | 2470 | 94617600 | 2500 | |
| 9858960 | Pudge123 | D | Feb. 15, 2015, 12:29 p.m. | OK | GNU C++0x | TESTS | 84 | 2558 | 88268800 | 2500 | |
| 18295551 | TMC | D | June 8, 2016, 9:07 a.m. | OK | GNU C++11 | TESTS | 84 | 248 | 2560000 | 2500 | |
| 16081808 | Qoogle | D | Feb. 17, 2016, 3:58 p.m. | OK | GNU C++11 | TESTS | 84 | 248 | 8396800 | 2500 | |
| 16822339 | sc. | D | March 19, 2016, 3:18 p.m. | OK | GNU C++11 | TESTS | 84 | 278 | 6963200 | 2500 | |
| 16081298 | Qoogle | D | Feb. 17, 2016, 3:27 p.m. | OK | GNU C++11 | TESTS | 84 | 310 | 4300800 | 2500 | |
| 16081616 | Qoogle | D | Feb. 17, 2016, 3:47 p.m. | OK | GNU C++11 | TESTS | 84 | 310 | 8396800 | 2500 | |
| 17121679 | freebsdx | D | April 2, 2016, 2:41 a.m. | OK | GNU C++11 | TESTS | 84 | 312 | 6656000 | 2500 | |
| 16822372 | vjudge1 | D | March 19, 2016, 3:19 p.m. | OK | GNU C++11 | TESTS | 84 | 312 | 6963200 | 2500 | |
| 16596785 | BigWhiteRabbit | D | March 8, 2016, 7:15 a.m. | OK | GNU C++11 | TESTS | 84 | 404 | 10240000 | 2500 | |
| 16603776 | vjudge5 | D | March 8, 2016, 3:16 p.m. | OK | GNU C++11 | TESTS | 84 | 468 | 33382400 | 2500 | |
| 16603792 | vjudge5 | D | March 8, 2016, 3:16 p.m. | OK | GNU C++11 | TESTS | 84 | 498 | 33382400 | 2500 | |
| 23667865 | Ali.Pi | D | Jan. 9, 2017, 5:21 p.m. | OK | GNU C++14 | TESTS | 84 | 312 | 2150400 | 2500 | |
| 35568825 | Mys_C_K | D | Feb. 22, 2018, 9:13 a.m. | OK | GNU C++14 | TESTS | 84 | 434 | 49868800 | 2500 | |
| 35619048 | sunzhihong | D | Feb. 24, 2018, 8:58 a.m. | OK | GNU C++14 | TESTS | 84 | 686 | 59904000 | 2500 | |
| 57273445 | sorry_im_smurfing | D | July 18, 2019, 9:49 a.m. | OK | GNU C++14 | TESTS | 84 | 686 | 91443200 | 2500 | |
| 54778827 | bhargav_0085 | D | May 28, 2019, 7:47 p.m. | OK | GNU C++14 | TESTS | 84 | 716 | 47104000 | 2500 | |
| 67203663 | ElangBondol | D | Dec. 19, 2019, 11:44 a.m. | OK | GNU C++14 | TESTS | 84 | 746 | 46796800 | 2500 | |
| 49389681 | vjudge3 | D | Feb. 3, 2019, 9:06 a.m. | OK | GNU C++14 | TESTS | 84 | 746 | 53862400 | 2500 | |
| 35569293 | dsgsjk | D | Feb. 22, 2018, 9:40 a.m. | OK | GNU C++14 | TESTS | 84 | 778 | 70656000 | 2500 | |
| 40088411 | sherlock_holms | D | July 8, 2018, 2:58 p.m. | OK | GNU C++14 | TESTS | 84 | 810 | 6451200 | 2500 | |
| 62104871 | pikmike | D | Oct. 8, 2019, 10:26 a.m. | OK | GNU C++14 | TESTS | 84 | 810 | 61747200 | 2500 | |
| 62649541 | Jatana | D | Oct. 15, 2019, 8:57 p.m. | OK | GNU C++17 | TESTS | 84 | 624 | 307200 | 2500 | |
| 61055987 | Vexoben | D | Sept. 22, 2019, 8:04 a.m. | OK | GNU C++17 | TESTS | 84 | 746 | 80076800 | 2500 | |
| 37440234 | BaCl2 | D | April 18, 2018, 2:33 p.m. | OK | GNU C++17 | TESTS | 84 | 1060 | 59596800 | 2500 | |
| 36138066 | BackOnTrack | D | March 10, 2018, 5:50 a.m. | OK | GNU C++17 | TESTS | 84 | 1246 | 100147200 | 2500 | |
| 36137958 | BackOnTrack | D | March 10, 2018, 5:47 a.m. | OK | GNU C++17 | TESTS | 84 | 1246 | 100454400 | 2500 | |
| 38320031 | BackOnTrack | D | May 16, 2018, 12:04 p.m. | OK | GNU C++17 | TESTS | 84 | 1372 | 126873600 | 2500 | |
| 64434778 | tnakao | D | Nov. 7, 2019, 12:26 a.m. | OK | GNU C++17 | TESTS | 84 | 2868 | 48128000 | 2500 | |
| 40147581 | majk | D | July 9, 2018, 6:17 p.m. | OK | GNU C++17 | TESTS | 84 | 2992 | 69836800 | 2500 | |
| 46533690 | ruo | D | Dec. 3, 2018, 7:38 a.m. | OK | GNU C++17 | TESTS | 84 | 2994 | 51814400 | 2500 | |
| 40147603 | majk | D | July 9, 2018, 6:18 p.m. | OK | GNU C++17 | TESTS | 84 | 2994 | 69836800 | 2500 | |
| 1867314 | tsun | D | July 6, 2012, 1:28 a.m. | OK | Java 6 | TESTS | 84 | 4330 | 141004800 | 2500 | |
| 1848961 | yaro | D | July 2, 2012, 1:03 p.m. | OK | Java 7 | TESTS | 84 | 2050 | 134963200 | 2500 | |
| 1845480 | oimaster | D | June 30, 2012, 6:20 a.m. | OK | Java 7 | TESTS | 84 | 2130 | 114995200 | 2500 | |
| 1844969 | mmaxio | D | June 29, 2012, 11:19 p.m. | OK | Java 7 | TESTS | 84 | 3500 | 104038400 | 2500 | |
| 1844375 | oimaster | D | June 29, 2012, 6:29 p.m. | OK | Java 7 | TESTS | 84 | 4910 | 191283200 | 2500 | |
| 1848136 | RAD | D | July 1, 2012, 9:32 p.m. | OK | MS C++ | TESTS | 84 | 1050 | 133836800 | 2500 | |
| 1881206 | AleX | D | July 10, 2012, 8:27 a.m. | OK | MS C++ | TESTS | 84 | 1080 | 50278400 | 2500 | |
| 1848493 | PinkieDashForever | D | July 2, 2012, 7:13 a.m. | OK | MS C++ | TESTS | 84 | 1090 | 48640000 | 2500 | |
| 7053026 | ainta | D | July 9, 2014, 12:14 p.m. | OK | MS C++ | TESTS | 84 | 1122 | 55808000 | 2500 | |
| 1845475 | ballon | D | June 30, 2012, 6:15 a.m. | OK | MS C++ | TESTS | 84 | 1330 | 158822400 | 2500 | |
| 2904733 | kesongyu | D | Jan. 11, 2013, 10:48 a.m. | OK | MS C++ | TESTS | 84 | 1343 | 50688000 | 2500 | |
| 1847003 | ksjuchi | D | June 30, 2012, 10 p.m. | OK | MS C++ | TESTS | 84 | 1420 | 52224000 | 2500 | |
| 1846998 | ksjuchi | D | June 30, 2012, 9:56 p.m. | OK | MS C++ | TESTS | 84 | 1420 | 52224000 | 2500 | |
| 1844655 | NALP | D | June 29, 2012, 7:52 p.m. | OK | MS C++ | TESTS | 84 | 1440 | 99328000 | 2500 | |
| 6575157 | RiKang | D | May 9, 2014, 3:54 a.m. | OK | MS C++ | TESTS | 84 | 1652 | 82636800 | 2500 |
Back to search problems