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 |
|---|---|---|---|---|---|---|
| 1250 | 2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 204236723 | Oct. 27, 2019, 9:35 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 906 ) | E | The Coronation | PROGRAMMING | graphs implementation | 2500 |
The coronation of King Berl XXII is soon! The whole royal family, including (n) daughters of Berl XXII, will be present. The King has ordered his jeweler to assemble (n) beautiful necklaces, so each of the princesses could wear exactly one necklace during the ceremony — and now these necklaces are finished. Each necklace consists of (m) gems attached to a gold chain. There are two types of gems used in the necklaces — emeralds and sapphires. So, each necklace can be represented by a sequence of (m) gems (listed from left to right), and each gem is either an emerald or a sapphire. Formally, the (i)-th necklace can be represented by a binary string (s_i) of length (m); if the (j)-th character of (s_i) is 0 , then the (j)-th gem in the (i)-th necklace is an emerald; otherwise, this gem is a sapphire. Now, looking at the necklaces, the King is afraid that some of his daughters may envy the other daughters' necklaces. He wants all necklaces to look similar . Two necklaces are considered similar if there are at least (k) positions where these necklaces contain the same type of gems. For example, if there is a necklace represented by a sequence 01010111 and a necklace represented by a sequence 01100000 , then there are (3) positions where these necklaces contain the same type of gems (both first gems are emeralds, both second gems are sapphires, and both fifth gems are emeralds). So if (k = 3), these necklaces are similar , and if (k = 4), they are not similar . The King thinks that if two of his daughters notice that their necklaces are not similar , then they may have a conflict — and, obviously, he doesn't want any conflicts during the coronation! So Berl XXII wants to tell some of his daughters to wear their necklaces backward. If a necklace is worn backward, then the sequence of gems in this necklace is reversed. For example, if a necklace is represented by a sequence 01100 , then, if worn backward, |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 66023567 | smartnj kal013 hkyiitd | E | Nov. 30, 2019, 8:03 a.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64876003 | shivering | E | Nov. 14, 2019, 9:51 a.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64875657 | shivering | E | Nov. 14, 2019, 9:44 a.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64863731 | AkaiLemon | E | Nov. 14, 2019, 4:52 a.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64778485 | huangzhen | E | Nov. 13, 2019, 5:57 a.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64451468 | vjudge2 | E | Nov. 7, 2019, 7:14 a.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64302363 | Fubuki | E | Nov. 5, 2019, 10:28 a.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64272216 | alex20030190 | E | Nov. 4, 2019, 7:34 p.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64164123 | vjudge4 | E | Nov. 3, 2019, 3:37 p.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 64158144 | vjudge3 | E | Nov. 3, 2019, 1:30 p.m. | OK | GNU C++11 | TESTS | 74 | 31 | 0 | 2500 | |
| 63557446 | ATS | E | Oct. 27, 2019, 1:16 p.m. | OK | GNU C++14 | TESTS | 74 | 30 | 204800 | 2500 | |
| 64742418 | xjq | E | Nov. 12, 2019, 12:25 p.m. | OK | GNU C++14 | TESTS | 74 | 31 | 0 | 2500 | |
| 64184447 | NoTeamName | E | Nov. 4, 2019, 3:50 a.m. | OK | GNU C++14 | TESTS | 74 | 31 | 0 | 2500 | |
| 63948663 | AndreiCotor | E | Oct. 31, 2019, 8:01 p.m. | OK | GNU C++14 | TESTS | 74 | 31 | 0 | 2500 | |
| 63924512 | mobu233 | E | Oct. 31, 2019, 12:40 p.m. | OK | GNU C++14 | TESTS | 74 | 31 | 0 | 2500 | |
| 63762487 | SingleZombie | E | Oct. 30, 2019, 4:43 a.m. | OK | GNU C++14 | TESTS | 74 | 31 | 0 | 2500 | |
| 63724890 | Verly | E | Oct. 29, 2019, 12:25 p.m. | OK | GNU C++14 | TESTS | 74 | 31 | 0 | 2500 | |
| 65715992 | JordiR cescmentation_folch metatron | E | Nov. 25, 2019, 4:37 p.m. | OK | GNU C++14 | TESTS | 74 | 31 | 204800 | 2500 | |
| 65343504 | vjudge2 | E | Nov. 19, 2019, 11:48 a.m. | OK | GNU C++14 | TESTS | 74 | 31 | 204800 | 2500 | |
| 65286090 | zhouhebin strawberrry shenyunhan | E | Nov. 18, 2019, 8:08 a.m. | OK | GNU C++14 | TESTS | 74 | 31 | 204800 | 2500 | |
| 63933068 | mnbvmar Radewoosh | E | Oct. 31, 2019, 2:52 p.m. | OK | GNU C++17 | TESTS | 74 | 15 | 204800 | 2500 | |
| 65449268 | krijgertje | E | Nov. 20, 2019, 5:22 p.m. | OK | GNU C++17 | TESTS | 74 | 31 | 0 | 2500 | |
| 64156631 | Amber30 | E | Nov. 3, 2019, 1:02 p.m. | OK | GNU C++17 | TESTS | 74 | 31 | 0 | 2500 | |
| 69894912 | tyzc | E | Jan. 31, 2020, 11:25 a.m. | OK | GNU C++17 | TESTS | 74 | 31 | 204800 | 2500 | |
| 69412730 | randomusername YaoBIG please_delete_account | E | Jan. 23, 2020, 12:10 p.m. | OK | GNU C++17 | TESTS | 74 | 31 | 204800 | 2500 | |
| 68345379 | jiangly | E | Jan. 7, 2020, 6:54 a.m. | OK | GNU C++17 | TESTS | 74 | 31 | 204800 | 2500 | |
| 67309763 | kinhosz | E | Dec. 21, 2019, 1:33 a.m. | OK | GNU C++17 | TESTS | 74 | 31 | 204800 | 2500 | |
| 66012442 | arknave | E | Nov. 30, 2019, 3:26 a.m. | OK | GNU C++17 | TESTS | 74 | 31 | 204800 | 2500 | |
| 65419502 | gepardo kefaa2 ReD_AwHiLe | E | Nov. 20, 2019, 8:23 a.m. | OK | GNU C++17 | TESTS | 74 | 31 | 204800 | 2500 | |
| 65390324 | hoanghq2004 | E | Nov. 19, 2019, 5:14 p.m. | OK | GNU C++17 | TESTS | 74 | 31 | 204800 | 2500 | |
| 63847004 | Musin | E | Oct. 30, 2019, 3:03 p.m. | OK | Java 11 | TESTS | 74 | 202 | 0 | 2500 | |
| 65044780 | ZeyadKhattab | E | Nov. 15, 2019, 1:34 p.m. | OK | Java 8 | TESTS | 74 | 171 | 0 | 2500 | |
| 65902823 | dalt | E | Nov. 28, 2019, 9:33 a.m. | OK | Java 8 | TESTS | 74 | 202 | 21094400 | 2500 | |
| 63610323 | dalex | E | Oct. 27, 2019, 4:55 p.m. | OK | Java 8 | TESTS | 74 | 217 | 0 | 2500 | |
| 65218141 | wp32pw | E | Nov. 16, 2019, 7:26 p.m. | OK | MS C++ 2017 | TESTS | 74 | 46 | 307200 | 2500 | |
| 64751523 | olexdav | E | Nov. 12, 2019, 3:24 p.m. | OK | PyPy 3 | TESTS | 74 | 280 | 6963200 | 2500 | |
| 63540246 | E | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2500 | ||
| 63540201 | E | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2500 | ||
| 63540193 | E | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2500 | ||
| 63540121 | E | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2500 | ||
| 63539977 | E | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2500 | ||
| 63539808 | E | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2500 |
Back to search problems