Codeforces Round 612 (Div. 1)

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
1286 Codeforces Round 612 (Div. 1) FINISHED False 7200 158946863 Jan. 5, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 683 ) C2 Madhouse (Hard version) PROGRAMMING brute force constructive algorithms hashing interactive math 2900

B"This problem is different with easy version only by constraints on total answers length It is an interactive problem Venya joined a tour to the madhouse, in which orderlies play with patients the following game. Orderlies pick a string s of length n , consisting only of lowercase English letters. The player can ask two types of queries: The player can ask no more than 3 queries of the first type. To make it easier for the orderlies, there is an additional limitation: the total number of returned substrings in all queries of the first type must not exceed <= ft lceil 0.777(n+1)^2 right rceil ( lceil x rceil is x rounded up). Venya asked you to write a program, which will guess the string by interacting with the orderlies' program and acting by the game's rules. Your program should immediately terminate after guessing the string using a query of the second type. In case your program guessed the string incorrectly, or it violated the game rules, it will receive verdict Wrong answer. Note that in every test case the string is fixed beforehand and will not change during the game, which means that the interactor is not adaptive. First line contains number n ( 1 <= n <= 100 ) -- the length of the picked string. You start the interaction by reading the number n . To ask a query about a substring from l to r inclusively ( 1 <= l <= r <= n ), you should output ? l r on a separate line. After this, all substrings of s[l..r] will be returned in random order, each substring exactly once. In every returned substring all characters will be randomly shuffled. In the case, if you ask an incorrect query, ask more than 3 queries of the first type or there will be more than <= ft lceil 0.777(n+1)^2 right rceil substrings returned in total, you will receive verdict Wrong answer. To guess the string s , you should output ! s on a separate line. After printing each query, do not f"...

Tutorials

Codeforces Round #612 - Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68299594 stal_xy23z7b8 C2 Jan. 6, 2020, 5:43 a.m. OK GNU C++11 TESTS 43 31 0 2900
68282978 LJC00118 C2 Jan. 5, 2020, 5:32 p.m. OK GNU C++11 TESTS 43 31 0 2900
68347007 ToMmyDong C2 Jan. 7, 2020, 7:49 a.m. OK GNU C++11 TESTS 45 31 102400 2900
68383154 Kewth C2 Jan. 8, 2020, 3:34 a.m. OK GNU C++11 TESTS 45 31 204800 2900
68383117 Kewth C2 Jan. 8, 2020, 3:32 a.m. OK GNU C++11 TESTS 45 31 204800 2900
68408608 omochan C2 Jan. 8, 2020, 4:01 p.m. OK GNU C++11 TESTS 47 31 614400 2900
68470002 chdyFZH C2 Jan. 10, 2020, 12:27 a.m. OK GNU C++11 TESTS 47 31 716800 2900
68426335 cuizhuyefei C2 Jan. 9, 2020, 3:40 a.m. OK GNU C++11 TESTS 47 31 3174400 2900
68271699 stal_xy23z7b8 C2 Jan. 5, 2020, 3:39 p.m. OK GNU C++11 TESTS 43 46 0 2900
68346039 SsSsoOoOoOo C2 Jan. 7, 2020, 7:18 a.m. OK GNU C++11 TESTS 45 46 102400 2900
68267031 Toxtricity C2 Jan. 5, 2020, 3:19 p.m. OK GNU C++14 TESTS 43 31 204800 2900
68266394 lzr_010506 C2 Jan. 5, 2020, 3:17 p.m. OK GNU C++14 TESTS 43 31 204800 2900
68277539 Amoo_Safar C2 Jan. 5, 2020, 4:02 p.m. OK GNU C++14 TESTS 43 31 409600 2900
68346641 Irene C2 Jan. 7, 2020, 7:38 a.m. OK GNU C++14 TESTS 45 31 614400 2900
68346567 Irene C2 Jan. 7, 2020, 7:36 a.m. OK GNU C++14 TESTS 45 31 614400 2900
69261589 furious_beast C2 Jan. 21, 2020, 5:13 p.m. OK GNU C++14 TESTS 47 31 2457600 2900
68310564 wucstdio C2 Jan. 6, 2020, 11 a.m. OK GNU C++14 TESTS 44 46 0 2900
68297620 ZZZZZZZZZZZZZZZZZZ C2 Jan. 6, 2020, 4:14 a.m. OK GNU C++14 TESTS 43 46 0 2900
69547079 MinecraftFuns C2 Jan. 26, 2020, 3:48 a.m. OK GNU C++14 TESTS 47 46 102400 2900
68275856 yhchang3 C2 Jan. 5, 2020, 3:56 p.m. OK GNU C++14 TESTS 43 46 204800 2900
69562688 justfocusplease C2 Jan. 26, 2020, 11:13 a.m. OK GNU C++17 TESTS 47 31 0 2900
68281089 hamburgerwjx C2 Jan. 5, 2020, 5:09 p.m. OK GNU C++17 TESTS 43 31 102400 2900
68275582 kdh9949 C2 Jan. 5, 2020, 3:55 p.m. OK GNU C++17 TESTS 43 31 102400 2900
68305279 Fulisike C2 Jan. 6, 2020, 8:42 a.m. OK GNU C++17 TESTS 44 31 204800 2900
68291188 ArshiaDadras C2 Jan. 5, 2020, 9:23 p.m. OK GNU C++17 TESTS 43 31 204800 2900
68282102 Reinier C2 Jan. 5, 2020, 5:20 p.m. OK GNU C++17 TESTS 43 31 204800 2900
68273604 voidmax C2 Jan. 5, 2020, 3:47 p.m. OK GNU C++17 TESTS 43 31 204800 2900
68383469 Kewth C2 Jan. 8, 2020, 3:54 a.m. OK GNU C++17 TESTS 45 31 307200 2900
68291328 irri C2 Jan. 5, 2020, 9:30 p.m. OK GNU C++17 TESTS 43 31 307200 2900
68288509 Kaildls C2 Jan. 5, 2020, 7:40 p.m. OK GNU C++17 TESTS 43 31 307200 2900
68282967 mikit C2 Jan. 5, 2020, 5:32 p.m. OK Java 11 TESTS 43 202 0 2900
68276246 ilyakor C2 Jan. 5, 2020, 3:57 p.m. OK Java 11 TESTS 43 234 0 2900
68359036 dalt C2 Jan. 7, 2020, 1:20 p.m. OK Java 8 TESTS 45 186 20480000 2900
68283522 Tlatoani C2 Jan. 5, 2020, 5:41 p.m. OK Kotlin TESTS 43 421 1740800 2900
68278665 math957963 C2 Jan. 5, 2020, 4:04 p.m. OK MS C++ TESTS 43 46 204800 2900
68291783 AlexanderL C2 Jan. 5, 2020, 9:56 p.m. OK MS C++ 2017 TESTS 43 46 409600 2900
68411005 pichulia C2 Jan. 8, 2020, 4:59 p.m. OK MS C++ 2017 TESTS 47 61 26828800 2900
68292575 Ormlis C2 Jan. 5, 2020, 10:42 p.m. OK PyPy 3 TESTS 43 296 7577600 2900

remove filters

Back to search problems