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 |
---|---|---|---|---|---|---|
461 | Codeforces Round 263 (Div. 1) | FINISHED | False | 7200 | 328550404 | Aug. 26, 2014, 2 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 455 ) | E | Appleman and a Game | PROGRAMMING | binary search shortest paths strings | 3000 |
B'Appleman and Toastman like games. Today they play a game with strings with the following rules. Firstly Toastman tells Appleman two strings s and t both consisting only of letters 'A ', 'B ', 'C ', 'D '. Then Appleman must build string s as quickly as possible. Initially he has empty string, and in one second he can append to end of the current string any contiguous substring of t. Now, Toastman and Appleman are beginning to play the game. Toastman has already told string t to Appleman, but he hasn 't come up with string s yet. Toastman only thinks, that he should choose string s consisting of n characters. Of course, he wants to find the worst string for Appleman (such string, that Appleman will spend as much time as possible during the game). Tell Toastman, how much time will Appleman spend during the game if Toastman finds the worst string for him. You can assume that Appleman plays optimally, therefore he builds any string s in minimal possible time. The first line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018). The second line contains string t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|t| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). String t consists of only letters 'A ', 'B ', 'C ', 'D '. Each letter appears at least once in string t. Print a single integer -- the largest possible time Appleman needs. In the first example, Toastman can choose s equal to "AAAAA". In the second example, Toastman can choose s equal to "DADDA".'... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
7657682 | hos.lyric | E | Sept. 1, 2014, 12:26 a.m. | OK | D | TESTS | 139 | 62 | 5529600 | 3000 | |
26655873 | F.Darcy | E | April 25, 2017, 8:52 a.m. | OK | GNU C++ | TESTS | 139 | 30 | 8601600 | 3000 | |
7818461 | jxt | E | Sept. 17, 2014, 1:47 p.m. | OK | GNU C++ | TESTS | 139 | 30 | 20172800 | 3000 | |
7826712 | I_love_tigersugar | E | Sept. 18, 2014, 2:31 p.m. | OK | GNU C++ | TESTS | 139 | 31 | 1331200 | 3000 | |
8547652 | zyeric | E | Nov. 4, 2014, 2 p.m. | OK | GNU C++ | TESTS | 139 | 31 | 1536000 | 3000 | |
7594579 | rng_58 | E | Aug. 26, 2014, 3:45 p.m. | OK | GNU C++ | TESTS | 139 | 31 | 1536000 | 3000 | |
12308959 | vjudge2 | E | Aug. 2, 2015, 1:26 a.m. | OK | GNU C++ | TESTS | 139 | 31 | 2867200 | 3000 | |
8508408 | kawazaki | E | Nov. 1, 2014, 5:41 a.m. | OK | GNU C++ | TESTS | 139 | 31 | 4300800 | 3000 | |
15142424 | HappyNewYearMike | E | Dec. 31, 2015, 10:26 p.m. | OK | GNU C++ | TESTS | 139 | 31 | 5017600 | 3000 | |
12005960 | Bakser | E | July 11, 2015, 8:50 a.m. | OK | GNU C++ | TESTS | 139 | 31 | 5017600 | 3000 | |
8509871 | aa2985759 | E | Nov. 1, 2014, 8:28 a.m. | OK | GNU C++ | TESTS | 139 | 31 | 5017600 | 3000 | |
7666444 | Chiba | E | Sept. 2, 2014, 9:11 a.m. | OK | GNU C++0x | TESTS | 139 | 31 | 1638400 | 3000 | |
7596159 | climpet | E | Aug. 26, 2014, 4:26 p.m. | OK | GNU C++0x | TESTS | 139 | 31 | 4505600 | 3000 | |
7601304 | MinakoKojima | E | Aug. 27, 2014, 3 a.m. | OK | GNU C++0x | TESTS | 139 | 31 | 5632000 | 3000 | |
7782196 | windhunterSB | E | Sept. 13, 2014, 11:12 a.m. | OK | GNU C++0x | TESTS | 139 | 31 | 6553600 | 3000 | |
7601514 | MinakoKojima | E | Aug. 27, 2014, 3:47 a.m. | OK | GNU C++0x | TESTS | 139 | 31 | 6860800 | 3000 | |
7601503 | MinakoKojima | E | Aug. 27, 2014, 3:44 a.m. | OK | GNU C++0x | TESTS | 139 | 31 | 6860800 | 3000 | |
7601453 | MinakoKojima | E | Aug. 27, 2014, 3:32 a.m. | OK | GNU C++0x | TESTS | 139 | 31 | 6860800 | 3000 | |
7654428 | Plumrain | E | Aug. 31, 2014, 1:19 p.m. | OK | GNU C++0x | TESTS | 139 | 31 | 7680000 | 3000 | |
7624597 | gustav | E | Aug. 29, 2014, 9:32 p.m. | OK | GNU C++0x | TESTS | 139 | 31 | 11878400 | 3000 | |
7801576 | Flandre_Scarlet | E | Sept. 15, 2014, 1:55 p.m. | OK | GNU C++0x | TESTS | 139 | 31 | 15769600 | 3000 | |
14538258 | Thr__Fir_s | E | Nov. 28, 2015, 9:40 a.m. | OK | GNU C++11 | TESTS | 139 | 15 | 80281600 | 3000 | |
16316280 | tkostek | E | Feb. 24, 2016, 8:14 p.m. | OK | GNU C++11 | TESTS | 139 | 31 | 1331200 | 3000 | |
12158839 | ainta | E | July 22, 2015, 6:07 a.m. | OK | GNU C++11 | TESTS | 139 | 31 | 4096000 | 3000 | |
51889238 | luogu_bot4 | E | March 27, 2019, 8:14 a.m. | OK | GNU C++11 | TESTS | 139 | 31 | 9830400 | 3000 | |
10939027 | krijgertje | E | April 30, 2015, 1:59 p.m. | OK | GNU C++11 | TESTS | 139 | 31 | 13209600 | 3000 | |
11632328 | a00012025 | E | June 18, 2015, 12:31 p.m. | OK | GNU C++11 | TESTS | 139 | 31 | 14233600 | 3000 | |
37478164 | zyding | E | April 20, 2018, 5:59 a.m. | OK | GNU C++11 | TESTS | 139 | 31 | 15155200 | 3000 | |
11986788 | SparkOO7 | E | July 9, 2015, 2:15 p.m. | OK | GNU C++11 | TESTS | 139 | 31 | 17817600 | 3000 | |
47969912 | mushbox | E | Jan. 5, 2019, 2:05 p.m. | OK | GNU C++11 | TESTS | 139 | 31 | 19968000 | 3000 | |
48198215 | bestFy | E | Jan. 11, 2019, 2:05 a.m. | OK | GNU C++11 | TESTS | 139 | 31 | 28979200 | 3000 | |
21109943 | Steven_Wu | E | Oct. 2, 2016, 9 a.m. | OK | GNU C++14 | TESTS | 139 | 31 | 16076800 | 3000 | |
49853684 | starry2024 | E | Feb. 13, 2019, 5:53 a.m. | OK | GNU C++14 | TESTS | 139 | 31 | 20172800 | 3000 | |
36744867 | CQzhangyu | E | March 30, 2018, 11:18 a.m. | OK | GNU C++14 | TESTS | 139 | 31 | 35532800 | 3000 | |
53175561 | NiroBC | E | April 23, 2019, 3:23 a.m. | OK | GNU C++14 | TESTS | 139 | 46 | 6451200 | 3000 | |
23531718 | Ali.Pi | E | Jan. 4, 2017, 9:03 a.m. | OK | GNU C++14 | TESTS | 139 | 46 | 10649600 | 3000 | |
66149802 | davidberard | E | Dec. 1, 2019, 6:22 p.m. | OK | GNU C++14 | TESTS | 139 | 46 | 18022400 | 3000 | |
56773969 | Scut82 | E | July 10, 2019, 1:16 a.m. | OK | GNU C++14 | TESTS | 139 | 46 | 25804800 | 3000 | |
65684970 | vjudge5 | E | Nov. 24, 2019, 10:10 p.m. | OK | GNU C++14 | TESTS | 139 | 46 | 48537600 | 3000 | |
65929955 | davidberard | E | Nov. 28, 2019, 8:22 p.m. | OK | GNU C++14 | TESTS | 139 | 62 | 18022400 | 3000 | |
39587749 | queria_ser_mauricio | E | June 24, 2018, 3:16 a.m. | OK | GNU C++14 | TESTS | 139 | 77 | 2048000 | 3000 | |
39074805 | kobae964 | E | June 9, 2018, 5:04 p.m. | OK | GNU C++17 | TESTS | 139 | 31 | 1228800 | 3000 | |
64275894 | teapotd | E | Nov. 4, 2019, 9:23 p.m. | OK | GNU C++17 | TESTS | 139 | 46 | 8908800 | 3000 | |
60056111 | ruo | E | Sept. 5, 2019, 4:17 a.m. | OK | GNU C++17 | TESTS | 139 | 46 | 20889600 | 3000 | |
52664469 | Isonan | E | April 13, 2019, 3:32 a.m. | OK | GNU C++17 | TESTS | 139 | 46 | 192512000 | 3000 | |
57719911 | 89264270823 | E | July 25, 2019, 4:46 a.m. | OK | GNU C++17 | TESTS | 139 | 249 | 14745600 | 3000 | |
7678676 | emo | E | Sept. 4, 2014, 4 a.m. | OK | Java 6 | TESTS | 139 | 109 | 0 | 3000 | |
7800036 | NaoMeir | E | Sept. 15, 2014, 9:39 a.m. | OK | Java 7 | TESTS | 139 | 93 | 0 | 3000 | |
7601753 | ftiasch | E | Aug. 27, 2014, 4:47 a.m. | OK | Java 7 | TESTS | 139 | 249 | 17203200 | 3000 | |
7600693 | uwi | E | Aug. 27, 2014, 1:02 a.m. | OK | Java 7 | TESTS | 139 | 295 | 17100800 | 3000 | |
51395613 | tri | E | March 17, 2019, 4:17 a.m. | OK | Java 8 | TESTS | 139 | 670 | 6656000 | 3000 | |
7818610 | yesh233 | E | Sept. 17, 2014, 2:01 p.m. | OK | MS C++ | TESTS | 139 | 155 | 180326400 | 3000 |
Back to search problems