Codeforces Round 876 (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
1839 Codeforces Round 876 (Div. 2) FINISHED False 7200 51377063 June 3, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1262 ) E Decreasing Game PROGRAMMING constructive algorithms dp greedy interactive

B'This is an interactive problem. Consider the following game for two players: It can be shown that game always ends after the finite number of rounds. You have to select which player you will play for (first or second) and win the game. The first line contains a single integer n ( 1 <= n <= 300 ) -- the length of array a . The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 300 ) -- array a . Interaction begins after reading n and array a . You should start interaction by printing a single line, containing either "First" or "Second", representing the player you select. On each round, the following happens: If j = -1 , then you made an incorrect move. In this case your program should terminate immediately. If j = 0 , then the second player can 't make a correct move and you win the game. In this case your program should also terminate immediately. Otherwise j is equal to the index chosen by the second player, and you should proceed to the next round. If i = -1 , then you made an incorrect move on the previous round (this cannot happen on the first round). In that case your program should terminate immediately. If i = 0 , then the first player can 't make a correct move and you win the game. In this case your program should also terminate immediately. Otherwise i is equal to the index chosen by first player. In this case you should write single integer j ( 1 <= j <= n ) on a separate line and proceed to the next round. After printing i or j , do not forget to output the end of line and flush the output. Otherwise, you will get Idleness limit exceeded. To do this, use: Hacks Hacks are disabled in this problem. In the first example n = 4 and array a is [ , 10, 4, 6, 3 ,] . The game goes as follows: In the second example n = 6 and array a is [ , 4, 5, 5, 11, 3, 2 ,] . The game goes as follows: Note'...

Tutorials

