Codeforces Round 930 (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
1937 Codeforces Round 930 (Div. 2) FINISHED False 7200 22605899 Feb. 29, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23218 ) A Shuffle Party PROGRAMMING implementation math

B'You are given an array a_1, a_2, ldots, a_n . Initially, a_i=i for each 1 <= i <= n . The operation texttt{swap}(k) for an integer k ge 2 is defined as follows: Suppose you perform texttt{swap}(i) for each i=2,3, ldots, n in this exact order. Find the position of 1 in the resulting array. In other words, find such j that a_j = 1 after performing these operations. ^ dagger An integer x is a divisor of y if there exists an integer z such that y = x cdot z . Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^4 ). The description of the test cases follows. The only line of each test case contains one integer n ( 1 <= n <= 10^9 ) -- the length of the array a . For each test case, output the position of 1 in the resulting array. In the first test case, the array is [1] and there are no operations performed. In the second test case, a changes as follows: Finally, the element 1 lies on index 4 (that is, a_4 = 1 ). Thus, the answer is 4 . '...

Tutorials

Codeforces Round 930 (Div. 1, Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
248995089 Suman_Mandol A Feb. 29, 2024, 8:21 p.m. OK C# 10 TESTS 6 93 512000
249003732 bluemegane A Feb. 29, 2024, 10:29 p.m. OK C# 8 TESTS 6 171 921600
248962397 Anthonylons A Feb. 29, 2024, 4:16 p.m. OK GNU C11 TESTS 6 30 307200
249026390 mdkhaledmhamud220 A March 1, 2024, 4:57 a.m. OK GNU C11 TESTS 6 46 0
248988615 idcmansry A Feb. 29, 2024, 7:24 p.m. OK GNU C11 TESTS 6 46 0
248965106 kavin_kishore A Feb. 29, 2024, 4:21 p.m. OK GNU C11 TESTS 6 46 307200
249029190 sobujpaul1 A March 1, 2024, 5:25 a.m. OK GNU C11 TESTS 6 46 307200
248967938 renish_dsouza A Feb. 29, 2024, 4:27 p.m. OK GNU C11 TESTS 6 46 307200
248965429 vivitha17m A Feb. 29, 2024, 4:22 p.m. OK GNU C11 TESTS 6 61 0
248966667 its_shrasti A Feb. 29, 2024, 4:25 p.m. OK GNU C11 TESTS 6 61 0
249026064 noobcoder189 A March 1, 2024, 4:54 a.m. OK GNU C11 TESTS 6 61 0
248971951 Vibhanshu007 A Feb. 29, 2024, 4:34 p.m. OK GNU C11 TESTS 6 62 0
248967059 Levi_coder07 A Feb. 29, 2024, 4:25 p.m. OK GNU C++17 TESTS 6 0 204800
249028689 zoro_ar_k A March 1, 2024, 5:20 a.m. OK GNU C++17 TESTS 6 15 0
249030965 -DIVYARAJSINH- A March 1, 2024, 5:42 a.m. OK GNU C++17 TESTS 6 15 0
249032867 arth56 A March 1, 2024, 5:59 a.m. OK GNU C++17 TESTS 6 15 0
249032307 nemesis_xo A March 1, 2024, 5:54 a.m. OK GNU C++17 TESTS 6 15 0
249032247 anain829 A March 1, 2024, 5:53 a.m. OK GNU C++17 TESTS 6 15 0
249031954 SaltyDonut A March 1, 2024, 5:51 a.m. OK GNU C++17 TESTS 6 15 0
249031680 _Abdallah_Mohammed A March 1, 2024, 5:49 a.m. OK GNU C++17 TESTS 6 15 0
249031661 Piger2 A March 1, 2024, 5:48 a.m. OK GNU C++17 TESTS 6 15 0
249029122 long_long_hardle A March 1, 2024, 5:24 a.m. OK GNU C++17 TESTS 6 15 0
249025222 ThinkTank30 A March 1, 2024, 4:45 a.m. OK GNU C++17 (64) TESTS 6 0 0
249028840 Shah59 A March 1, 2024, 5:22 a.m. OK GNU C++17 (64) TESTS 6 15 0
249027303 Md_Minhaj A March 1, 2024, 5:07 a.m. OK GNU C++17 (64) TESTS 6 15 0
249026588 Xezrio A March 1, 2024, 4:59 a.m. OK GNU C++17 (64) TESTS 6 15 0
249025138 FangYifan A March 1, 2024, 4:44 a.m. OK GNU C++17 (64) TESTS 6 15 0
249023780 yanhau A March 1, 2024, 4:26 a.m. OK GNU C++17 (64) TESTS 6 15 0
249022479 cloud_fly A March 1, 2024, 4:11 a.m. OK GNU C++17 (64) TESTS 6 15 0
249022431 JML A March 1, 2024, 4:10 a.m. OK GNU C++17 (64) TESTS 6 15 0
249022051 Ackhava A March 1, 2024, 4:05 a.m. OK GNU C++17 (64) TESTS 6 15 0
249020193 MD_ABU_RAYHAN A March 1, 2024, 3:42 a.m. OK GNU C++17 (64) TESTS 6 15 0
249029100 jtmaster1000 A March 1, 2024, 5:24 a.m. OK GNU C++20 (64) TESTS 6 0 0
249032557 Zinc-acetate A March 1, 2024, 5:56 a.m. OK GNU C++20 (64) TESTS 6 0 0
249032102 CodeHarshly7906 A March 1, 2024, 5:52 a.m. OK GNU C++20 (64) TESTS 6 0 0
249031718 Shubham.Jain A March 1, 2024, 5:49 a.m. OK GNU C++20 (64) TESTS 6 0 0
249031087 Aryan_Shrivastava A March 1, 2024, 5:43 a.m. OK GNU C++20 (64) TESTS 6 0 0
249030773 zen11 A March 1, 2024, 5:40 a.m. OK GNU C++20 (64) TESTS 6 0 0
249030402 Dinmukhammed-M-004-2027 A March 1, 2024, 5:37 a.m. OK GNU C++20 (64) TESTS 6 0 0
249030355 kjhhjki A March 1, 2024, 5:36 a.m. OK GNU C++20 (64) TESTS 6 0 0
249029886 dragoon_Tyson A March 1, 2024, 5:32 a.m. OK GNU C++20 (64) TESTS 6 0 0
249029531 mikko_mikust A March 1, 2024, 5:28 a.m. OK GNU C++20 (64) TESTS 6 0 0
249028768 piyush_tanmay A March 1, 2024, 5:21 a.m. OK Go TESTS 6 46 204800
248985333 am2003_ A Feb. 29, 2024, 7:01 p.m. OK Java 21 TESTS 6 218 0
248981738 swatishivam23 A Feb. 29, 2024, 6:42 p.m. OK Java 21 TESTS 6 233 0
249033075 minibin A March 1, 2024, 6:01 a.m. OK Java 21 TESTS 6 249 307200
248985343 ferfer A Feb. 29, 2024, 7:01 p.m. OK Java 21 TESTS 6 264 102400
248984930 ferfer A Feb. 29, 2024, 6:59 p.m. OK Java 21 TESTS 6 264 102400
248989550 polsage A Feb. 29, 2024, 7:30 p.m. OK Java 21 TESTS 6 264 409600
248965749 mohit458 A Feb. 29, 2024, 4:23 p.m. OK Java 21 TESTS 6 280 0
249009581 kbliu A March 1, 2024, 12:38 a.m. OK Java 21 TESTS 6 280 102400
249024826 Gangster0910 A March 1, 2024, 4:40 a.m. OK Java 21 TESTS 6 280 102400
248989021 Nagendravarma A Feb. 29, 2024, 7:26 p.m. OK Java 21 TESTS 6 280 102400
249025189 Mr.Numerator_007 A March 1, 2024, 4:44 a.m. OK Java 8 TESTS 6 108 0
249026902 51Hz A March 1, 2024, 5:03 a.m. OK Java 8 TESTS 6 109 0
249007933 GaGaxi A Feb. 29, 2024, 11:59 p.m. OK Java 8 TESTS 6 109 0
249025805 naitikvarshney A March 1, 2024, 4:51 a.m. OK Java 8 TESTS 6 171 0
249019864 coderman2004 A March 1, 2024, 3:37 a.m. OK Java 8 TESTS 6 187 0
248982590 Indrajit A Feb. 29, 2024, 6:46 p.m. OK Java 8 TESTS 6 187 5836800
248986698 Sumitsingh7 A Feb. 29, 2024, 7:10 p.m. OK Java 8 TESTS 6 187 5836800
249023450 kushagra0304 A March 1, 2024, 4:22 a.m. OK Java 8 TESTS 6 202 0
248989803 Ayush_singh_rajput3662 A Feb. 29, 2024, 7:32 p.m. OK Java 8 TESTS 6 217 0
248984762 kunal_0199 A Feb. 29, 2024, 6:58 p.m. OK Java 8 TESTS 6 217 0
248986854 Krantzy A Feb. 29, 2024, 7:11 p.m. OK Kotlin 1.9 TESTS 6 186 0
248972125 ce20026 A Feb. 29, 2024, 4:34 p.m. OK Kotlin 1.9 TESTS 6 280 0
248984867 ved_prakash A Feb. 29, 2024, 6:58 p.m. OK Mono C# TESTS 6 93 614400
249011715 Ling_hui A March 1, 2024, 1:21 a.m. OK MS C++ 2017 TESTS 6 31 0
249016707 afanafan A March 1, 2024, 2:48 a.m. OK MS C++ 2017 TESTS 6 46 0
249018989 Anmolpreet_Singh A March 1, 2024, 3:25 a.m. OK MS C++ 2017 TESTS 6 46 0
249002442 Cpp_botredeas A Feb. 29, 2024, 10:05 p.m. OK MS C++ 2017 TESTS 6 46 0
249017126 jiajunnb A March 1, 2024, 2:55 a.m. OK MS C++ 2017 TESTS 6 46 0
248969669 AD_cobra A Feb. 29, 2024, 4:30 p.m. OK MS C++ 2017 TESTS 6 61 0
248999773 kartikzade18 A Feb. 29, 2024, 9:21 p.m. OK MS C++ 2017 TESTS 6 62 0
248965207 sabamahveen84 A Feb. 29, 2024, 4:22 p.m. OK MS C++ 2017 TESTS 6 77 0
248963840 Dev_Rungta A Feb. 29, 2024, 4:19 p.m. OK MS C++ 2017 TESTS 6 77 0
248962095 tvorjee A Feb. 29, 2024, 4:15 p.m. OK MS C++ 2017 TESTS 6 77 102400
249015652 faravra A March 1, 2024, 2:31 a.m. OK Node.js TESTS 6 186 6144000
249021847 4heap A March 1, 2024, 4:02 a.m. OK PyPy 3 TESTS 6 280 4096000
248990094 gardengnome A Feb. 29, 2024, 7:35 p.m. OK PyPy 3-64 TESTS 6 62 2969600
249012856 mythicalrocket A March 1, 2024, 1:43 a.m. OK PyPy 3-64 TESTS 6 92 4198400
248990457 _aadiupadhyay_ A Feb. 29, 2024, 7:38 p.m. OK PyPy 3-64 TESTS 6 93 3788800
248982305 jvatsal0709 A Feb. 29, 2024, 6:45 p.m. OK PyPy 3-64 TESTS 6 93 5222400
248985118 RobinFromTheHood A Feb. 29, 2024, 7 p.m. OK PyPy 3-64 TESTS 6 93 5324800
248989729 daszybak A Feb. 29, 2024, 7:32 p.m. OK PyPy 3-64 TESTS 6 93 5836800
248995615 hxu10 A Feb. 29, 2024, 8:27 p.m. OK PyPy 3-64 TESTS 6 108 4608000
249016403 amongsus A March 1, 2024, 2:43 a.m. OK PyPy 3-64 TESTS 6 108 5120000
249001702 VeryLate A Feb. 29, 2024, 9:52 p.m. OK PyPy 3-64 TESTS 6 108 6144000
249017291 Drought A March 1, 2024, 2:58 a.m. OK PyPy 3-64 TESTS 6 109 5222400
248985549 OLOGY A Feb. 29, 2024, 7:02 p.m. OK Python 2 TESTS 6 46 512000
249015543 padding A March 1, 2024, 2:30 a.m. OK Python 2 TESTS 6 108 409600
249013226 pennymagic156 A March 1, 2024, 1:50 a.m. OK Python 3 TESTS 6 62 102400
248990807 ag5356 A Feb. 29, 2024, 7:41 p.m. OK Python 3 TESTS 6 62 102400
249022397 sumedhgosavi05 A March 1, 2024, 4:10 a.m. OK Python 3 TESTS 6 93 102400
249008078 sekiro1 A March 1, 2024, 12:03 a.m. OK Python 3 TESTS 6 93 102400
249001159 Dina_Saif A Feb. 29, 2024, 9:43 p.m. OK Python 3 TESTS 6 93 102400
249000157 arady3337 A Feb. 29, 2024, 9:27 p.m. OK Python 3 TESTS 6 93 102400
248997466 Mostafa_Alaa99 A Feb. 29, 2024, 8:48 p.m. OK Python 3 TESTS 6 93 102400
248992268 CbFb A Feb. 29, 2024, 7:54 p.m. OK Python 3 TESTS 6 93 102400
248987927 Greninja_007 A Feb. 29, 2024, 7:18 p.m. OK Python 3 TESTS 6 93 102400
249007799 VioletVal A Feb. 29, 2024, 11:56 p.m. OK Python 3 TESTS 6 108 102400
249016466 0x81 A March 1, 2024, 2:44 a.m. OK Ruby 3 TESTS 6 514 819200
248984594 0x81 A Feb. 29, 2024, 6:57 p.m. OK Ruby 3 TESTS 6 638 921600

remove filters

Back to search problems