Nebius Welcome Round (Div. 1 + 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
1804 Nebius Welcome Round (Div. 1 + Div. 2) FINISHED False 7200 58548263 March 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12496 ) C Pull Your Luck PROGRAMMING brute force greedy math number theory

B'While James is gone on business, Vesper takes her time and explores what the legendary Casino Royale has to offer to people who are fond of competitive programming. Her attention was grabbed by the very new "Pull Your Luck" roulette which functions in a pretty peculiar way. The roulette 's wheel consists of n sectors number from 0 to n - 1 . There is no ball and the winning sector is determined by a static arrow pointing to one of the sectors. Sectors ' indexes go in the natural order and the wheel always spins in the direction of indexes increment. That means that sector i + 1 goes right after sector i for all i from 0 to n - 2 , and sector 0 goes right after sector n - 1 . After a bet is made, the player is allowed to pull the triggering handle herself and cause the wheel to spin. If the player 's initial pull is made with the force equal to positive integer f , the wheel will spin for f seconds. During the first second it will advance f sectors, the next second it will advance f - 1 sectors, then f - 2 sectors, and so on until it comes to a complete stop. After the wheel comes to a complete stop, the sector which the arrow is pointing to is the winning one. The roulette 's arrow currently points at sector x . Vesper knows that she can pull the handle with any integer force from 1 to p inclusive. Note that it is not allowed to pull the handle with force 0 , i. e. not pull it all. The biggest prize is awarded if the winning sector is 0 . Now Vesper wonders if she can make sector 0 win by pulling the triggering handle exactly once? The first line of the input contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. Then follow t lines containing one test description each. Each test description consists of three integers n , x and p ( 3 <= q n <= q 10^5 , 0 <= q x < n , 1 l'...

Tutorials

