Codeforces Round 773 (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
1641 Codeforces Round 773 (Div. 1) FINISHED False 7200 86212199 Feb. 23, 2022, 10:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2498 ) C Anonymity Is Important PROGRAMMING binary search data structures ds sortings

B'In the work of a doctor, it is important to maintain the anonymity of clients and the results of tests. The test results are sent to everyone personally by email, but people are very impatient and they want to know the results right away. That 's why in the testing lab "De-vitro" doctors came up with an experimental way to report the results. Let 's assume that n people took the tests in the order of the queue. Then the chief doctor Sam can make several statements, in each telling if there is a sick person among the people in the queue from l -th to r -th (inclusive), for some values l and r . During the process, Sam will check how well this scheme works and will be interested in whether it is possible to find out the test result of i -th person from the information he announced. And if it can be done, then is that patient sick or not. Help Sam to test his scheme. The first line contains two integers n , q ( 1 <= n, q <= 2 cdot 10^5 ) -- the number of people and the number of queries. In each of the next q lines, the description of the query is given. The first number in the line is t ( t = 0 or t = 1 ) -- the type of the query. If t = 0 , the line contains three more integers l, r, x ( 1 <= l <= r <= n , x = 0 or x = 1 ). This query means that Sam tells that among the people in the queue from l -th to r -th (inclusive): If t = 1 , the line contains one more integer j ( 1 <= j <= n ) -- the position of the patient in the queue, for which Sam wants to know the status. All queries are correct, that means that there always exists an example of the queue of length n for which all reported results (statements from queries with t = 0 ) are true. After each Sam question (query with t = 1 ) print: In the first test for the five first queries: '...

Tutorials

