Codeforces Round 850 (Div. 2, based on VK Cup 2022 - Final Round)

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
1786 Codeforces Round 850 (Div. 2, based on VK Cup 2022 - Final Round) FINISHED False 10800 61667663 Feb. 5, 2023, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14177 ) A1 Non-alternating Deck (easy version) PROGRAMMING implementation

B"This is an easy version of the problem. In this version, all cards have the same color. Alice has n cards, each card is white, and the cards are stacked in a deck. Alice deals the cards to herself and to Bob, dealing at once several cards from the top of the deck in the following order: one card to herself, two cards to Bob, three cards to Bob, four cards to herself, five cards to herself, six cards to Bob, seven cards to Bob, eight cards to herself, and so on. In other words, on the i -th step, Alice deals i top cards from the deck to one of the players; on the first step, she deals the cards to herself and then alternates the players every two steps. When there aren't enough cards at some step, Alice deals all the remaining cards to the current player, and the process stops. How many cards will Alice and Bob have at the end? Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 200 ). The description of the test cases follows The only line of each test case contains a single integer n ( 1 <= n <= 10^6 ) -- the number of cards. For each test case print two integers -- the number of cards in the end for each player -- in this order: cards Alice has, cards Bob has. "...

Tutorials

Codeforces Round #850 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
192404635 nksammirPL A1 Feb. 5, 2023, 11:23 p.m. OK C# 10 TESTS 5 31 0
192393089 PavolKoman A1 Feb. 5, 2023, 8:30 p.m. OK C# 10 TESTS 5 31 204800
192396139 PavolKoman A1 Feb. 5, 2023, 9:08 p.m. OK C# 10 TESTS 5 46 102400
192383375 NenadDapic A1 Feb. 5, 2023, 6:46 p.m. OK FPC TESTS 5 15 102400
192348190 klu_2100031810 A1 Feb. 5, 2023, 2:53 p.m. OK GNU C11 TESTS 5 0 0
192368176 Has-Borutocu A1 Feb. 5, 2023, 4:45 p.m. OK GNU C11 TESTS 5 15 0
192368492 mmegg A1 Feb. 5, 2023, 4:47 p.m. OK GNU C11 TESTS 5 15 0
192377398 under_cover_ A1 Feb. 5, 2023, 5:56 p.m. OK GNU C11 TESTS 5 15 0
192363775 4941__PIYUSH A1 Feb. 5, 2023, 4:16 p.m. OK GNU C11 TESTS 5 15 0
192380096 SP2003 A1 Feb. 5, 2023, 6:18 p.m. OK GNU C11 TESTS 5 15 0
192386428 _M7s3c7 A1 Feb. 5, 2023, 7:16 p.m. OK GNU C11 TESTS 5 15 0
192397658 iffatul_anon A1 Feb. 5, 2023, 9:30 p.m. OK GNU C11 TESTS 5 15 0
192409427 azizulislamch A1 Feb. 6, 2023, 1:12 a.m. OK GNU C11 TESTS 6 15 0
192422685 Ashwin_agr A1 Feb. 6, 2023, 5:15 a.m. OK GNU C11 TESTS 6 15 0
192418392 zly2009 A1 Feb. 6, 2023, 4:06 a.m. OK GNU C++14 TESTS 6 0 0
192417841 LiangXXX A1 Feb. 6, 2023, 3:56 a.m. OK GNU C++14 TESTS 6 0 0
192417829 yuanruiqi A1 Feb. 6, 2023, 3:56 a.m. OK GNU C++14 TESTS 6 0 0
192417425 kausar_ahamed A1 Feb. 6, 2023, 3:49 a.m. OK GNU C++14 TESTS 6 0 0
192417296 Rosemary A1 Feb. 6, 2023, 3:47 a.m. OK GNU C++14 TESTS 6 0 0
192425602 blstutu A1 Feb. 6, 2023, 5:53 a.m. OK GNU C++14 TESTS 6 0 0
192421573 Subhadeep_Mondal A1 Feb. 6, 2023, 4:59 a.m. OK GNU C++14 TESTS 6 0 0
192420813 Vamshi24 A1 Feb. 6, 2023, 4:46 a.m. OK GNU C++14 TESTS 6 0 0
192420325 mahdi.seddigh A1 Feb. 6, 2023, 4:38 a.m. OK GNU C++14 TESTS 6 0 0
192418396 luogu_bot2 A1 Feb. 6, 2023, 4:06 a.m. OK GNU C++14 TESTS 6 0 0
192423301 devanshmishra111 A1 Feb. 6, 2023, 5:23 a.m. OK GNU C++17 TESTS 6 0 0
192423797 priyanshu_30 A1 Feb. 6, 2023, 5:30 a.m. OK GNU C++17 TESTS 6 0 0
192425128 hibye1217 A1 Feb. 6, 2023, 5:47 a.m. OK GNU C++17 TESTS 6 0 0
192425279 Abhishek1212003 A1 Feb. 6, 2023, 5:49 a.m. OK GNU C++17 TESTS 6 0 0
192426110 daksh_raj A1 Feb. 6, 2023, 5:59 a.m. OK GNU C++17 TESTS 6 0 0
192423124 HumbleHuman A1 Feb. 6, 2023, 5:21 a.m. OK GNU C++17 TESTS 6 0 0
192422020 _hsn_ A1 Feb. 6, 2023, 5:06 a.m. OK GNU C++17 TESTS 6 0 0
192421794 tonyZ A1 Feb. 6, 2023, 5:03 a.m. OK GNU C++17 TESTS 6 0 0
192421659 Mehedi_34 A1 Feb. 6, 2023, 5:01 a.m. OK GNU C++17 TESTS 6 0 0
192421589 Aref_Adibian20 A1 Feb. 6, 2023, 4:59 a.m. OK GNU C++17 TESTS 6 0 0
192425421 dacoder23 A1 Feb. 6, 2023, 5:51 a.m. OK GNU C++17 (64) TESTS 6 0 0
192424896 GudeGude A1 Feb. 6, 2023, 5:44 a.m. OK GNU C++17 (64) TESTS 6 0 0
192424437 fojlerabbi2829 A1 Feb. 6, 2023, 5:38 a.m. OK GNU C++17 (64) TESTS 6 0 0
192420831 WUUUUDI A1 Feb. 6, 2023, 4:46 a.m. OK GNU C++17 (64) TESTS 6 0 0
192420606 Physics212303 A1 Feb. 6, 2023, 4:43 a.m. OK GNU C++17 (64) TESTS 6 0 0
192418137 Ztone_Master78 A1 Feb. 6, 2023, 4:01 a.m. OK GNU C++17 (64) TESTS 6 0 0
192418080 kk_d A1 Feb. 6, 2023, 4 a.m. OK GNU C++17 (64) TESTS 6 0 0
192417709 gluchie A1 Feb. 6, 2023, 3:54 a.m. OK GNU C++17 (64) TESTS 6 0 0
192414048 yemuzhe A1 Feb. 6, 2023, 2:49 a.m. OK GNU C++17 (64) TESTS 6 0 0
192412575 1706993560 A1 Feb. 6, 2023, 2:22 a.m. OK GNU C++17 (64) TESTS 6 0 0
192424040 _cspill A1 Feb. 6, 2023, 5:33 a.m. OK GNU C++20 (64) TESTS 6 0 0
192424271 dhruvjha A1 Feb. 6, 2023, 5:36 a.m. OK GNU C++20 (64) TESTS 6 0 0
192425065 Z_ZZ A1 Feb. 6, 2023, 5:46 a.m. OK GNU C++20 (64) TESTS 6 0 0
192425332 momoyash A1 Feb. 6, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 6 0 0
192425579 maxus_red A1 Feb. 6, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 6 0 0
192425754 yuanhaowei A1 Feb. 6, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 6 0 0
192425794 imtiyazrasool92 A1 Feb. 6, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 6 0 0
192426171 1000B A1 Feb. 6, 2023, 6 a.m. OK GNU C++20 (64) TESTS 6 0 0
192426220 Chitraa A1 Feb. 6, 2023, 6 a.m. OK GNU C++20 (64) TESTS 6 0 0
192426281 ikepyon A1 Feb. 6, 2023, 6:01 a.m. OK GNU C++20 (64) TESTS 6 0 0
192416703 mohito22 A1 Feb. 6, 2023, 3:36 a.m. OK Go TESTS 6 15 0
192413233 july_tang A1 Feb. 6, 2023, 2:34 a.m. OK Go TESTS 6 15 0
192395658 as9274 A1 Feb. 5, 2023, 9:02 p.m. OK Java 11 TESTS 5 171 0
192380783 TrailBlazer A1 Feb. 5, 2023, 6:24 p.m. OK Java 11 TESTS 5 171 0
192423514 ramuked A1 Feb. 6, 2023, 5:26 a.m. OK Java 11 TESTS 6 186 0
192375777 rajgupta77540 A1 Feb. 5, 2023, 5:43 p.m. OK Java 11 TESTS 5 186 0
192387414 wat2 A1 Feb. 5, 2023, 7:25 p.m. OK Java 11 TESTS 5 187 0
192368810 Dodzii74 A1 Feb. 5, 2023, 4:49 p.m. OK Java 11 TESTS 5 187 0
192386544 pyronto A1 Feb. 5, 2023, 7:17 p.m. OK Java 11 TESTS 5 202 0
192406761 dani450 A1 Feb. 6, 2023, 12:10 a.m. OK Java 11 TESTS 5 202 0
192384991 shahpppp A1 Feb. 5, 2023, 7:02 p.m. OK Java 11 TESTS 5 202 0
192377772 yogesg_25 A1 Feb. 5, 2023, 5:59 p.m. OK Java 11 TESTS 5 202 0
192341723 shivanshu_100 A1 Feb. 5, 2023, 2:28 p.m. OK Java 17 TESTS 5 202 512000
192402471 AdamElmadani A1 Feb. 5, 2023, 10:42 p.m. OK Java 17 TESTS 5 217 614400
192344801 vismay__yerunkar A1 Feb. 5, 2023, 2:40 p.m. OK Java 17 TESTS 5 217 614400
192384428 kaifkhan. A1 Feb. 5, 2023, 6:56 p.m. OK Java 17 TESTS 5 218 307200
192381122 balajirudrawar123 A1 Feb. 5, 2023, 6:26 p.m. OK Java 17 TESTS 5 218 307200
192379229 manish47 A1 Feb. 5, 2023, 6:11 p.m. OK Java 17 TESTS 5 218 409600
192379501 PrudhviRao15 A1 Feb. 5, 2023, 6:13 p.m. OK Java 17 TESTS 5 218 512000
192363462 massvinod A1 Feb. 5, 2023, 4:14 p.m. OK Java 17 TESTS 5 233 819200
192370728 Henilpatel001 A1 Feb. 5, 2023, 5:03 p.m. OK Java 17 TESTS 5 249 307200
192411234 Suraj1607 A1 Feb. 6, 2023, 1:54 a.m. OK Java 17 TESTS 6 249 409600
192423288 harry_122 A1 Feb. 6, 2023, 5:23 a.m. OK Java 8 TESTS 6 92 0
192425315 r1cky A1 Feb. 6, 2023, 5:50 a.m. OK Java 8 TESTS 6 93 0
192423809 lpychemistry A1 Feb. 6, 2023, 5:30 a.m. OK Java 8 TESTS 6 93 0
192406202 megaspazz A1 Feb. 5, 2023, 11:59 p.m. OK Java 8 TESTS 5 93 0
192401247 Mohamed_Ahmed A1 Feb. 5, 2023, 10:23 p.m. OK Java 8 TESTS 5 93 0
192382328 ak_ankit A1 Feb. 5, 2023, 6:37 p.m. OK Java 8 TESTS 5 93 0
192371785 soyebsarkar A1 Feb. 5, 2023, 5:11 p.m. OK Java 8 TESTS 5 93 0
192334992 m04tiria A1 Feb. 5, 2023, 2:03 p.m. OK Java 8 TESTS 5 109 0
192425087 MustafaMahmoud15 A1 Feb. 6, 2023, 5:47 a.m. OK Java 8 TESTS 6 124 0
192377125 harishkumarn A1 Feb. 5, 2023, 5:54 p.m. OK Java 8 TESTS 5 124 0
192369995 Krantzy A1 Feb. 5, 2023, 4:57 p.m. OK Kotlin 1.7 TESTS 5 233 0
192370697 lcj0123 A1 Feb. 5, 2023, 5:02 p.m. OK MS C++ 2017 TESTS 5 0 0
192332775 jasonli0302 A1 Feb. 5, 2023, 1:57 p.m. OK MS C++ 2017 TESTS 5 0 0
192407472 lqj A1 Feb. 6, 2023, 12:26 a.m. OK MS C++ 2017 TESTS 5 15 0
192394529 waleedalaa511 A1 Feb. 5, 2023, 8:48 p.m. OK MS C++ 2017 TESTS 5 15 0
192378150 soykan_ozcan A1 Feb. 5, 2023, 6:02 p.m. OK MS C++ 2017 TESTS 5 15 0
192377104 Yychen A1 Feb. 5, 2023, 5:54 p.m. OK MS C++ 2017 TESTS 5 15 0
192376344 dhvanii A1 Feb. 5, 2023, 5:48 p.m. OK MS C++ 2017 TESTS 5 15 0
192374038 CHARAN_REDDIE A1 Feb. 5, 2023, 5:29 p.m. OK MS C++ 2017 TESTS 5 15 0
192342122 dykhanovaa A1 Feb. 5, 2023, 2:29 p.m. OK MS C++ 2017 TESTS 5 15 0
192340968 WhyYes A1 Feb. 5, 2023, 2:25 p.m. OK MS C++ 2017 TESTS 5 15 0
192371503 misorin A1 Feb. 5, 2023, 5:09 p.m. OK PyPy 3 TESTS 5 77 1433600
192346070 Andy_Huo A1 Feb. 5, 2023, 2:44 p.m. OK PyPy 3 TESTS 5 77 9011200
192346750 LazyRGuy A1 Feb. 5, 2023, 2:47 p.m. OK PyPy 3 TESTS 5 92 1843200
192371332 JUBHAI A1 Feb. 5, 2023, 5:07 p.m. OK PyPy 3 TESTS 5 93 1433600
192357357 hxu10 A1 Feb. 5, 2023, 4:10 p.m. OK PyPy 3 TESTS 5 93 1536000
192412237 bpdolson A1 Feb. 6, 2023, 2:16 a.m. OK PyPy 3 TESTS 6 93 1638400
192395919 hxu10 A1 Feb. 5, 2023, 9:06 p.m. OK PyPy 3 TESTS 5 108 1536000
192387254 gardengnome A1 Feb. 5, 2023, 7:24 p.m. OK PyPy 3-64 TESTS 5 61 0
192363685 AndreiZherder A1 Feb. 5, 2023, 4:16 p.m. OK PyPy 3-64 TESTS 5 61 1536000
192342948 FaTKat A1 Feb. 5, 2023, 2:32 p.m. OK PyPy 3-64 TESTS 5 61 1536000
192384485 Andaloo A1 Feb. 5, 2023, 6:57 p.m. OK PyPy 3-64 TESTS 5 61 1740800
192357161 xrust A1 Feb. 5, 2023, 4:09 p.m. OK PyPy 3-64 TESTS 5 61 1843200
192364685 ankit_x A1 Feb. 5, 2023, 4:22 p.m. OK PyPy 3-64 TESTS 5 61 2457600
192400369 philip.hy.xu A1 Feb. 5, 2023, 10:09 p.m. OK PyPy 3-64 TESTS 5 62 0
192344580 ilvfruits A1 Feb. 5, 2023, 2:39 p.m. OK PyPy 3-64 TESTS 5 62 0
192377836 Amdadul A1 Feb. 5, 2023, 6 p.m. OK PyPy 3-64 TESTS 5 62 1536000
192399135 crapcode A1 Feb. 5, 2023, 9:50 p.m. OK PyPy 3-64 TESTS 5 62 1638400
192374560 vivek_.kumar A1 Feb. 5, 2023, 5:33 p.m. OK Python 3 TESTS 5 46 0
192350636 Pakgamer2022 A1 Feb. 5, 2023, 3:02 p.m. OK Python 3 TESTS 5 46 0
192348187 mayday200295 A1 Feb. 5, 2023, 2:53 p.m. OK Python 3 TESTS 5 46 0
192336649 vedantmishra69 A1 Feb. 5, 2023, 2:08 p.m. OK Python 3 TESTS 5 46 0
192364070 Sakurama A1 Feb. 5, 2023, 4:18 p.m. OK Python 3 TESTS 5 78 0
192333378 Kwh123 A1 Feb. 5, 2023, 1:59 p.m. OK Python 3 TESTS 5 78 0
192381876 mkvazowski A1 Feb. 5, 2023, 6:33 p.m. OK Python 3 TESTS 5 93 0
192370251 dshindov A1 Feb. 5, 2023, 4:59 p.m. OK Python 3 TESTS 5 93 0
192368277 Yevsieiev_Mykyta A1 Feb. 5, 2023, 4:45 p.m. OK Python 3 TESTS 5 93 0
192391839 nik_enjoy A1 Feb. 5, 2023, 8:15 p.m. OK Python 3 TESTS 5 109 0
192416203 abellaismail A1 Feb. 6, 2023, 3:27 a.m. OK Rust 2021 TESTS 6 15 0
192394045 abellaismail A1 Feb. 5, 2023, 8:42 p.m. OK Rust 2021 TESTS 5 15 0

remove filters

Back to search problems