Codeforces Round 753 (Div. 3)

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
1607 Codeforces Round 753 (Div. 3) FINISHED False 7200 95959499 Nov. 2, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 26793 ) B Odd Grasshopper PROGRAMMING math

B"The grasshopper is located on the numeric axis at the point with coordinate x_0 . Having nothing else to do he starts jumping between integer points on the axis. Making a jump from a point with coordinate x with a distance d to the left moves the grasshopper to a point with a coordinate x - d , while jumping to the right moves him to a point with a coordinate x + d . The grasshopper is very fond of positive integers, so for each integer i starting with 1 the following holds: exactly i minutes after the start he makes a jump with a distance of exactly i . So, in the first minutes he jumps by 1 , then by 2 , and so on. The direction of a jump is determined as follows: if the point where the grasshopper was before the jump has an even coordinate, the grasshopper jumps to the left, otherwise he jumps to the right. For example, if after 18 consecutive jumps he arrives at the point with a coordinate 7 , he will jump by a distance of 19 to the right, since 7 is an odd number, and will end up at a point 7 + 19 = 26 . Since 26 is an even number, the next jump the grasshopper will make to the left by a distance of 20 , and it will move him to the point 26 - 20 = 6 . Find exactly which point the grasshopper will be at after exactly n jumps. The first line of input contains an integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. Each of the following t lines contains two integers x_0 ( -10^{14} <= q x_0 <= q 10^{14} ) and n ( 0 <= q n <= q 10^{14} ) -- the coordinate of the grasshopper's initial position and the number of jumps. Print exactly t lines. On the i -th line print one integer -- the answer to the i -th test case -- the coordinate of the point the grasshopper will be at after making n jumps from the point x_0 . The first two test cases in the example correspond to the fir"...

Tutorials

