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 |
|---|---|---|---|---|---|---|
| 819 | Codeforces Round 421 (Div. 1) | FINISHED | False | 7200 | 277831523 | June 27, 2017, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 519 ) | A | Mister B and Boring Game | PROGRAMMING | games greedy | 2100 |
Unfortunately, a mistake was found in the proof of the author's solution to this problem. Currently, we don't know the absolutely correct solution. However, you can solve this task, but if your solution passes all the tests, it is not guaranteed to be correct. If your solution has passed all the tests, and you are sure that it is correct, you can write to one of the contest authors about it. Sometimes Mister B has free evenings when he doesn't know what to do. Fortunately, Mister B found a new game, where the player can play against aliens. All characters in this game are lowercase English letters. There are two players: Mister B and his competitor. Initially the players have a string s consisting of the first a English letters in alphabetical order (for example, if a = 5 , then s equals to " abcde "). The players take turns appending letters to string s . Mister B moves first. Mister B must append exactly b letters on each his move. He can arbitrary choose these letters. His opponent adds exactly a letters on each move. Mister B quickly understood that his opponent was just a computer that used a simple algorithm. The computer on each turn considers the suffix of string s of length a and generates a string t of length a such that all letters in the string t are distinct and don't appear in the considered suffix. From multiple variants of t lexicographically minimal is chosen (if a = 4 and the suffix is " bfdd ", the computer chooses string t equal to " aceg "). After that the chosen string t is appended to the end of s . Mister B soon found the game boring and came up with the following question: what can be the minimum possible number of different letters in string s on the segment between positions l and r , inclusive. Letters of string s are numerated starting from 1 . First and only line contains four space-separated integers: a , b , l and r ( 1 ≤ a , b ≤ 12 , 1 ≤ l ≤ r ≤ 10 9 ) — the numbers of letters each player appends and the bounds of the segme |
| Codeforces Round #421 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 30897813 | vjudge2 | A | Oct. 1, 2017, 4:02 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 0 | 2100 | |
| 30203075 | 704009905 | A | Sept. 8, 2017, 1:16 p.m. | OK | GNU C++ | TESTS | 71 | 15 | 0 | 2100 | |
| 29633719 | vjudge5 | A | Aug. 21, 2017, 3:02 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 0 | 2100 | |
| 30288977 | vjudge4 | A | Sept. 12, 2017, 2:39 p.m. | OK | GNU C++ | TESTS | 71 | 15 | 102400 | 2100 | |
| 28114890 | SpoonsAN | A | June 28, 2017, 11:51 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 1945600 | 2100 | |
| 35591352 | skywalkert | A | Feb. 23, 2018, 8:27 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 2048000 | 2100 | |
| 28167130 | GavinGreenson | A | June 30, 2017, 8:09 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 2048000 | 2100 | |
| 28129552 | li20082008li | A | June 29, 2017, 2:02 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 2048000 | 2100 | |
| 28128543 | faultrit | A | June 29, 2017, 12:32 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 2048000 | 2100 | |
| 28380754 | progg_admin | A | July 9, 2017, 5:04 a.m. | OK | GNU C++ | TESTS | 71 | 15 | 2150400 | 2100 | |
| 31977034 | vjudge3 | A | Nov. 2, 2017, 11:11 a.m. | OK | GNU C++11 | TESTS | 71 | 15 | 0 | 2100 | |
| 30202937 | 704009905 | A | Sept. 8, 2017, 1:08 p.m. | OK | GNU C++11 | TESTS | 71 | 15 | 0 | 2100 | |
| 30288770 | Regentropfen | A | Sept. 12, 2017, 2:29 p.m. | OK | GNU C++11 | TESTS | 71 | 15 | 102400 | 2100 | |
| 28326933 | RNS3 | A | July 6, 2017, 12:37 p.m. | OK | GNU C++11 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28106774 | RNS3 | A | June 28, 2017, 2:52 a.m. | OK | GNU C++11 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 32904179 | AVM.Martin | A | Dec. 3, 2017, 5:10 p.m. | OK | GNU C++11 | TESTS | 71 | 15 | 2048000 | 2100 | |
| 28129377 | Shimatsukaze | A | June 29, 2017, 1:47 a.m. | OK | GNU C++11 | TESTS | 71 | 15 | 2048000 | 2100 | |
| 29375494 | Lang22 | A | Aug. 12, 2017, 11:05 a.m. | OK | GNU C++11 | TESTS | 71 | 15 | 2150400 | 2100 | |
| 28615339 | mt87 | A | July 16, 2017, 5:16 p.m. | OK | GNU C++11 | TESTS | 71 | 15 | 2150400 | 2100 | |
| 28421796 | gdpu_fgq | A | July 11, 2017, 6:51 a.m. | OK | GNU C++11 | TESTS | 71 | 15 | 2150400 | 2100 | |
| 29050358 | shirry | A | July 31, 2017, 1:49 p.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 29025796 | stilinskiy | A | July 30, 2017, 7:33 p.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28876040 | 2360 | A | July 25, 2017, 12:43 p.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28340318 | mohitrbhardwaj | A | July 7, 2017, 3:30 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28134078 | sexydancer | A | June 29, 2017, 7:38 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28127419 | Ali.Pi | A | June 28, 2017, 9:45 p.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28114739 | YOUSIKI | A | June 28, 2017, 11:43 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28112646 | joker_in | A | June 28, 2017, 9:46 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28107730 | CS_LYJ1997 | A | June 28, 2017, 4:33 a.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 28104690 | Worg | A | June 27, 2017, 10:27 p.m. | OK | GNU C++14 | TESTS | 71 | 15 | 1945600 | 2100 | |
| 69629713 | ADJA | A | Jan. 27, 2020, 4:51 p.m. | OK | GNU C++17 | TESTS | 71 | 31 | 204800 | 2100 | |
| 69245241 | jahangard | A | Jan. 21, 2020, 12:42 p.m. | OK | GNU C++17 | TESTS | 71 | 31 | 204800 | 2100 | |
| 45143490 | Benq | A | Oct. 31, 2018, 3:41 p.m. | OK | GNU C++17 | TESTS | 71 | 31 | 409600 | 2100 | |
| 58417948 | thantrongtri3 | A | Aug. 7, 2019, 6:16 a.m. | OK | GNU C++17 | TESTS | 71 | 31 | 10137600 | 2100 | |
| 58415527 | thantrongtri3 | A | Aug. 7, 2019, 4:39 a.m. | OK | GNU C++17 | TESTS | 71 | 31 | 10137600 | 2100 | |
| 58332241 | KasugaAyumu | A | Aug. 5, 2019, 9:53 a.m. | OK | GNU C++17 | TESTS | 71 | 46 | 204800 | 2100 | |
| 28107834 | coderbond007 | A | June 28, 2017, 4:44 a.m. | OK | Java 8 | TESTS | 71 | 109 | 20582400 | 2100 | |
| 29079206 | megh422 | A | July 31, 2017, 6:52 p.m. | OK | Java 8 | TESTS | 71 | 124 | 20582400 | 2100 | |
| 28137784 | olya-chuchuk | A | June 29, 2017, 11:09 a.m. | OK | Java 8 | TESTS | 71 | 124 | 20582400 | 2100 | |
| 28105538 | Dukkha | A | June 28, 2017, 12:18 a.m. | OK | Java 8 | TESTS | 71 | 124 | 20582400 | 2100 | |
| 33901340 | vovacomua | A | Jan. 4, 2018, 11:04 a.m. | OK | Java 8 | TESTS | 71 | 124 | 20684800 | 2100 | |
| 28109871 | BinZhao | A | June 28, 2017, 7:07 a.m. | OK | Python 3 | TESTS | 71 | 62 | 5529600 | 2100 | |
| 42119411 | Mk_Python_v1 | A | Aug. 26, 2018, 11:40 a.m. | OK | Python 3 | TESTS | 71 | 124 | 0 | 2100 |
Back to search problems