Nebius Welcome Round Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
197129459 sergmel C March 12, 2023, 4:33 p.m. OK C# 10 TESTS 40 78 2764800
197148148 riteshsjb C March 12, 2023, 6:50 p.m. OK GNU C11 TESTS 40 46 0
197188783 yurui111 C March 13, 2023, 5:53 a.m. OK GNU C11 TESTS 40 62 0
197171377 Prem_Sagar_S C March 13, 2023, 12:46 a.m. OK GNU C11 TESTS 40 62 0
197174009 Smallorange C March 13, 2023, 1:50 a.m. OK GNU C11 TESTS 40 62 0
197151294 iffatul_anon C March 12, 2023, 7:19 p.m. OK GNU C11 TESTS 40 62 0
197145198 SHARANTEJAREDDY C March 12, 2023, 6:28 p.m. OK GNU C11 TESTS 40 312 0
197145069 acephoton1213 C March 12, 2023, 6:27 p.m. OK GNU C11 TESTS 40 327 0
197172086 CSUSTlnx C March 13, 2023, 1:05 a.m. OK GNU C++14 TESTS 40 15 0
197171282 Small_B C March 13, 2023, 12:43 a.m. OK GNU C++14 TESTS 40 15 0
197167796 kabu C March 12, 2023, 11:04 p.m. OK GNU C++14 TESTS 40 15 0
197161730 FarahHezma C March 12, 2023, 9:06 p.m. OK GNU C++14 TESTS 40 15 0
197189503 sid7886 C March 13, 2023, 6:01 a.m. OK GNU C++14 TESTS 40 15 0
197179177 2100030887_klu C March 13, 2023, 3:37 a.m. OK GNU C++14 TESTS 40 15 0
197176257 gaobeifan2022 C March 13, 2023, 2:41 a.m. OK GNU C++14 TESTS 40 15 0
197175256 nidhish_shukla C March 13, 2023, 2:20 a.m. OK GNU C++14 TESTS 40 15 0
197174303 IskhakKutBilim C March 13, 2023, 1:57 a.m. OK GNU C++14 TESTS 40 15 0
197172357 ZBXAXZQ C March 13, 2023, 1:12 a.m. OK GNU C++14 TESTS 40 15 0
197178415 nahin_narcissus C March 13, 2023, 3:24 a.m. OK GNU C++17 TESTS 40 15 0
197178239 khalid_bin_walid C March 13, 2023, 3:20 a.m. OK GNU C++17 TESTS 40 15 0
197177735 _BONK_ C March 13, 2023, 3:11 a.m. OK GNU C++17 TESTS 40 15 0
197186039 pkpawan C March 13, 2023, 5:18 a.m. OK GNU C++17 TESTS 40 15 0
197185864 sensi_yassin C March 13, 2023, 5:16 a.m. OK GNU C++17 TESTS 40 15 0
197184060 chalte_raho C March 13, 2023, 4:51 a.m. OK GNU C++17 TESTS 40 15 0
197184019 RajAyush. C March 13, 2023, 4:50 a.m. OK GNU C++17 TESTS 40 15 0
197182950 mkv29 C March 13, 2023, 4:35 a.m. OK GNU C++17 TESTS 40 15 0
197180209 Dev-i_varaprasad C March 13, 2023, 3:55 a.m. OK GNU C++17 TESTS 40 15 0
197178999 knowYourCP C March 13, 2023, 3:34 a.m. OK GNU C++17 TESTS 40 15 0
197186172 kayumov_muhammad C March 13, 2023, 5:21 a.m. OK GNU C++17 (64) TESTS 40 15 0
197183358 M-uwu C March 13, 2023, 4:41 a.m. OK GNU C++17 (64) TESTS 40 15 0
197183084 Asad5059 C March 13, 2023, 4:37 a.m. OK GNU C++17 (64) TESTS 40 15 0
197181930 yttx C March 13, 2023, 4:21 a.m. OK GNU C++17 (64) TESTS 40 15 0
197181122 CSUST_GXL C March 13, 2023, 4:09 a.m. OK GNU C++17 (64) TESTS 40 15 0
197178831 Mohammed84Farouk C March 13, 2023, 3:31 a.m. OK GNU C++17 (64) TESTS 40 15 0
197178563 thisIsMorningstar C March 13, 2023, 3:26 a.m. OK GNU C++17 (64) TESTS 40 15 0
197177308 PCC C March 13, 2023, 3:02 a.m. OK GNU C++17 (64) TESTS 40 15 0
197174670 SoFanzZ C March 13, 2023, 2:06 a.m. OK GNU C++17 (64) TESTS 40 15 0
197168061 Superposition C March 12, 2023, 11:12 p.m. OK GNU C++17 (64) TESTS 40 15 0
197186621 noobcoderr C March 13, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 40 15 0
197186591 fantasma C March 13, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 40 15 0
197186587 margothequeen C March 13, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 40 15 0
197186641 Sumitp007 C March 13, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 40 15 0
197186686 DeadlyVelocity C March 13, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 40 15 0
197186817 v0s7er C March 13, 2023, 5:29 a.m. OK GNU C++20 (64) TESTS 40 15 0
197188109 GENERALMAHFUZ C March 13, 2023, 5:45 a.m. OK GNU C++20 (64) TESTS 40 15 0
197188462 Priyanshu.Rmn C March 13, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 40 15 0
197188858 Morgenrote712 C March 13, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 40 15 0
197189158 Aspirer_15 C March 13, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 40 15 0
197124988 storybehind C March 12, 2023, 4:24 p.m. OK Go TESTS 40 31 512000
197148234 avoid C March 12, 2023, 6:51 p.m. OK Go TESTS 40 499 1024000
197134007 avoid C March 12, 2023, 5:23 p.m. OK Go TESTS 40 514 1024000
197146758 djrfrn C March 12, 2023, 6:39 p.m. OK Java 11 TESTS 40 187 0
197136923 kritikmodi C March 12, 2023, 5:36 p.m. OK Java 11 TESTS 40 202 0
197136802 4ex C March 12, 2023, 5:35 p.m. OK Java 11 TESTS 40 202 0
197133862 Ramez__ C March 12, 2023, 5:23 p.m. OK Java 11 TESTS 40 218 0
197136791 kritikmodi C March 12, 2023, 5:35 p.m. OK Java 11 TESTS 40 233 0
197155301 Ankitsks C March 12, 2023, 8 p.m. OK Java 11 TESTS 40 249 0
197142431 Stefan485 C March 12, 2023, 6:10 p.m. OK Java 11 TESTS 40 249 0
197142251 anikethend1234 C March 12, 2023, 6:08 p.m. OK Java 11 TESTS 40 249 0
197140121 Vaibhav_Rajpal C March 12, 2023, 5:55 p.m. OK Java 11 TESTS 40 249 0
197136028 ETHANHUNTMI5 C March 12, 2023, 5:32 p.m. OK Java 11 TESTS 40 249 0
197174812 klu_2100031380 C March 13, 2023, 2:10 a.m. OK Java 17 TESTS 40 202 1228800
197181075 Danger_Don C March 13, 2023, 4:09 a.m. OK Java 17 TESTS 40 202 1331200
197134382 Utsav82 C March 12, 2023, 5:25 p.m. OK Java 17 TESTS 40 218 1024000
197183445 ansuman_83 C March 13, 2023, 4:43 a.m. OK Java 17 TESTS 40 233 921600
197123044 xyz_000 C March 12, 2023, 4:20 p.m. OK Java 17 TESTS 40 233 1331200
197124596 mcrash12 C March 12, 2023, 4:23 p.m. OK Java 17 TESTS 40 249 1228800
197176649 zts2023 C March 13, 2023, 2:49 a.m. OK Java 17 TESTS 40 311 1126400
197180688 wintersoldier2004 C March 13, 2023, 4:03 a.m. OK Java 17 TESTS 40 311 1228800
197128432 pashkinpeter C March 12, 2023, 4:31 p.m. OK Java 17 TESTS 40 311 1228800
197185220 Adar8604 C March 13, 2023, 5:07 a.m. OK Java 17 TESTS 40 311 1433600
197142335 megaspazz C March 12, 2023, 6:09 p.m. OK Java 8 TESTS 40 109 0
197189627 vkukretiwork C March 13, 2023, 6:02 a.m. OK Java 8 TESTS 40 124 0
197181529 Cromyl C March 13, 2023, 4:15 a.m. OK Java 8 TESTS 40 124 0
197149811 d_nitish C March 12, 2023, 7:05 p.m. OK Java 8 TESTS 40 124 0
197128264 yadavDipesh C March 12, 2023, 4:31 p.m. OK Java 8 TESTS 40 124 0
197135934 ashish1729 C March 12, 2023, 5:31 p.m. OK Java 8 TESTS 40 139 0
197133806 rahul_81 C March 12, 2023, 5:23 p.m. OK Java 8 TESTS 40 140 0
197142678 anikethend1234 C March 12, 2023, 6:11 p.m. OK Java 8 TESTS 40 170 0
197170655 Sylvester_ C March 13, 2023, 12:27 a.m. OK Java 8 TESTS 40 186 0
197189302 Deependra_coder C March 13, 2023, 5:59 a.m. OK Java 8 TESTS 40 187 0
197187266 yanzhiqi C March 13, 2023, 5:34 a.m. OK MS C++ 2017 TESTS 40 62 0
197180698 wolann C March 13, 2023, 4:03 a.m. OK MS C++ 2017 TESTS 40 77 0
197139388 dipakgupta007 C March 12, 2023, 5:50 p.m. OK PyPy 2 TESTS 40 264 3584000
197136628 bvf C March 12, 2023, 5:34 p.m. OK PyPy 3 TESTS 40 155 5324800
197154046 flexr C March 12, 2023, 7:47 p.m. OK PyPy 3 TESTS 40 186 7475200
197130317 Dashk0 C March 12, 2023, 4:34 p.m. OK PyPy 3 TESTS 40 280 5939200
197135946 trckster C March 12, 2023, 5:32 p.m. OK PyPy 3 TESTS 40 296 6451200
197136102 VidGa C March 12, 2023, 5:32 p.m. OK PyPy 3 TESTS 40 312 7475200
197151296 bpdolson C March 12, 2023, 7:19 p.m. OK PyPy 3 TESTS 40 326 6963200
197123276 KeiTsukishima C March 12, 2023, 4:20 p.m. OK PyPy 3 TESTS 40 842 9625600
197182679 kavorka C March 13, 2023, 4:31 a.m. OK PyPy 3-64 TESTS 40 93 5324800
197153135 RobinFromTheHood C March 12, 2023, 7:37 p.m. OK PyPy 3-64 TESTS 40 93 7270400
197135737 RobinFromTheHood C March 12, 2023, 5:31 p.m. OK PyPy 3-64 TESTS 40 93 7270400
197136092 SoleProprietor C March 12, 2023, 5:32 p.m. OK PyPy 3-64 TESTS 40 108 4403200
197166758 JadMch C March 12, 2023, 10:36 p.m. OK PyPy 3-64 TESTS 40 108 6553600
197166583 JadMch C March 12, 2023, 10:31 p.m. OK PyPy 3-64 TESTS 40 108 6553600
197154757 hvbird C March 12, 2023, 7:54 p.m. OK PyPy 3-64 TESTS 40 108 6758400
197135372 iinaamasum C March 12, 2023, 5:29 p.m. OK PyPy 3-64 TESTS 40 108 7782400
197124998 AKKAN C March 12, 2023, 4:24 p.m. OK PyPy 3-64 TESTS 40 109 6451200
197122669 violetd C March 12, 2023, 4:19 p.m. OK PyPy 3-64 TESTS 40 109 6758400
197139972 adwait1291 C March 12, 2023, 5:54 p.m. OK Python 3 TESTS 40 217 0
197139060 dmnewone C March 12, 2023, 5:48 p.m. OK Python 3 TESTS 40 218 0
197122784 unbrokenheart C March 12, 2023, 4:19 p.m. OK Python 3 TESTS 40 233 7884800
197170534 ALSTON16 C March 13, 2023, 12:24 a.m. OK Python 3 TESTS 40 264 0
197130112 Pank_AL_SE C March 12, 2023, 4:34 p.m. OK Python 3 TESTS 40 265 0
197138333 khan_ali C March 12, 2023, 5:44 p.m. OK Python 3 TESTS 40 311 0
197135453 Vishnu_Actual C March 12, 2023, 5:29 p.m. OK Python 3 TESTS 40 327 0
197134583 Hrithika_Actual C March 12, 2023, 5:25 p.m. OK Python 3 TESTS 40 327 0
197123732 dragonball_2002 C March 12, 2023, 4:21 p.m. OK Python 3 TESTS 40 623 0
197168484 aLi_SaIrO C March 12, 2023, 11:25 p.m. OK Python 3 TESTS 40 686 0
197134902 0npata C March 12, 2023, 5:27 p.m. OK Rust 2021 TESTS 40 30 0
197154408 yllo C March 12, 2023, 7:51 p.m. OK Rust 2021 TESTS 40 124 0

remove filters

Back to search problems