Codeforces Round #753 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
134147905 Gassa B Nov. 2, 2021, 7:18 p.m. OK D TESTS 2 15 3379200
134153833 Pockerman20 B Nov. 2, 2021, 8:56 p.m. OK GNU C11 TESTS 2 31 3686400
134167309 20101111 B Nov. 3, 2021, 3:31 a.m. OK GNU C11 TESTS 2 46 3686400
134162662 nabiurrahman2004 B Nov. 3, 2021, 1:32 a.m. OK GNU C11 TESTS 2 46 3686400
134144006 murali_33 B Nov. 2, 2021, 6:25 p.m. OK GNU C11 TESTS 2 46 3686400
134144335 20101111 B Nov. 2, 2021, 6:29 p.m. OK GNU C11 TESTS 2 46 3686400
134175090 Shamim_Sorkar B Nov. 3, 2021, 5:07 a.m. OK GNU C11 TESTS 2 46 3686400
134177596 anitha_537 B Nov. 3, 2021, 5:42 a.m. OK GNU C11 TESTS 2 46 3686400
134165899 milan_s1 B Nov. 3, 2021, 2:59 a.m. OK GNU C11 TESTS 2 46 3686400
134163035 BugLeave B Nov. 3, 2021, 1:44 a.m. OK GNU C11 TESTS 2 46 3686400
134166181 Giamattey B Nov. 3, 2021, 3:06 a.m. OK GNU C11 TESTS 2 46 3686400
134166333 Achintyah77 B Nov. 3, 2021, 3:10 a.m. OK GNU C++14 TESTS 2 0 1024000
134163247 HalfStar B Nov. 3, 2021, 1:51 a.m. OK GNU C++14 TESTS 2 0 1024000
134162734 PhaiCoGiaiQuocGia B Nov. 3, 2021, 1:35 a.m. OK GNU C++14 TESTS 2 0 1024000
134159573 woshishabiye B Nov. 2, 2021, 11:48 p.m. OK GNU C++14 TESTS 2 0 1024000
134149652 Baraa_Armoush B Nov. 2, 2021, 7:44 p.m. OK GNU C++14 TESTS 2 0 1024000
134148358 El_Alderson B Nov. 2, 2021, 7:25 p.m. OK GNU C++14 TESTS 2 0 1024000
134147254 Rushil_Motwani B Nov. 2, 2021, 7:09 p.m. OK GNU C++14 TESTS 2 0 1024000
134169411 pyxiss B Nov. 3, 2021, 4:18 a.m. OK GNU C++14 TESTS 2 0 1024000
134168344 thabumi B Nov. 3, 2021, 3:56 a.m. OK GNU C++14 TESTS 2 0 1024000
134163382 walk_alone B Nov. 3, 2021, 1:55 a.m. OK GNU C++14 TESTS 2 0 1024000
134179119 harsh_mr B Nov. 3, 2021, 6:02 a.m. OK GNU C++17 TESTS 2 0 1024000
134177786 wxy977 B Nov. 3, 2021, 5:44 a.m. OK GNU C++17 TESTS 2 0 1024000
134177679 shutr B Nov. 3, 2021, 5:43 a.m. OK GNU C++17 TESTS 2 0 1024000
134177086 Mudit_Jain B Nov. 3, 2021, 5:35 a.m. OK GNU C++17 TESTS 2 0 1024000
134176238 Samayra B Nov. 3, 2021, 5:24 a.m. OK GNU C++17 TESTS 2 0 1024000
134174140 kougunin B Nov. 3, 2021, 4:52 a.m. OK GNU C++17 TESTS 2 0 1024000
134174050 shuvo_14 B Nov. 3, 2021, 4:50 a.m. OK GNU C++17 TESTS 2 0 1024000
134168893 Abir3014 B Nov. 3, 2021, 4:08 a.m. OK GNU C++17 TESTS 2 0 1024000
134164369 1ikey0u B Nov. 3, 2021, 2:22 a.m. OK GNU C++17 TESTS 2 0 1024000
134163556 abhi_force B Nov. 3, 2021, 2 a.m. OK GNU C++17 TESTS 2 0 1024000
134136051 karim.elsa3d100 B Nov. 2, 2021, 5:03 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134131096 Janardhan_03 B Nov. 2, 2021, 4:34 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134130995 haneef B Nov. 2, 2021, 4:34 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134138582 suraj429 B Nov. 2, 2021, 5:27 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134141066 shivansh_jaiswal B Nov. 2, 2021, 5:52 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134147691 SGTCoder B Nov. 2, 2021, 7:15 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134149743 agarwala2512 B Nov. 2, 2021, 7:45 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134155152 Bungmint B Nov. 2, 2021, 9:24 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134159757 JyVenom2 B Nov. 2, 2021, 11:55 p.m. OK GNU C++17 (64) TESTS 2 0 1228800
134175021 nomad_heart B Nov. 3, 2021, 5:06 a.m. OK GNU C++17 (64) TESTS 2 0 1228800
134158867 haru_101 B Nov. 2, 2021, 11:21 p.m. OK GNU C++20 (64) TESTS 2 0 1228800
134149531 dumb_Hydra B Nov. 2, 2021, 7:42 p.m. OK GNU C++20 (64) TESTS 2 0 1228800
134146930 PIERRE_EMAD B Nov. 2, 2021, 7:04 p.m. OK GNU C++20 (64) TESTS 2 0 1228800
134175472 DuyAnhTM B Nov. 3, 2021, 5:12 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
134175289 alif_cse_ju B Nov. 3, 2021, 5:10 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
134169284 midu_01 B Nov. 3, 2021, 4:16 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
134168808 sathu.hebbar B Nov. 3, 2021, 4:06 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
134168758 vikassnwl B Nov. 3, 2021, 4:05 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
134168143 vikassnwl B Nov. 3, 2021, 3:51 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
134162446 prabhav_ B Nov. 3, 2021, 1:26 a.m. OK GNU C++20 (64) TESTS 2 0 1228800
134161206 bavian B Nov. 3, 2021, 12:47 a.m. OK Go TESTS 2 904 8192000
134144745 solo07 B Nov. 2, 2021, 6:35 p.m. OK Java 11 TESTS 2 140 24473600
134175318 greenindia B Nov. 3, 2021, 5:10 a.m. OK Java 11 TESTS 2 155 24576000
134126881 mohdasim2808 B Nov. 2, 2021, 4:27 p.m. OK Java 11 TESTS 2 170 24678400
134127043 arpit_c10992 B Nov. 2, 2021, 4:27 p.m. OK Java 11 TESTS 2 171 24473600
134154053 kamikarn B Nov. 2, 2021, 9 p.m. OK Java 11 TESTS 2 186 24473600
134144478 amanpatel23 B Nov. 2, 2021, 6:31 p.m. OK Java 11 TESTS 2 186 24576000
134134670 henrychenOutlook B Nov. 2, 2021, 4:53 p.m. OK Java 11 TESTS 2 186 24678400
134165517 syam.kumar B Nov. 3, 2021, 2:49 a.m. OK Java 11 TESTS 2 202 24883200
134146571 RadheKrishna1815 B Nov. 2, 2021, 6:59 p.m. OK Java 11 TESTS 2 218 24678400
134146468 Near13 B Nov. 2, 2021, 6:58 p.m. OK Java 11 TESTS 2 233 24576000
134136036 kocko B Nov. 2, 2021, 5:03 p.m. OK Java 8 TESTS 2 93 18841600
134133623 nss_786 B Nov. 2, 2021, 4:46 p.m. OK Java 8 TESTS 2 93 18841600
134134418 jinal_parmar B Nov. 2, 2021, 4:51 p.m. OK Java 8 TESTS 2 93 18841600
134177301 sahil58555 B Nov. 3, 2021, 5:38 a.m. OK Java 8 TESTS 2 93 18841600
134164463 201502010200 B Nov. 3, 2021, 2:24 a.m. OK Java 8 TESTS 2 93 18841600
134133578 honeysingh18 B Nov. 2, 2021, 4:46 p.m. OK Java 8 TESTS 2 93 18944000
134126903 yashpandey73 B Nov. 2, 2021, 4:27 p.m. OK Java 8 TESTS 2 108 18841600
134179006 Vishnu750 B Nov. 3, 2021, 6 a.m. OK Java 8 TESTS 2 108 18944000
134169117 Srikanth1777 B Nov. 3, 2021, 4:12 a.m. OK Java 8 TESTS 2 109 18841600
134179222 manan29 B Nov. 3, 2021, 6:03 a.m. OK Java 8 TESTS 2 109 18944000
134132272 BennyGiu B Nov. 2, 2021, 4:39 p.m. OK Kotlin 1.4 TESTS 2 233 20275200
134140646 noisegain B Nov. 2, 2021, 5:47 p.m. OK Kotlin 1.5 TESTS 2 217 24883200
134140591 helenmie B Nov. 2, 2021, 5:47 p.m. OK MS C++ 2017 TESTS 2 31 1126400
134176747 StevenTran0410 B Nov. 3, 2021, 5:31 a.m. OK MS C++ 2017 TESTS 2 46 1126400
134125779 Hacktype B Nov. 2, 2021, 4:25 p.m. OK MS C++ 2017 TESTS 2 46 1126400
134146934 temur_sherov B Nov. 2, 2021, 7:04 p.m. OK MS C++ 2017 TESTS 2 46 1126400
134149890 whiteReboot B Nov. 2, 2021, 7:48 p.m. OK MS C++ 2017 TESTS 2 46 1126400
134130530 DmtrPpl B Nov. 2, 2021, 4:34 p.m. OK MS C++ 2017 TESTS 2 61 1126400
134164779 KAsCler B Nov. 3, 2021, 2:31 a.m. OK MS C++ 2017 TESTS 2 61 1126400
134148589 Mery2005 B Nov. 2, 2021, 7:28 p.m. OK MS C++ 2017 TESTS 2 61 1126400
134141500 hugochien0 B Nov. 2, 2021, 5:56 p.m. OK MS C++ 2017 TESTS 2 61 1126400
134153451 Flyheck B Nov. 2, 2021, 8:49 p.m. OK MS C++ 2017 TESTS 2 62 1126400
134131043 Prog_Farag B Nov. 2, 2021, 4:34 p.m. OK .NET Core C# TESTS 2 92 11366400
134139054 Prog_Farag B Nov. 2, 2021, 5:31 p.m. OK .NET Core C# TESTS 2 124 11366400
134125464 Mechar B Nov. 2, 2021, 4:24 p.m. OK .NET Core C# TESTS 2 139 11468800
134132090 Grapeee B Nov. 2, 2021, 4:38 p.m. OK Node.js TESTS 2 187 15769600
134131824 1_2_3_4_5_9 B Nov. 2, 2021, 4:37 p.m. OK PyPy 2 TESTS 2 186 25292800
134174410 travisluong B Nov. 3, 2021, 4:56 a.m. OK PyPy 2 TESTS 2 187 23347200
134174407 OLOGY B Nov. 3, 2021, 4:56 a.m. OK PyPy 2 TESTS 2 248 24678400
134125796 tieros B Nov. 2, 2021, 4:25 p.m. OK PyPy 3 TESTS 2 139 23040000
134165544 saurabhbisht B Nov. 3, 2021, 2:50 a.m. OK PyPy 3 TESTS 2 140 25804800
134147415 hxu10 B Nov. 2, 2021, 7:11 p.m. OK PyPy 3 TESTS 2 155 22732800
134168700 rahin1301 B Nov. 3, 2021, 4:04 a.m. OK PyPy 3 TESTS 2 155 23756800
134172956 yugant196 B Nov. 3, 2021, 4:32 a.m. OK PyPy 3 TESTS 2 171 23449600
134162123 otsuneko B Nov. 3, 2021, 1:15 a.m. OK PyPy 3 TESTS 2 186 92876800
134163200 wolfram_ B Nov. 3, 2021, 1:49 a.m. OK PyPy 3 TESTS 2 202 27750400
134174811 BingHa B Nov. 3, 2021, 5:03 a.m. OK PyPy 3 TESTS 2 202 27955200
134156279 lebron87 B Nov. 2, 2021, 9:53 p.m. OK PyPy 3 TESTS 2 217 27340800
134142671 rocker143 B Nov. 2, 2021, 6:09 p.m. OK PyPy 3 TESTS 2 249 26931200
134132270 Skillful_Wanderer B Nov. 2, 2021, 4:39 p.m. OK PyPy 3-64 TESTS 2 139 36864000
134154684 iambabo B Nov. 2, 2021, 9:14 p.m. OK PyPy 3-64 TESTS 2 171 38809600
134151949 feelme B Nov. 2, 2021, 8:23 p.m. OK PyPy 3-64 TESTS 2 187 38912000
134167316 dutt_shouvik B Nov. 3, 2021, 3:31 a.m. OK PyPy 3-64 TESTS 2 187 169369600
134175633 ferz B Nov. 3, 2021, 5:15 a.m. OK PyPy 3-64 TESTS 2 202 39219200
134169332 fpc_coder B Nov. 3, 2021, 4:17 a.m. OK PyPy 3-64 TESTS 2 264 38707200
134153818 b3ck3rz B Nov. 2, 2021, 8:56 p.m. OK PyPy 3-64 TESTS 2 280 38502400
134139719 The_Apurv_Rathore B Nov. 2, 2021, 5:38 p.m. OK PyPy 3-64 TESTS 2 280 38604800
134156464 petya47 B Nov. 2, 2021, 9:58 p.m. OK PyPy 3-64 TESTS 2 280 38707200
134172918 rohanop B Nov. 3, 2021, 4:31 a.m. OK PyPy 3-64 TESTS 2 295 38707200
134146072 OLOGY B Nov. 2, 2021, 6:52 p.m. OK Python 2 TESTS 2 46 3993600
134146780 OLOGY B Nov. 2, 2021, 7:02 p.m. OK Python 2 TESTS 2 61 3993600
134145096 OLOGY B Nov. 2, 2021, 6:40 p.m. OK Python 2 TESTS 2 77 3993600
134160708 eugalt B Nov. 3, 2021, 12:29 a.m. OK Python 3 TESTS 2 46 5120000
134133343 gabrielmdr B Nov. 2, 2021, 4:45 p.m. OK Python 3 TESTS 2 61 4812800
134132119 sharpthecoder B Nov. 2, 2021, 4:38 p.m. OK Python 3 TESTS 2 61 5017600
134161008 eugalt B Nov. 3, 2021, 12:40 a.m. OK Python 3 TESTS 2 62 5120000
134158928 eugalt B Nov. 2, 2021, 11:24 p.m. OK Python 3 TESTS 2 62 5120000
134158736 eugalt B Nov. 2, 2021, 11:16 p.m. OK Python 3 TESTS 2 62 5120000
134143533 eugalt B Nov. 2, 2021, 6:19 p.m. OK Python 3 TESTS 2 62 5120000
134127677 Swapnanil2012 B Nov. 2, 2021, 4:29 p.m. OK Python 3 TESTS 2 62 5324800
134143428 eugalt B Nov. 2, 2021, 6:18 p.m. OK Python 3 TESTS 2 77 5120000
134148041 IceFire B Nov. 2, 2021, 7:20 p.m. OK Python 3 TESTS 2 93 4812800
134163505 Spheniscine B Nov. 3, 2021, 1:58 a.m. OK Rust TESTS 2 15 1331200
134153416 Hyrulia B Nov. 2, 2021, 8:48 p.m. OK Rust TESTS 2 77 1228800

remove filters

Back to search problems