Codeforces Round 706 (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
1495 Codeforces Round 706 (Div. 1) FINISHED False 7200 121802063 March 10, 2021, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6086 ) B Let's Go Hiking PROGRAMMING constructive algorithms games greedy implementation

B"On a weekend, Qingshan suggests that she and her friend Daniel go hiking. Unfortunately, they are busy high school students, so they can only go hiking on scratch paper. A permutation p is written from left to right on the paper. First Qingshan chooses an integer index x ( 1 <= x <= n ) and tells it to Daniel. After that, Daniel chooses another integer index y ( 1 <= y <= n , y ne x ). The game progresses turn by turn and as usual, Qingshan moves first. The rules follow: The person who can't make her or his move loses, and the other wins. You, as Qingshan's fan, are asked to calculate the number of possible x to make Qingshan win in the case both players play optimally. The first line contains a single integer n ( 2 <= n <= 10^5 ) -- the length of the permutation. The second line contains n distinct integers p_1,p_2, ... ,p_n ( 1 <= p_i <= n ) -- the permutation. Print the number of possible values of x that Qingshan can choose to make her win. In the first test case, Qingshan can only choose x=3 to win, so the answer is 1 . In the second test case, if Qingshan will choose x=4 , Daniel can choose y=1 . In the first turn (Qingshan's) Qingshan chooses x'=3 and changes x to 3 . In the second turn (Daniel's) Daniel chooses y'=2 and changes y to 2 . Qingshan can't choose x'=2 because y=2 at this time. Then Qingshan loses. "...

Tutorials