Codeforces Round #876 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
208380092 Lucky-Xiang E June 4, 2023, 3:29 a.m. OK GNU C++14 TESTS 45 30 119398400
208379959 icyM3tra E June 4, 2023, 3:26 a.m. OK GNU C++14 TESTS 45 31 512000
208336726 Coryc1e E June 3, 2023, 4:02 p.m. OK GNU C++14 TESTS 45 31 716800
208367508 keep1earning E June 3, 2023, 8:52 p.m. OK GNU C++14 TESTS 45 31 1126400
208376751 xuanxuan001 E June 4, 2023, 2:06 a.m. OK GNU C++14 TESTS 45 31 3379200
208376725 xuanxuan001 E June 4, 2023, 2:06 a.m. OK GNU C++14 TESTS 45 31 3379200
208343599 xyzt2000 E June 3, 2023, 4:26 p.m. OK GNU C++14 TESTS 45 31 3584000
208360482 siddharthjoshi120 E June 3, 2023, 6:58 p.m. OK GNU C++14 TESTS 45 31 13926400
208350240 carnation13 E June 3, 2023, 5:10 p.m. OK GNU C++14 TESTS 45 31 18534400
208345729 carnation13_2 E June 3, 2023, 4:33 p.m. OK GNU C++14 TESTS 45 31 18534400
208344681 zas111lll E June 3, 2023, 4:29 p.m. OK GNU C++17 TESTS 45 15 307200
208382305 NKheyuxiang E June 4, 2023, 4:17 a.m. OK GNU C++17 TESTS 45 30 819200
208351210 patou E June 3, 2023, 5:18 p.m. OK GNU C++17 TESTS 45 30 3788800
208349361 drath10 E June 3, 2023, 5:05 p.m. OK GNU C++17 TESTS 45 30 13721600
208348112 ethening E June 3, 2023, 4:58 p.m. OK GNU C++17 TESTS 45 31 204800
208356126 archiver E June 3, 2023, 6:06 p.m. OK GNU C++17 TESTS 45 31 512000
208372782 Soultaker E June 3, 2023, 11:33 p.m. OK GNU C++17 TESTS 45 31 716800
208341230 LLyw6 E June 3, 2023, 4:17 p.m. OK GNU C++17 TESTS 45 31 716800
208372770 Soultaker E June 3, 2023, 11:33 p.m. OK GNU C++17 TESTS 45 31 1024000
208379630 rqoi031 E June 4, 2023, 3:19 a.m. OK GNU C++17 TESTS 45 31 1433600
208383112 rniya E June 4, 2023, 4:35 a.m. OK GNU C++17 (64) TESTS 45 15 409600
208352030 neal E June 3, 2023, 5:25 p.m. OK GNU C++17 (64) TESTS 45 15 1740800
208377876 gluchie E June 4, 2023, 2:35 a.m. OK GNU C++17 (64) TESTS 45 31 409600
208351894 m.cpp E June 3, 2023, 5:24 p.m. OK GNU C++17 (64) TESTS 45 31 409600
208379447 Irmuun.Ch E June 4, 2023, 3:15 a.m. OK GNU C++17 (64) TESTS 45 31 1433600
208370496 MaGnsi0 E June 3, 2023, 10:04 p.m. OK GNU C++17 (64) TESTS 45 31 3481600
208341484 nicksms E June 3, 2023, 4:18 p.m. OK GNU C++17 (64) TESTS 45 31 22016000
208353122 iLLusio E June 3, 2023, 5:36 p.m. OK GNU C++17 (64) TESTS 45 31 28467200
208343663 EnEm E June 3, 2023, 4:26 p.m. OK GNU C++17 (64) TESTS 45 31 28467200
208334003 YocyCraft E June 3, 2023, 3:53 p.m. OK GNU C++17 (64) TESTS 45 46 3686400
208334551 JoesSR E June 3, 2023, 3:55 p.m. OK GNU C++20 (64) TESTS 45 15 3481600
208336016 lsantire E June 3, 2023, 3:59 p.m. OK GNU C++20 (64) TESTS 45 15 13516800
208336294 CaiLiyi E June 3, 2023, 4 p.m. OK GNU C++20 (64) TESTS 45 30 307200
208379452 flashmt E June 4, 2023, 3:15 a.m. OK GNU C++20 (64) TESTS 45 30 1740800
208351155 YouKn0wWho E June 3, 2023, 5:17 p.m. OK GNU C++20 (64) TESTS 45 30 3584000
208340798 A.D. E June 3, 2023, 4:16 p.m. OK GNU C++20 (64) TESTS 45 30 3686400
208341647 Cosmicoder E June 3, 2023, 4:19 p.m. OK GNU C++20 (64) TESTS 45 30 13824000
208334852 stkwill E June 3, 2023, 3:56 p.m. OK GNU C++20 (64) TESTS 45 31 102400
208364786 kaiboy E June 3, 2023, 8:04 p.m. OK GNU C++20 (64) TESTS 45 31 204800
208355169 Ckcyi E June 3, 2023, 5:56 p.m. OK GNU C++20 (64) TESTS 45 31 204800
208358981 RMA-NB E June 3, 2023, 6:37 p.m. OK Java 17 TESTS 45 265 819200
208378809 tong96 E June 4, 2023, 3:01 a.m. OK Java 8 TESTS 45 140 15974400
208341579 misorin E June 3, 2023, 4:18 p.m. OK PyPy 3 TESTS 45 202 2355200
208368768 Ayush710 E June 3, 2023, 9:18 p.m. OK PyPy 3-64 TESTS 45 156 2867200
208368705 Ayush710 E June 3, 2023, 9:17 p.m. OK PyPy 3-64 TESTS 45 171 2969600
208375750 sunhokim E June 4, 2023, 1:34 a.m. OK PyPy 3-64 TESTS 45 186 3891200
208375888 sunhokim E June 4, 2023, 1:39 a.m. OK PyPy 3-64 TESTS 45 202 3891200
208369314 codicon E June 3, 2023, 9:31 p.m. OK PyPy 3-64 TESTS 45 218 30617600
208347840 petamingks E June 3, 2023, 4:57 p.m. OK PyPy 3-64 TESTS 45 483 121651200
208368758 huikang E June 3, 2023, 9:18 p.m. OK PyPy 3-64 TESTS 45 1169 113254400
208352345 magnus.hegdahl E June 3, 2023, 5:28 p.m. OK Rust 2021 TESTS 45 46 819200
208374253 codelegend E June 4, 2023, 12:37 a.m. OK Rust 2021 TESTS 45 93 1433600

remove filters

Back to search problems