Codeforces Round 761 (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
1617 Codeforces Round 761 (Div. 2) FINISHED False 7200 97604663 Dec. 16, 2021, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4796 ) D1 Too Many Impostors (easy version) PROGRAMMING constructive algorithms interactive

B'This is an interactive problem. The only difference between the easy and hard version is the limit on number of questions. There are n players labelled from 1 to n . It is guaranteed that n is a multiple of 3 . Among them, there are k impostors and n-k crewmates. The number of impostors, k , is not given to you. It is guaranteed that frac{n}{3} < k < frac{2n}{3} . In each question, you can choose three distinct integers a , b , c ( 1 <= a, b, c <= n ) and ask: "Among the players labelled a , b and c , are there more impostors or more crewmates?" You will be given the integer 0 if there are more impostors than crewmates, and 1 otherwise. Find the number of impostors k and the indices of players that are impostors after asking at most 2n questions. The jury is adaptive, which means the indices of impostors may not be fixed beforehand and can depend on your questions. It is guaranteed that there is at least one set of impostors which fulfills the constraints and the answers to your questions at any time. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 100 ). Description of the test cases follows. The first and only line of each test case contains a single integer n ( 6 <= n < 10^4 , n is a multiple of 3 ) -- the number of players. It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^4 . For each test case, the interaction starts with reading n . Then you are allowed to make at most 2n questions in the following way: "? a b c" ( 1 <= a, b, c <= n , a , b and c are pairwise distinct). After each one, you should read an integer r , which is equal to 0 if there are more impostors than crewmates among players labelled a , b and c , and equal to 1 otherwise. A'...

Tutorials