Codeforces Round #706 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
109635614 rainboy B March 10, 2021, 3:36 p.m. OK GNU C11 TESTS 30 46 1638400
109651657 fishcathu. B March 10, 2021, 6:45 p.m. OK GNU C++11 TESTS 31 15 409600
109637608 Imakf B March 10, 2021, 3:54 p.m. OK GNU C++11 TESTS 30 15 819200
109582829 LIKE0314 B March 10, 2021, 12:46 p.m. OK GNU C++11 TESTS 30 15 819200
109627468 suxxsfe B March 10, 2021, 2:40 p.m. OK GNU C++11 TESTS 30 15 1024000
109595567 Orange_JuiCE B March 10, 2021, 1:09 p.m. OK GNU C++11 TESTS 30 15 1228800
109583422 zhqwq B March 10, 2021, 12:47 p.m. OK GNU C++11 TESTS 30 15 1228800
109576121 fishcathu. B March 10, 2021, 12:36 p.m. OK GNU C++11 TESTS 30 15 1228800
109630548 myx12345 B March 10, 2021, 2:57 p.m. OK GNU C++11 TESTS 30 15 1331200
109625199 mohei0 B March 10, 2021, 2:30 p.m. OK GNU C++11 TESTS 30 15 1638400
109582424 devout B March 10, 2021, 12:45 p.m. OK GNU C++11 TESTS 30 15 1638400
109674990 kira11 B March 11, 2021, 5:49 a.m. OK GNU C++14 TESTS 31 31 819200
109630688 ish2K B March 10, 2021, 2:58 p.m. OK GNU C++14 TESTS 30 31 819200
109592862 antguz B March 10, 2021, 1:03 p.m. OK GNU C++14 TESTS 30 31 819200
109631019 TheLethalCode B March 10, 2021, 3 p.m. OK GNU C++14 TESTS 30 31 1228800
109614426 TheLethalCode B March 10, 2021, 1:48 p.m. OK GNU C++14 TESTS 30 31 1228800
109586707 nhho B March 10, 2021, 12:52 p.m. OK GNU C++14 TESTS 30 31 1228800
109575870 18380120126 B March 10, 2021, 12:35 p.m. OK GNU C++14 TESTS 30 31 1228800
109633839 y1s1 B March 10, 2021, 3:21 p.m. OK GNU C++14 TESTS 30 31 1331200
109572305 atomicenergy B March 10, 2021, 12:30 p.m. OK GNU C++14 TESTS 30 31 1331200
109626178 donentseto B March 10, 2021, 2:34 p.m. OK GNU C++14 TESTS 30 31 1536000
109589865 greenmile220 B March 10, 2021, 12:58 p.m. OK GNU C++17 TESTS 30 31 0
109673477 Kerim.K B March 11, 2021, 5:26 a.m. OK GNU C++17 TESTS 31 31 409600
109610417 dengbiantriangle B March 10, 2021, 1:39 p.m. OK GNU C++17 TESTS 30 31 409600
109587553 ooaa B March 10, 2021, 12:54 p.m. OK GNU C++17 TESTS 30 31 409600
109573718 PinkRabbit B March 10, 2021, 12:32 p.m. OK GNU C++17 TESTS 30 31 1024000
109661814 dengyipeng B March 10, 2021, 11:30 p.m. OK GNU C++17 TESTS 31 31 1228800
109650568 thilio B March 10, 2021, 6:29 p.m. OK GNU C++17 TESTS 31 31 1228800
109628291 ytkn B March 10, 2021, 2:44 p.m. OK GNU C++17 TESTS 30 31 1228800
109615275 spacewalker B March 10, 2021, 1:50 p.m. OK GNU C++17 TESTS 30 31 1228800
109602407 Starry B March 10, 2021, 1:23 p.m. OK GNU C++17 TESTS 30 31 1228800
109574482 VLamarca B March 10, 2021, 12:33 p.m. OK GNU C++17 (64) TESTS 30 30 1228800
109648222 timreizin B March 10, 2021, 5:56 p.m. OK GNU C++17 (64) TESTS 31 30 1536000
109589966 yosupo B March 10, 2021, 12:58 p.m. OK GNU C++17 (64) TESTS 30 30 2048000
109628607 solaimanope B March 10, 2021, 2:45 p.m. OK GNU C++17 (64) TESTS 30 30 2355200
109594518 the_hyp0cr1t3 B March 10, 2021, 1:07 p.m. OK GNU C++17 (64) TESTS 30 30 2867200
109578820 sotanishy B March 10, 2021, 12:40 p.m. OK GNU C++17 (64) TESTS 30 30 2867200
109566509 NotaMotuaQAQ B March 10, 2021, 12:21 p.m. OK GNU C++17 (64) TESTS 30 30 5427200
109644679 birka0 B March 10, 2021, 5:11 p.m. OK GNU C++17 (64) TESTS 30 31 409600
109584068 Quang B March 10, 2021, 12:48 p.m. OK GNU C++17 (64) TESTS 30 31 409600
109624954 physics0523 B March 10, 2021, 2:29 p.m. OK GNU C++17 (64) TESTS 30 31 819200
109633126 0x3F B March 10, 2021, 3:15 p.m. OK Go TESTS 30 77 409600
109634028 0x3F B March 10, 2021, 3:22 p.m. OK Go TESTS 30 78 409600
109632903 0x3F B March 10, 2021, 3:13 p.m. OK Go TESTS 30 78 5017600
109570800 uwi B March 10, 2021, 12:28 p.m. OK Java 11 TESTS 30 202 0
109629200 yuruiyin B March 10, 2021, 2:49 p.m. OK Java 11 TESTS 30 202 0
109655052 decoder_1671 B March 10, 2021, 7:42 p.m. OK Java 11 TESTS 31 233 25395200
109573411 dalt B March 10, 2021, 12:31 p.m. OK Java 8 TESTS 30 124 0
109659918 mkosm B March 10, 2021, 10:02 p.m. OK Java 8 TESTS 31 124 0
109649875 fetetriste B March 10, 2021, 6:20 p.m. OK Java 8 TESTS 31 124 0
109583871 AdhmMohamed B March 10, 2021, 12:48 p.m. OK Java 8 TESTS 30 124 0
109620418 TheSawan B March 10, 2021, 2 p.m. OK Java 8 TESTS 30 139 3993600
109580836 YahiaSherif B March 10, 2021, 12:43 p.m. OK Java 8 TESTS 30 140 0
109648628 2020akadaver B March 10, 2021, 6:02 p.m. OK Java 8 TESTS 31 140 0
109593641 hu_tao B March 10, 2021, 1:05 p.m. OK Java 8 TESTS 30 140 0
109674368 aggarwalanshul01 B March 11, 2021, 5:40 a.m. OK Java 8 TESTS 31 140 307200
109675273 programbhavan B March 11, 2021, 5:53 a.m. OK Java 8 TESTS 31 217 0
109610039 Hakiobo B March 10, 2021, 1:39 p.m. OK Kotlin TESTS 30 155 0
109573822 arvindf232 B March 10, 2021, 12:32 p.m. OK Kotlin TESTS 30 155 1536000
109580509 Tlatoani B March 10, 2021, 12:42 p.m. OK Kotlin TESTS 30 202 5427200
109609207 Yamatan B March 10, 2021, 1:37 p.m. OK MS C++ 2017 TESTS 30 46 1228800
109667714 2017gdgzoi1539 B March 11, 2021, 3:20 a.m. OK MS C++ 2017 TESTS 31 46 2048000
109664076 qing_lin B March 11, 2021, 1:20 a.m. OK MS C++ 2017 TESTS 31 77 1433600
109581242 Timonnable B March 10, 2021, 12:43 p.m. OK MS C++ 2017 TESTS 30 78 1331200
109649464 serg3000 B March 10, 2021, 6:14 p.m. OK MS C++ 2017 TESTS 31 78 2457600
109663746 JeriLee B March 11, 2021, 1:06 a.m. OK MS C++ 2017 TESTS 31 93 1228800
109589574 mban259 B March 10, 2021, 12:57 p.m. OK .NET Core C# TESTS 30 109 7884800
109570077 bcollet B March 10, 2021, 12:26 p.m. OK PyPy 2 TESTS 30 93 7168000
109586026 kclee2172 B March 10, 2021, 12:51 p.m. OK PyPy 3 TESTS 30 109 10342400
109628056 yuusanlondon B March 10, 2021, 2:43 p.m. OK PyPy 3 TESTS 30 124 7987200
109625588 FlakeLCR B March 10, 2021, 2:31 p.m. OK PyPy 3 TESTS 30 124 8499200
109615304 at_f B March 10, 2021, 1:50 p.m. OK PyPy 3 TESTS 30 139 10649600
109582694 googol_S0 B March 10, 2021, 12:46 p.m. OK PyPy 3 TESTS 30 140 7884800
109603734 mkawa2 B March 10, 2021, 1:26 p.m. OK PyPy 3 TESTS 30 140 74956800
109585215 tamato B March 10, 2021, 12:50 p.m. OK PyPy 3 TESTS 30 155 10240000
109601477 arihant72600 B March 10, 2021, 1:21 p.m. OK PyPy 3 TESTS 30 155 10342400
109584525 titia B March 10, 2021, 12:49 p.m. OK PyPy 3 TESTS 30 155 10649600
109628894 FlakeLCR B March 10, 2021, 2:47 p.m. OK PyPy 3 TESTS 30 155 10956800
109626695 sansen B March 10, 2021, 2:36 p.m. OK Rust TESTS 30 31 2355200
109597134 hiratai B March 10, 2021, 1:12 p.m. OK Rust TESTS 30 31 3379200
109588271 shino16 B March 10, 2021, 12:55 p.m. OK Rust TESTS 30 31 36761600
109610442 ngtkana B March 10, 2021, 1:39 p.m. OK Rust TESTS 30 46 4915200

remove filters

Back to search problems