Codeforces Round 807 (Div. 2)

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
1705 Codeforces Round 807 (Div. 2) FINISHED False 8100 118513523 July 15, 2022, 1:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 692 ) F Mark and the Online Exam PROGRAMMING bitmasks constructive algorithms interactive math probabilities

Mark is administering an online exam consisting of n true-false questions. However, he has lost all answer keys. He needs a way to retrieve the answers before his client gets infuriated. Fortunately, he has access to the grading system. Thus, for each query, you can input the answers to all n questions, and the grading system will output how many of them are correct. He doesn't have much time, so he can use the grading system at most 675 times. Help Mark determine the answer keys. Note that answer keys are fixed in advance and will not change depending on your queries. The first line of the input consists of an integer n ( 1 <= q n <= q 1000 ) -- the number of questions. After reading n , you can start making queries to the grading system. For each query, print a line containing a string s of length n consisting of only letters 'T' and 'F'. After a successful query, you should read an integer k ( 0 <= q k <= q n ) -- the number of correct answers. If you read n , then you found the answers, and your program should not make any more queries. If your program reads k = -1 instead of the number of correct answers, it means that you either made an invalid query or exceeded the query limits. Exit immediately after receiving -1 , and you will see Wrong answer verdict. Otherwise, you can get an arbitrary verdict because your solution will continue to read from a closed stream. After printing a query do not forget to output end of line and flush the output. Otherwise, you will get Idleness limit exceeded. To do this, use: Hacks To hack, use the following format: The first line contains an integer n ( 1 <= q n <= q 1000 ) -- the number of questions. The second line contains a string s of length n consisting of only 'T' and 'F' -- the answer key. The empty lines in the example are just for you to better understand the interaction process. You're not required to print them. In

Tutorials

Codeforces Round #807 (Div 2.) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
164388139 L7-56 F July 16, 2022, 3:16 a.m. OK GNU C++14 TESTS 80 31 0
164379244 llzer F July 16, 2022, 1:08 a.m. OK GNU C++14 TESTS 80 31 0
164378998 llzer F July 16, 2022, 1:04 a.m. OK GNU C++14 TESTS 80 31 0
164378952 llzer F July 16, 2022, 1:03 a.m. OK GNU C++14 TESTS 80 31 0
164395004 zhangshaojia F July 16, 2022, 4:45 a.m. OK GNU C++14 TESTS 80 46 0
164379141 llzer F July 16, 2022, 1:07 a.m. OK GNU C++14 TESTS 80 46 0
164379061 llzer F July 16, 2022, 1:05 a.m. OK GNU C++14 TESTS 80 46 0
164379031 llzer F July 16, 2022, 1:04 a.m. OK GNU C++14 TESTS 80 46 0
164378927 llzer F July 16, 2022, 1:03 a.m. OK GNU C++14 TESTS 80 46 0
164378904 llzer F July 16, 2022, 1:02 a.m. OK GNU C++14 TESTS 80 46 0
164368719 Sky_Warrior F July 15, 2022, 9:01 p.m. OK GNU C++17 TESTS 80 30 0
164378892 H.U.C_hacker F July 16, 2022, 1:02 a.m. OK GNU C++17 TESTS 80 31 0
164354610 Dart-Xeyter F July 15, 2022, 6 p.m. OK GNU C++17 TESTS 80 31 204800
164351171 Spiritum F July 15, 2022, 5:27 p.m. OK GNU C++17 TESTS 80 31 204800
164399010 DrIsaac F July 16, 2022, 5:33 a.m. OK GNU C++17 TESTS 80 31 307200
164398122 sumitprajapati F July 16, 2022, 5:23 a.m. OK GNU C++17 TESTS 80 31 307200
164357126 pavelthebest F July 15, 2022, 6:25 p.m. OK GNU C++17 TESTS 80 31 512000
164388554 zeus_anuj F July 16, 2022, 3:21 a.m. OK GNU C++17 TESTS 80 46 0
164367247 stefanbalaz2 F July 15, 2022, 8:36 p.m. OK GNU C++17 TESTS 80 46 0
164360078 Social_Pointer F July 15, 2022, 6:57 p.m. OK GNU C++17 TESTS 80 46 0
164365219 bashkort F July 15, 2022, 8:05 p.m. OK GNU C++17 (64) TESTS 80 30 0
164399781 zwuis F July 16, 2022, 5:41 a.m. OK GNU C++17 (64) TESTS 80 31 0
164365239 bashkort F July 15, 2022, 8:05 p.m. OK GNU C++17 (64) TESTS 80 31 0
164361210 Krzychuo F July 15, 2022, 7:11 p.m. OK GNU C++17 (64) TESTS 80 31 0
164377315 ki0apa F July 16, 2022, 12:27 a.m. OK GNU C++17 (64) TESTS 80 46 0
164375742 qxj8k F July 15, 2022, 11:40 p.m. OK GNU C++17 (64) TESTS 80 46 0
164370899 pikapikachu F July 15, 2022, 9:45 p.m. OK GNU C++17 (64) TESTS 80 46 0
164344944 rniya F July 15, 2022, 4:36 p.m. OK GNU C++17 (64) TESTS 80 46 0
164393834 wenhao801 F July 16, 2022, 4:30 a.m. OK GNU C++17 (64) TESTS 80 62 3584000
164347295 Vladithur F July 15, 2022, 4:53 p.m. OK GNU C++17 (64) TESTS 80 78 102400
164391921 lx_tyin F July 16, 2022, 4:03 a.m. OK GNU C++20 (64) TESTS 80 31 0
164384787 lichenghan F July 16, 2022, 2:36 a.m. OK GNU C++20 (64) TESTS 80 31 0
164377269 sammochen F July 16, 2022, 12:26 a.m. OK GNU C++20 (64) TESTS 80 31 0
164369503 Ivan_len F July 15, 2022, 9:16 p.m. OK GNU C++20 (64) TESTS 80 31 0
164358326 Fysty F July 15, 2022, 6:37 p.m. OK GNU C++20 (64) TESTS 80 31 0
164344772 dean.menezes F July 15, 2022, 4:35 p.m. OK GNU C++20 (64) TESTS 80 31 0
164348026 kshitij_sodani F July 15, 2022, 4:59 p.m. OK GNU C++20 (64) TESTS 80 31 102400
164360269 jiangly F July 15, 2022, 6:59 p.m. OK GNU C++20 (64) TESTS 80 31 716800
164382615 Lyde F July 16, 2022, 2:05 a.m. OK GNU C++20 (64) TESTS 80 46 0
164369446 hyforces F July 15, 2022, 9:15 p.m. OK GNU C++20 (64) TESTS 80 46 0
164391938 dzhi F July 16, 2022, 4:03 a.m. OK Java 11 TESTS 80 280 0
164378828 biglunchdude F July 16, 2022, 1 a.m. OK PyPy 3-64 TESTS 80 124 0
164345310 huangxw F July 15, 2022, 4:39 p.m. OK PyPy 3-64 TESTS 80 155 2764800
164364944 ItsLastDay F July 15, 2022, 8:01 p.m. OK PyPy 3-64 TESTS 80 171 4198400

remove filters

Back to search problems