Editorial for Codeforces Round #761 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
139601224 RealArtist D1 Dec. 17, 2021, 5:28 a.m. OK GNU C11 TESTS 48 186 0
139571450 wllw2011 D1 Dec. 16, 2021, 7:34 p.m. OK GNU C++14 TESTS 48 124 204800
139589373 Drice D1 Dec. 17, 2021, 12:57 a.m. OK GNU C++14 TESTS 48 124 409600
139593314 yueyingxiao D1 Dec. 17, 2021, 2:59 a.m. OK GNU C++14 TESTS 48 139 307200
139554023 Calvincheng1231 D1 Dec. 16, 2021, 4:27 p.m. OK GNU C++14 TESTS 48 140 102400
139589016 zqyyy D1 Dec. 17, 2021, 12:45 a.m. OK GNU C++14 TESTS 48 140 307200
139602702 PD14 D1 Dec. 17, 2021, 5:50 a.m. OK GNU C++14 TESTS 48 140 307200
139597163 anixai D1 Dec. 17, 2021, 4:20 a.m. OK GNU C++14 TESTS 48 140 1024000
139596119 hieu_2004 D1 Dec. 17, 2021, 4:02 a.m. OK GNU C++14 TESTS 48 155 204800
139545310 bary D1 Dec. 16, 2021, 3:31 p.m. OK GNU C++14 TESTS 48 155 307200
139563223 anyejunwang D1 Dec. 16, 2021, 5:50 p.m. OK GNU C++14 TESTS 48 155 307200
139547278 syrtin D1 Dec. 16, 2021, 3:34 p.m. OK GNU C++17 TESTS 48 124 204800
139590012 the_ancient_one_ D1 Dec. 17, 2021, 1:20 a.m. OK GNU C++17 TESTS 48 124 204800
139572552 Alireza D1 Dec. 16, 2021, 7:50 p.m. OK GNU C++17 TESTS 48 124 307200
139567265 IgorI D1 Dec. 16, 2021, 6:35 p.m. OK GNU C++17 TESTS 48 124 307200
139600715 akash911 D1 Dec. 17, 2021, 5:19 a.m. OK GNU C++17 TESTS 48 124 307200
139546356 hsrb D1 Dec. 16, 2021, 3:32 p.m. OK GNU C++17 TESTS 48 124 409600
139590257 smirimedaziz30 D1 Dec. 17, 2021, 1:28 a.m. OK GNU C++17 TESTS 48 139 0
139591867 hhhhhl D1 Dec. 17, 2021, 2:20 a.m. OK GNU C++17 TESTS 48 139 307200
139593842 AvinashKartik D1 Dec. 17, 2021, 3:10 a.m. OK GNU C++17 TESTS 48 140 0
139575369 Stobered D1 Dec. 16, 2021, 8:38 p.m. OK GNU C++17 TESTS 48 140 102400
139600258 Ripiaun D1 Dec. 17, 2021, 5:12 a.m. OK GNU C++17 (64) TESTS 48 93 921600
139591948 froggyzhang D1 Dec. 17, 2021, 2:22 a.m. OK GNU C++17 (64) TESTS 48 108 204800
139591856 SevenDawns D1 Dec. 17, 2021, 2:20 a.m. OK GNU C++17 (64) TESTS 48 108 204800
139577381 rajkumar19084 D1 Dec. 16, 2021, 9:24 p.m. OK GNU C++17 (64) TESTS 48 109 204800
139582313 samcpp D1 Dec. 17, 2021, 12:21 a.m. OK GNU C++17 (64) TESTS 48 124 204800
139595239 forceac D1 Dec. 17, 2021, 3:42 a.m. OK GNU C++17 (64) TESTS 48 124 204800
139572454 naman1601 D1 Dec. 16, 2021, 7:48 p.m. OK GNU C++17 (64) TESTS 48 124 204800
139556452 Blondie D1 Dec. 16, 2021, 4:44 p.m. OK GNU C++17 (64) TESTS 48 124 204800
139591689 SevenDawns D1 Dec. 17, 2021, 2:15 a.m. OK GNU C++17 (64) TESTS 48 124 204800
139566699 michao D1 Dec. 16, 2021, 6:29 p.m. OK GNU C++17 (64) TESTS 48 124 307200
139572608 tiagoshibata D1 Dec. 16, 2021, 7:51 p.m. OK GNU C++20 (64) TESTS 48 93 102400
139553652 ItayOtto D1 Dec. 16, 2021, 4:25 p.m. OK GNU C++20 (64) TESTS 48 108 102400
139563250 phanlong2811 D1 Dec. 16, 2021, 5:50 p.m. OK GNU C++20 (64) TESTS 48 124 102400
139558316 xudian D1 Dec. 16, 2021, 5:01 p.m. OK GNU C++20 (64) TESTS 48 124 102400
139549510 magnus.hegdahl D1 Dec. 16, 2021, 4:03 p.m. OK GNU C++20 (64) TESTS 48 124 102400
139594065 Acc_Robin D1 Dec. 17, 2021, 3:16 a.m. OK GNU C++20 (64) TESTS 48 124 204800
139551488 DreamingLeaf D1 Dec. 16, 2021, 4:12 p.m. OK GNU C++20 (64) TESTS 48 124 204800
139561882 lukameladze1 D1 Dec. 16, 2021, 5:36 p.m. OK GNU C++20 (64) TESTS 48 124 2457600
139577396 _Body D1 Dec. 16, 2021, 9:24 p.m. OK GNU C++20 (64) TESTS 48 124 4915200
139551802 Shrimp__ D1 Dec. 16, 2021, 4:13 p.m. OK GNU C++20 (64) TESTS 48 139 0
139559411 podtelkin D1 Dec. 16, 2021, 5:11 p.m. OK Java 11 TESTS 48 857 2457600
139552755 podtelkin D1 Dec. 16, 2021, 4:19 p.m. OK Java 11 TESTS 48 951 1740800
139568938 tushar19280 D1 Dec. 16, 2021, 6:57 p.m. OK Java 11 TESTS 48 1060 102400
139566234 aayushdhakad D1 Dec. 16, 2021, 6:24 p.m. OK Java 11 TESTS 48 1091 204800
139598318 yogii_123 D1 Dec. 17, 2021, 4:41 a.m. OK Java 11 TESTS 48 1138 0
139555823 podtelkin D1 Dec. 16, 2021, 4:39 p.m. OK Java 11 TESTS 48 1169 409600
139578289 uchiha_madara. D1 Dec. 16, 2021, 9:49 p.m. OK Java 11 TESTS 48 1185 921600
139589712 sarthakmanna D1 Dec. 17, 2021, 1:08 a.m. OK Java 11 TESTS 48 1216 307200
139551430 2chelovek2 D1 Dec. 16, 2021, 4:11 p.m. OK Java 11 TESTS 48 1294 1126400
139551797 _merlin_ D1 Dec. 16, 2021, 4:13 p.m. OK Java 11 TESTS 48 1387 921600
139555937 kkkkush D1 Dec. 16, 2021, 4:40 p.m. OK Java 8 TESTS 48 733 0
139574338 golions D1 Dec. 16, 2021, 8:18 p.m. OK Java 8 TESTS 48 764 0
139556013 kkkkush D1 Dec. 16, 2021, 4:41 p.m. OK Java 8 TESTS 48 764 0
139563876 naitikvarshney D1 Dec. 16, 2021, 5:57 p.m. OK Java 8 TESTS 48 1107 0
139550119 Schullz D1 Dec. 16, 2021, 4:06 p.m. OK MS C++ 2017 TESTS 48 202 716800
139566531 fatant D1 Dec. 16, 2021, 6:27 p.m. OK MS C++ 2017 TESTS 48 265 204800
139554704 P___ D1 Dec. 16, 2021, 4:32 p.m. OK MS C++ 2017 TESTS 48 280 102400
139552939 Xeniya D1 Dec. 16, 2021, 4:20 p.m. OK MS C++ 2017 TESTS 48 343 102400
139552449 megurine D1 Dec. 16, 2021, 4:17 p.m. OK PyPy 3 TESTS 48 701 9625600
139562373 hash1023 D1 Dec. 16, 2021, 5:41 p.m. OK PyPy 3 TESTS 48 748 8704000
139555974 iimmortal D1 Dec. 16, 2021, 4:40 p.m. OK PyPy 3 TESTS 48 795 7475200
139563930 charizard07 D1 Dec. 16, 2021, 5:58 p.m. OK PyPy 3 TESTS 48 873 10035200
139553499 hxu10 D1 Dec. 16, 2021, 4:23 p.m. OK PyPy 3 TESTS 48 873 10240000
139549986 sushmanth.dampur8780 D1 Dec. 16, 2021, 4:04 p.m. OK PyPy 3 TESTS 48 888 7168000
139545953 Munchy_1 D1 Dec. 16, 2021, 3:32 p.m. OK PyPy 3 TESTS 48 889 9932800
139581790 unknownSolver D1 Dec. 16, 2021, 11:59 p.m. OK PyPy 3 TESTS 48 904 9932800
139545849 tcltk D1 Dec. 16, 2021, 3:32 p.m. OK PyPy 3 TESTS 48 936 10035200
139545650 Amiy_Tiwari D1 Dec. 16, 2021, 3:31 p.m. OK PyPy 3 TESTS 48 951 8294400
139564352 sakurahashu D1 Dec. 16, 2021, 6:03 p.m. OK PyPy 3-64 TESTS 48 670 11673600
139550441 ctt312000 D1 Dec. 16, 2021, 4:07 p.m. OK PyPy 3-64 TESTS 48 764 7884800
139591513 armsusman D1 Dec. 17, 2021, 2:09 a.m. OK PyPy 3-64 TESTS 48 841 13414400
139591431 armsusman D1 Dec. 17, 2021, 2:07 a.m. OK PyPy 3-64 TESTS 48 857 13721600
139552471 you1234 D1 Dec. 16, 2021, 4:17 p.m. OK PyPy 3-64 TESTS 48 935 12185600
139560772 coder_sounak D1 Dec. 16, 2021, 5:24 p.m. OK PyPy 3-64 TESTS 48 950 9011200
139544891 giant-mammoth D1 Dec. 16, 2021, 3:30 p.m. OK PyPy 3-64 TESTS 48 1013 20377600
139552087 Aksnov D1 Dec. 16, 2021, 4:15 p.m. OK PyPy 3-64 TESTS 48 1122 9011200
139547380 satwiksayan123 D1 Dec. 16, 2021, 3:34 p.m. OK PyPy 3-64 TESTS 48 1387 8908800
139599601 stand_by D1 Dec. 17, 2021, 5:03 a.m. OK PyPy 3-64 TESTS 48 1418 15462400
139558503 D_Dima D1 Dec. 16, 2021, 5:02 p.m. OK Python 3 TESTS 48 670 307200
139560074 Spacelessd D1 Dec. 16, 2021, 5:17 p.m. OK Python 3 TESTS 48 670 512000
139577032 achrafb.s2015 D1 Dec. 16, 2021, 9:16 p.m. OK Python 3 TESTS 48 748 1536000
139574255 achrafb.s2015 D1 Dec. 16, 2021, 8:16 p.m. OK Python 3 TESTS 48 764 1536000
139573388 achrafb.s2015 D1 Dec. 16, 2021, 8:02 p.m. OK Python 3 TESTS 48 935 1536000
139598061 batnik D1 Dec. 17, 2021, 4:36 a.m. OK Python 3 TESTS 48 1075 716800
139561278 apilat D1 Dec. 16, 2021, 5:29 p.m. OK Rust 2021 TESTS 48 217 307200
139555409 Avanta D1 Dec. 16, 2021, 4:36 p.m. OK Rust 2021 TESTS 48 327 512000
139554838 Avanta D1 Dec. 16, 2021, 4:32 p.m. OK Rust 2021 TESTS 48 358 512000
139555664 Avanta D1 Dec. 16, 2021, 4:38 p.m. OK Rust 2021 TESTS 48 374 512000
139555843 Avanta D1 Dec. 16, 2021, 4:39 p.m. OK Rust 2021 TESTS 48 420 512000
139553677 Avanta D1 Dec. 16, 2021, 4:25 p.m. OK Rust 2021 TESTS 48 436 409600
139555709 Avanta D1 Dec. 16, 2021, 4:38 p.m. OK Rust 2021 TESTS 48 467 512000
139555752 Avanta D1 Dec. 16, 2021, 4:39 p.m. OK Rust 2021 TESTS 48 499 512000

remove filters

Back to search problems