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 |
---|---|---|---|---|---|---|
930 | Codeforces Round 468 (Div. 1, based on Technocup 2018 Final Round) | FINISHED | False | 7200 | 211645499 | March 4, 2018, 3:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2681 ) | B | Game with String | PROGRAMMING | implementation probabilities strings | 1800 |
B'Vasya and Kolya play a game with a string, using the following rules. Initially, Kolya creates a string s, consisting of small English letters, and uniformly at random chooses an integer k from a segment [0, xe2 x80 x89len(s) xe2 x80 x89- xe2 x80 x891]. He tells Vasya this string s, and then shifts it k letters to the left, i. e. creates a new string t xe2 x80 x89= xe2 x80 x89sk xe2 x80 x89+ xe2 x80 x891sk xe2 x80 x89+ xe2 x80 x892... sns1s2... sk. Vasya does not know the integer k nor the string t, but he wants to guess the integer k. To do this, he asks Kolya to tell him the first letter of the new string, and then, after he sees it, open one more letter on some position, which Vasya can choose. Vasya understands, that he can 't guarantee that he will win, but he wants to know the probability of winning, if he plays optimally. He wants you to compute this probability. Note that Vasya wants to know the value of k uniquely, it means, that if there are at least two cyclic shifts of s that fit the information Vasya knowns, Vasya loses. Of course, at any moment of the game Vasya wants to maximize the probability of his win. The only string contains the string s of length l (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895000), consisting of small English letters only. Print the only number -- the answer for the problem. You answer is considered correct, if its absolute or relative error does not exceed 10 xe2 x80 x89- xe2 x80 x896. Formally, let your answer be a, and the jury 's answer be b. Your answer is considered correct if In the first example Vasya can always open the second letter after opening the first letter, and the cyclic shift is always determined uniquely. In the second example if the first opened letter of t is "t" or "c", then Vasya can 't guess the shift by opening only one other letter. On the other hand, if the first letter is "i" or "a", then he can open the fourth letter and determine the shift uniquely. '... |
Codeforces Round #468 and Technocup 2018 Final Round Analysis |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
35942262 | Gassa | B | March 4, 2018, 5:07 p.m. | OK | D | TESTS | 31 | 78 | 7168000 | 1800 | |
69464990 | hos.lyric | B | Jan. 24, 2020, 12:28 p.m. | OK | D | TESTS | 31 | 109 | 4198400 | 1800 | |
40016969 | wubingxian | B | July 6, 2018, 3:14 a.m. | OK | FPC | TESTS | 31 | 140 | 7065600 | 1800 | |
40015597 | KristenHly | B | July 6, 2018, 1:50 a.m. | OK | FPC | TESTS | 31 | 280 | 13926400 | 1800 | |
35958684 | Sina_Imani | B | March 5, 2018, 7:55 a.m. | OK | GNU C | TESTS | 31 | 93 | 2560000 | 1800 | |
35946416 | sgtlaugh | B | March 4, 2018, 6:40 p.m. | OK | GNU C | TESTS | 31 | 514 | 27033600 | 1800 | |
40014796 | FarmerJohn | B | July 6, 2018, 12:47 a.m. | OK | GNU C++ | TESTS | 31 | 46 | 102400 | 1800 | |
35934528 | WhatTheFua | B | March 4, 2018, 4:09 p.m. | OK | GNU C++ | TESTS | 31 | 46 | 2150400 | 1800 | |
35930619 | Ronnie007 | B | March 4, 2018, 3:49 p.m. | OK | GNU C++ | TESTS | 31 | 46 | 2150400 | 1800 | |
35958207 | function348 | B | March 5, 2018, 7:22 a.m. | OK | GNU C++ | TESTS | 31 | 61 | 3584000 | 1800 | |
40014952 | ZhongJQ | B | July 6, 2018, 12:59 a.m. | OK | GNU C++ | TESTS | 31 | 62 | 0 | 1800 | |
40014889 | ilnil | B | July 6, 2018, 12:54 a.m. | OK | GNU C++ | TESTS | 31 | 62 | 102400 | 1800 | |
35939517 | spiderbatman | B | March 4, 2018, 4:45 p.m. | OK | GNU C++ | TESTS | 31 | 62 | 2150400 | 1800 | |
35934091 | chenyanbo | B | March 4, 2018, 4:07 p.m. | OK | GNU C++ | TESTS | 31 | 62 | 2150400 | 1800 | |
35931682 | JOHNKRAM | B | March 4, 2018, 3:54 p.m. | OK | GNU C++ | TESTS | 31 | 62 | 2560000 | 1800 | |
35938576 | liaomeikuangmotuxuechang | B | March 4, 2018, 4:37 p.m. | OK | GNU C++ | TESTS | 31 | 62 | 2662400 | 1800 | |
35958677 | Sina_Imani | B | March 5, 2018, 7:55 a.m. | OK | GNU C11 | TESTS | 31 | 78 | 2560000 | 1800 | |
62537214 | chc_1234567890 | B | Oct. 13, 2019, 11:55 p.m. | OK | GNU C++11 | TESTS | 31 | 46 | 102400 | 1800 | |
48952988 | vjudge3 | B | Jan. 26, 2019, 1:58 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 102400 | 1800 | |
47185290 | KHOI-LTT | B | Dec. 18, 2018, 3:40 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 102400 | 1800 | |
64496585 | DP_liver | B | Nov. 8, 2019, 12:25 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 102400 | 1800 | |
35985512 | vjudge4 | B | March 6, 2018, 8:36 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 2150400 | 1800 | |
35941763 | NURx2 | B | March 4, 2018, 5:03 p.m. | OK | GNU C++11 | TESTS | 31 | 46 | 2150400 | 1800 | |
35939201 | shdut | B | March 4, 2018, 4:43 p.m. | OK | GNU C++11 | TESTS | 31 | 46 | 2150400 | 1800 | |
35931425 | Ilya_MSU | B | March 4, 2018, 3:52 p.m. | OK | GNU C++11 | TESTS | 31 | 46 | 2150400 | 1800 | |
35937597 | codelegend | B | March 4, 2018, 4:30 p.m. | OK | GNU C++11 | TESTS | 31 | 61 | 2150400 | 1800 | |
36144778 | PlayfulPanda | B | March 10, 2018, 9:02 a.m. | OK | GNU C++11 | TESTS | 31 | 61 | 2150400 | 1800 | |
35931588 | Denisson | B | March 4, 2018, 3:53 p.m. | OK | GNU C++14 | TESTS | 31 | 46 | 2150400 | 1800 | |
35939677 | Karasick | B | March 4, 2018, 4:46 p.m. | OK | GNU C++14 | TESTS | 31 | 46 | 2150400 | 1800 | |
35936582 | PaiGuLong | B | March 4, 2018, 4:23 p.m. | OK | GNU C++14 | TESTS | 31 | 46 | 2252800 | 1800 | |
35932445 | MrDindows | B | March 4, 2018, 3:58 p.m. | OK | GNU C++14 | TESTS | 31 | 46 | 2252800 | 1800 | |
36278429 | despair | B | March 14, 2018, 2:07 p.m. | OK | GNU C++14 | TESTS | 31 | 46 | 2252800 | 1800 | |
35938172 | chinmay0906 | B | March 4, 2018, 4:34 p.m. | OK | GNU C++14 | TESTS | 31 | 46 | 2457600 | 1800 | |
35934413 | ugly2333 | B | March 4, 2018, 4:09 p.m. | OK | GNU C++14 | TESTS | 31 | 46 | 26214400 | 1800 | |
48082257 | PhamDangKhoa | B | Jan. 8, 2019, 8:44 a.m. | OK | GNU C++14 | TESTS | 31 | 61 | 307200 | 1800 | |
50235115 | code_talks | B | Feb. 20, 2019, 10:21 a.m. | OK | GNU C++14 | TESTS | 31 | 61 | 409600 | 1800 | |
35980078 | abc473848880 | B | March 6, 2018, 2:50 a.m. | OK | GNU C++14 | TESTS | 31 | 61 | 1945600 | 1800 | |
38576374 | .I. | B | May 24, 2018, 4:17 a.m. | OK | GNU C++17 | TESTS | 31 | 46 | 0 | 1800 | |
56744161 | Okrut | B | July 9, 2019, 8:55 a.m. | OK | GNU C++17 | TESTS | 31 | 46 | 204800 | 1800 | |
53872731 | RNS_JKS | B | May 8, 2019, 10:13 a.m. | OK | GNU C++17 | TESTS | 31 | 46 | 204800 | 1800 | |
44750507 | Chameleon2460 | B | Oct. 23, 2018, 7:31 p.m. | OK | GNU C++17 | TESTS | 31 | 46 | 409600 | 1800 | |
49141027 | Nooby_lol | B | Jan. 29, 2019, 10:14 a.m. | OK | GNU C++17 | TESTS | 31 | 46 | 512000 | 1800 | |
35935001 | Jakube | B | March 4, 2018, 4:12 p.m. | OK | GNU C++17 | TESTS | 31 | 46 | 2150400 | 1800 | |
36029092 | ludo | B | March 6, 2018, 10:28 p.m. | OK | GNU C++17 | TESTS | 31 | 61 | 2150400 | 1800 | |
37090019 | IAMjm | B | April 8, 2018, 7:14 a.m. | OK | GNU C++17 | TESTS | 31 | 61 | 3891200 | 1800 | |
50161780 | dmitry.sluch | B | Feb. 19, 2019, 12:54 p.m. | OK | GNU C++17 | TESTS | 31 | 78 | 204800 | 1800 | |
50231058 | C-- | B | Feb. 20, 2019, 8:57 a.m. | OK | GNU C++17 | TESTS | 31 | 78 | 307200 | 1800 | |
35933668 | Martynas | B | March 4, 2018, 4:04 p.m. | OK | Go | TESTS | 31 | 327 | 38092800 | 1800 | |
35990503 | Hellis | B | March 6, 2018, 11:56 a.m. | OK | Go | TESTS | 31 | 390 | 40345600 | 1800 | |
35952075 | Mr.Kutso | B | March 4, 2018, 10:26 p.m. | OK | Go | TESTS | 31 | 639 | 264294400 | 1800 | |
35936870 | aabdelzaher | B | March 4, 2018, 4:25 p.m. | OK | Java 8 | TESTS | 31 | 233 | 20684800 | 1800 | |
35931573 | yarrr | B | March 4, 2018, 3:53 p.m. | OK | Java 8 | TESTS | 31 | 265 | 20684800 | 1800 | |
58897235 | saurabhs1206 | B | Aug. 16, 2019, 7:59 a.m. | OK | Java 8 | TESTS | 31 | 280 | 0 | 1800 | |
35929129 | Petr | B | March 4, 2018, 3:43 p.m. | OK | Java 8 | TESTS | 31 | 280 | 20684800 | 1800 | |
35933904 | liymbear | B | March 4, 2018, 4:06 p.m. | OK | Java 8 | TESTS | 31 | 295 | 20684800 | 1800 | |
35930111 | qwerty787788 | B | March 4, 2018, 3:47 p.m. | OK | Java 8 | TESTS | 31 | 311 | 20684800 | 1800 | |
35931585 | Lewin | B | March 4, 2018, 3:53 p.m. | OK | Java 8 | TESTS | 31 | 327 | 21094400 | 1800 | |
35930430 | uwi | B | March 4, 2018, 3:48 p.m. | OK | Java 8 | TESTS | 31 | 358 | 20992000 | 1800 | |
35933414 | Omar_Morsi | B | March 4, 2018, 4:03 p.m. | OK | Java 8 | TESTS | 31 | 405 | 21094400 | 1800 | |
35933219 | bovinophile | B | March 4, 2018, 4:02 p.m. | OK | Java 8 | TESTS | 31 | 405 | 39731200 | 1800 | |
35930352 | swenyoo | B | March 4, 2018, 3:48 p.m. | OK | MS C++ | TESTS | 31 | 93 | 2150400 | 1800 | |
56164833 | vjudge5 | B | June 27, 2019, 1:52 p.m. | OK | MS C++ | TESTS | 31 | 109 | 102400 | 1800 | |
35939653 | RCG | B | March 4, 2018, 4:46 p.m. | OK | MS C++ | TESTS | 31 | 109 | 2150400 | 1800 | |
56183940 | vjudge5 | B | June 28, 2019, 2:59 a.m. | OK | MS C++ | TESTS | 31 | 187 | 18022400 | 1800 | |
56161767 | vjudge4 | B | June 27, 2019, 12:37 p.m. | OK | MS C++ | TESTS | 31 | 187 | 18022400 | 1800 | |
56292252 | vjudge4 | B | June 30, 2019, 2:26 a.m. | OK | MS C++ | TESTS | 31 | 217 | 13619200 | 1800 | |
36140795 | gebixiaofang | B | March 10, 2018, 7:07 a.m. | OK | MS C++ | TESTS | 31 | 218 | 16691200 | 1800 | |
56163710 | vjudge1 | B | June 27, 2019, 1:25 p.m. | OK | MS C++ | TESTS | 31 | 218 | 18022400 | 1800 | |
56291586 | vjudge2 | B | June 30, 2019, 1:42 a.m. | OK | MS C++ | TESTS | 31 | 249 | 13619200 | 1800 | |
56290701 | vjudge2 | B | June 30, 2019, 12:25 a.m. | OK | MS C++ | TESTS | 31 | 249 | 18124800 | 1800 | |
56183937 | C20191522 | B | June 28, 2019, 2:59 a.m. | OK | MS C++ 2017 | TESTS | 31 | 249 | 18022400 | 1800 | |
56183230 | C20191522 | B | June 28, 2019, 2:17 a.m. | OK | MS C++ 2017 | TESTS | 31 | 390 | 13619200 | 1800 | |
59232022 | kurs | B | Aug. 21, 2019, 3:51 p.m. | OK | MS C++ 2017 | TESTS | 31 | 1231 | 28774400 | 1800 | |
35983955 | xy961218 | B | March 6, 2018, 7:25 a.m. | OK | PyPy 3 | TESTS | 31 | 217 | 21504000 | 1800 | |
35969934 | xy961218 | B | March 5, 2018, 3:11 p.m. | OK | PyPy 3 | TESTS | 31 | 233 | 21094400 | 1800 | |
60155841 | CubeCakes | B | Sept. 6, 2019, 6:45 a.m. | OK | PyPy 3 | TESTS | 31 | 264 | 2252800 | 1800 | |
35969783 | xy961218 | B | March 5, 2018, 3:06 p.m. | OK | PyPy 3 | TESTS | 31 | 873 | 21913600 | 1800 | |
36045242 | FalseMirror | B | March 7, 2018, 1:04 p.m. | OK | Rust | TESTS | 31 | 46 | 1638400 | 1800 | |
35973723 | FalseMirror | B | March 5, 2018, 5:51 p.m. | OK | Rust | TESTS | 31 | 46 | 1638400 | 1800 | |
35973623 | FalseMirror | B | March 5, 2018, 5:46 p.m. | OK | Rust | TESTS | 31 | 685 | 104243200 | 1800 | |
35984330 | limed | B | March 6, 2018, 7:44 a.m. | OK | Scala | TESTS | 31 | 1388 | 40652800 | 1800 |
Back to search problems