Codeforces Round #773 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
147452428 Gassa C Feb. 23, 2022, 11:29 a.m. OK D TESTS 50 218 7372800
147521794 dean.menezes C Feb. 24, 2022, 12:18 a.m. OK GNU C11 TESTS 54 93 1638400
147529765 Accept_automaton C Feb. 24, 2022, 3:46 a.m. OK GNU C++14 TESTS 55 139 1638400
147477428 Kelvin2005 C Feb. 23, 2022, 1:48 p.m. OK GNU C++14 TESTS 50 139 4403200
147460942 qiliangzhe C Feb. 23, 2022, 11:57 a.m. OK GNU C++14 TESTS 50 140 3993600
147519706 Starch C Feb. 23, 2022, 11:09 p.m. OK GNU C++14 TESTS 54 140 4812800
147455110 cunzai_zsy0531 C Feb. 23, 2022, 11:37 a.m. OK GNU C++14 TESTS 50 140 16179200
147454692 275307894b C Feb. 23, 2022, 11:36 a.m. OK GNU C++14 TESTS 50 155 5222400
147473009 zxjk C Feb. 23, 2022, 1:14 p.m. OK GNU C++14 TESTS 50 155 5939200
147437063 qinzhaoyang C Feb. 23, 2022, 10:52 a.m. OK GNU C++14 TESTS 50 155 11673600
147448020 hhhyyyfff C Feb. 23, 2022, 11:16 a.m. OK GNU C++14 TESTS 50 156 1638400
147531141 nanatoday C Feb. 24, 2022, 4:13 a.m. OK GNU C++14 TESTS 55 156 3584000
147511153 Agnimandur C Feb. 23, 2022, 7:48 p.m. OK GNU C++17 TESTS 53 139 4403200
147460270 lddlinan C Feb. 23, 2022, 11:55 a.m. OK GNU C++17 TESTS 50 140 2560000
147443957 gary88 C Feb. 23, 2022, 11:06 a.m. OK GNU C++17 TESTS 50 140 7577600
147468542 Agreb C Feb. 23, 2022, 12:47 p.m. OK GNU C++17 TESTS 50 155 4300800
147449095 abcdhhhh C Feb. 23, 2022, 11:19 a.m. OK GNU C++17 TESTS 50 155 4403200
147490656 George_Plover C Feb. 23, 2022, 3:45 p.m. OK GNU C++17 TESTS 50 156 4710400
147474780 Celmin C Feb. 23, 2022, 1:26 p.m. OK GNU C++17 TESTS 50 171 4608000
147527083 xd435822082 C Feb. 24, 2022, 2:46 a.m. OK GNU C++17 TESTS 55 171 5632000
147476365 lichangrong C Feb. 23, 2022, 1:39 p.m. OK GNU C++17 TESTS 50 171 7577600
147532061 Hammer C Feb. 24, 2022, 4:31 a.m. OK GNU C++17 TESTS 55 171 8806400
147448352 noimi C Feb. 23, 2022, 11:17 a.m. OK GNU C++17 (64) TESTS 50 31 1945600
147455430 CE_WA_TLE C Feb. 23, 2022, 11:38 a.m. OK GNU C++17 (64) TESTS 50 78 26726400
147519029 liyh C Feb. 23, 2022, 10:46 p.m. OK GNU C++17 (64) TESTS 54 93 2457600
147536145 __Shioko C Feb. 24, 2022, 5:38 a.m. OK GNU C++17 (64) TESTS 56 109 1945600
147519141 liyh C Feb. 23, 2022, 10:49 p.m. OK GNU C++17 (64) TESTS 54 109 2457600
147472997 wcdr C Feb. 23, 2022, 1:14 p.m. OK GNU C++17 (64) TESTS 50 109 10649600
147535934 __Shioko C Feb. 24, 2022, 5:35 a.m. OK GNU C++17 (64) TESTS 56 124 1945600
147447131 liyh C Feb. 23, 2022, 11:14 a.m. OK GNU C++17 (64) TESTS 50 124 2457600
147519048 liyh C Feb. 23, 2022, 10:46 p.m. OK GNU C++17 (64) TESTS 54 124 2457600
147431185 ecnerwala C Feb. 23, 2022, 10:41 a.m. OK GNU C++17 (64) TESTS 50 124 10854400
147510013 fftea C Feb. 23, 2022, 7:33 p.m. OK GNU C++20 (64) TESTS 52 78 4812800
147532834 Sol1 C Feb. 24, 2022, 4:44 a.m. OK GNU C++20 (64) TESTS 55 78 24064000
147523818 GSHgsh C Feb. 24, 2022, 1:16 a.m. OK GNU C++20 (64) TESTS 54 93 1536000
147509770 fftea C Feb. 23, 2022, 7:29 p.m. OK GNU C++20 (64) TESTS 51 93 3072000
147456750 AsukaKyle C Feb. 23, 2022, 11:43 a.m. OK GNU C++20 (64) TESTS 50 93 3686400
147526904 A_G C Feb. 24, 2022, 2:42 a.m. OK GNU C++20 (64) TESTS 55 93 3993600
147457260 SoraKasugan0 C Feb. 23, 2022, 11:44 a.m. OK GNU C++20 (64) TESTS 50 93 6860800
147509344 fftea C Feb. 23, 2022, 7:22 p.m. OK GNU C++20 (64) TESTS 51 93 9216000
147426227 shatovoleg C Feb. 23, 2022, 10:33 a.m. OK GNU C++20 (64) TESTS 50 109 2969600
147439317 kpw29 C Feb. 23, 2022, 10:56 a.m. OK GNU C++20 (64) TESTS 50 109 2969600
147436312 insert_cool_handle C Feb. 23, 2022, 10:50 a.m. OK Java 11 TESTS 50 249 2457600
147491599 Cepera C Feb. 23, 2022, 3:54 p.m. OK Java 11 TESTS 50 326 15462400
147455102 robinz62 C Feb. 23, 2022, 11:37 a.m. OK Java 11 TESTS 50 514 6348800
147439520 uwi C Feb. 23, 2022, 10:56 a.m. OK Java 11 TESTS 50 982 59289600
147444887 Hemose C Feb. 23, 2022, 11:08 a.m. OK Java 8 TESTS 50 514 43315200
147472814 Katushechka C Feb. 23, 2022, 1:13 p.m. OK Java 8 TESTS 50 576 15360000
147439239 iakovlev.zakhar C Feb. 23, 2022, 10:56 a.m. OK Java 8 TESTS 50 607 15564800
147485879 ZerooCool C Feb. 23, 2022, 3:03 p.m. OK Java 8 TESTS 50 1013 57446400
147523594 Hakiobo C Feb. 24, 2022, 1:09 a.m. OK Kotlin 1.4 TESTS 54 311 0
147523477 Hakiobo C Feb. 24, 2022, 1:07 a.m. OK Kotlin 1.4 TESTS 54 311 0
147523665 Hakiobo C Feb. 24, 2022, 1:12 a.m. OK Kotlin 1.4 TESTS 54 326 0
147523303 Hakiobo C Feb. 24, 2022, 1:02 a.m. OK Kotlin 1.4 TESTS 54 389 0
147523105 Hakiobo C Feb. 24, 2022, 12:56 a.m. OK Kotlin 1.4 TESTS 54 389 0
147523049 Hakiobo C Feb. 24, 2022, 12:55 a.m. OK Kotlin 1.4 TESTS 54 436 6553600
147522976 Hakiobo C Feb. 24, 2022, 12:52 a.m. OK Kotlin 1.4 TESTS 54 452 6451200
147482182 arvindf232 C Feb. 23, 2022, 2:28 p.m. OK Kotlin 1.4 TESTS 50 530 15974400
147437398 Sparky_Master_WCH1226 C Feb. 23, 2022, 10:52 a.m. OK Kotlin 1.4 TESTS 50 530 15974400
147455255 darnley C Feb. 23, 2022, 11:38 a.m. OK Kotlin 1.5 TESTS 50 701 16486400
147472326 LXl491214 C Feb. 23, 2022, 1:09 p.m. OK MS C++ 2017 TESTS 50 202 1638400
147488866 ComPhyPark C Feb. 23, 2022, 3:29 p.m. OK MS C++ 2017 TESTS 50 264 7270400
147508577 OLOGY C Feb. 23, 2022, 7:10 p.m. OK PyPy 2 TESTS 51 405 23756800
147457974 NecroSean38 C Feb. 23, 2022, 11:47 a.m. OK PyPy 3 TESTS 50 452 16793600
147515038 whatshisbucket C Feb. 23, 2022, 8:59 p.m. OK PyPy 3 TESTS 54 951 28774400
147452364 tamato C Feb. 23, 2022, 11:29 a.m. OK PyPy 3-64 TESTS 50 826 69222400
147452643 Egor C Feb. 23, 2022, 11:29 a.m. OK Rust 2021 TESTS 50 93 19251200
147440813 sansen C Feb. 23, 2022, 10:59 a.m. OK Rust 2021 TESTS 50 124 8601600
147436823 qwerty787788 C Feb. 23, 2022, 10:51 a.m. OK Rust 2021 TESTS 50 124 30617600

remove filters

Back to search problems