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
( 1466 ) C1 Madhouse (Easy version) PROGRAMMING brute force constructive algorithms interactive math 2400

B"This problem is different with hard 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 (n+1)^2 . 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 (n+1)^2 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 forget to flush the output. Otherwise, you will get Idleness limit exceeded. To flush the output, you can u"...

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
68276005 physics0523 C1 Jan. 5, 2020, 3:56 p.m. OK GNU C11 TESTS 43 46 102400 2400
68292945 dredwerkz C1 Jan. 5, 2020, 11:09 p.m. OK GNU C++11 TESTS 43 30 512000 2400
68267092 stal_xy23z7b8 C1 Jan. 5, 2020, 3:19 p.m. OK GNU C++11 TESTS 43 31 0 2400
68269300 Bartol C1 Jan. 5, 2020, 3:28 p.m. OK GNU C++11 TESTS 43 31 512000 2400
68408646 omochan C1 Jan. 8, 2020, 4:03 p.m. OK GNU C++11 TESTS 44 31 614400 2400
68350021 Okazaki_Yumemi C1 Jan. 7, 2020, 9:21 a.m. OK GNU C++11 TESTS 44 31 716800 2400
68277883 Potassium C1 Jan. 5, 2020, 4:03 p.m. OK GNU C++11 TESTS 43 31 921600 2400
68861498 hehezhou C1 Jan. 15, 2020, 12:13 p.m. OK GNU C++11 TESTS 44 31 1536000 2400
68296665 shurongwang C1 Jan. 6, 2020, 3:22 a.m. OK GNU C++11 TESTS 43 31 1638400 2400
68299589 stal_xy23z7b8 C1 Jan. 6, 2020, 5:43 a.m. OK GNU C++11 TESTS 43 46 0 2400
68345173 w_57 C1 Jan. 7, 2020, 6:47 a.m. OK GNU C++11 TESTS 44 46 0 2400
68267268 QAQAutoMaton C1 Jan. 5, 2020, 3:20 p.m. OK GNU C++14 TESTS 43 31 0 2400
68267572 olphe C1 Jan. 5, 2020, 3:21 p.m. OK GNU C++14 TESTS 43 31 204800 2400
68268031 yashChandnani C1 Jan. 5, 2020, 3:23 p.m. OK GNU C++14 TESTS 43 31 204800 2400
68346683 Irene C1 Jan. 7, 2020, 7:39 a.m. OK GNU C++14 TESTS 44 31 307200 2400
68277448 Amoo_Safar C1 Jan. 5, 2020, 4:01 p.m. OK GNU C++14 TESTS 43 31 409600 2400
68341860 boba5551 C1 Jan. 7, 2020, 4:25 a.m. OK GNU C++14 TESTS 44 31 614400 2400
68772805 newbiegcz C1 Jan. 14, 2020, 12:28 p.m. OK GNU C++14 TESTS 44 31 716800 2400
68571945 HanZhongBalls C1 Jan. 11, 2020, 2:50 a.m. OK GNU C++14 TESTS 44 31 1126400 2400
68913690 shiliangzhi C1 Jan. 16, 2020, 8:06 a.m. OK GNU C++14 TESTS 44 31 1843200 2400
68268912 charlieyan C1 Jan. 5, 2020, 3:27 p.m. OK GNU C++14 TESTS 43 46 0 2400
68284424 SHZhang2 C1 Jan. 5, 2020, 5:58 p.m. OK GNU C++17 TESTS 43 31 0 2400
68285450 Mucosolvan C1 Jan. 5, 2020, 6:19 p.m. OK GNU C++17 TESTS 43 31 102400 2400
68439504 inin864 C1 Jan. 9, 2020, 10:22 a.m. OK GNU C++17 TESTS 44 31 102400 2400
69094219 penguin1017 C1 Jan. 19, 2020, 11:23 a.m. OK GNU C++17 TESTS 44 31 204800 2400
68294116 arthur.nascimento C1 Jan. 6, 2020, 12:48 a.m. OK GNU C++17 TESTS 43 31 204800 2400
68292995 Fulisike C1 Jan. 5, 2020, 11:12 p.m. OK GNU C++17 TESTS 43 31 204800 2400
68291182 ArshiaDadras C1 Jan. 5, 2020, 9:23 p.m. OK GNU C++17 TESTS 43 31 204800 2400
69589491 DamianS C1 Jan. 26, 2020, 9:54 p.m. OK GNU C++17 TESTS 44 31 512000 2400
68937996 besieger C1 Jan. 16, 2020, 1:30 p.m. OK GNU C++17 TESTS 44 31 512000 2400
69202807 anakib1 C1 Jan. 20, 2020, 5:05 p.m. OK GNU C++17 TESTS 44 31 614400 2400
68283183 mikit C1 Jan. 5, 2020, 5:35 p.m. OK Java 11 TESTS 43 202 0 2400
68282716 mikit C1 Jan. 5, 2020, 5:29 p.m. OK Java 11 TESTS 43 202 0 2400
68285578 ZeyadKhattab C1 Jan. 5, 2020, 6:22 p.m. OK Java 11 TESTS 43 217 0 2400
68270947 ilyakor C1 Jan. 5, 2020, 3:36 p.m. OK Java 11 TESTS 43 249 0 2400
69160918 RetiredProgrammer C1 Jan. 19, 2020, 11:31 p.m. OK Java 11 TESTS 44 264 0 2400
68276519 SecondThread C1 Jan. 5, 2020, 3:58 p.m. OK Java 8 TESTS 43 186 0 2400
68359053 dalt C1 Jan. 7, 2020, 1:20 p.m. OK Java 8 TESTS 44 187 20377600 2400
68736046 xodiac C1 Jan. 13, 2020, 8:15 p.m. OK Java 8 TESTS 44 202 0 2400
68262968 uwi C1 Jan. 5, 2020, 3:02 p.m. OK Java 8 TESTS 43 202 0 2400
68344607 dalt C1 Jan. 7, 2020, 6:27 a.m. OK Java 8 TESTS 44 202 20377600 2400
68270096 knightL C1 Jan. 5, 2020, 3:32 p.m. OK Kotlin TESTS 43 234 921600 2400
68283560 Tlatoani C1 Jan. 5, 2020, 5:41 p.m. OK Kotlin TESTS 43 420 1740800 2400
68282419 mban259 C1 Jan. 5, 2020, 5:25 p.m. OK Mono C# TESTS 43 93 3174400 2400
68383305 camypaper C1 Jan. 8, 2020, 3:43 a.m. OK Mono C# TESTS 44 124 60416000 2400
68270606 math957963 C1 Jan. 5, 2020, 3:34 p.m. OK MS C++ TESTS 43 46 204800 2400
68286175 AlexanderL C1 Jan. 5, 2020, 6:34 p.m. OK MS C++ 2017 TESTS 43 46 409600 2400
68411048 pichulia C1 Jan. 8, 2020, 5 p.m. OK MS C++ 2017 TESTS 44 46 26828800 2400
68281395 alanM C1 Jan. 5, 2020, 5:12 p.m. OK MS C++ 2017 TESTS 43 62 1228800 2400
68289719 Ormlis C1 Jan. 5, 2020, 8:21 p.m. OK PyPy 3 TESTS 43 296 5632000 2400
68283128 malylesio C1 Jan. 5, 2020, 5:35 p.m. OK PyPy 3 TESTS 43 342 8806400 2400
68410451 garyg1 C1 Jan. 8, 2020, 4:47 p.m. OK Python 2 TESTS 44 312 1433600 2400
68283236 r57shell C1 Jan. 5, 2020, 5:36 p.m. OK Python 3 TESTS 43 186 1536000 2400
68273497 pineriver C1 Jan. 5, 2020, 3:46 p.m. OK Python 3 TESTS 43 342 716800 2400

remove filters

Back to search problems