Codeforces Round 1082 (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
2202 Codeforces Round 1082 (Div. 2) FINISHED False 9000 4548323 Feb. 23, 2026, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 16076 ) A Parkour Design PROGRAMMING math

Today, Alex wants to build a parkour course for Steve to train his parkour skills on. A parkour course is a sequence (p_0 \to p_1 \to \ldots \to p_k) of integer coordinates on the plane. Here, a contiguous pair of coordinates is called a move , denoted as (p_{i-1} \to p_i). Alex knows that Steve can only perform the following types of moves: ((x_i,y_i) \to (x_i+2,y_i+1)); ((x_i,y_i) \to (x_i+3,y_i)); ((x_i,y_i) \to (x_i+4,y_i-1)). Note that Steve will not perform any other type of moves. For example, Steve can perform ((0,0) \to (2,1)) and ((2,1) \to (5,1)), but will never perform moves such as ((2,1) \to (3,2)), ((3,0) \to (5,-1)), or ((4,-1) \to (6,-1)) (even though they may look very easy). You are given an integer coordinate ((x,y)) on the plane. Please determine if it is possible to make a parkour course (q_0,q_1,\ldots,q_k) that satisfies the following conditions: (q_0=(0,0)); (q_k=(x,y)); The parkour course only consists of moves that Steve can perform. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^3)). The description of the test cases follows. The only line of each test case contains two integers (x) and (y) ((1 \le x \le 10^9), (-10^8 \le y \le 10^8)). If it is possible to make a parkour course that satisfies the conditions, output " YES " on a separate line. If it is impossible to make a parkour course that satisfies the conditions, output " NO " on a separate line. You can output the answer in any case. For example, the strings " yEs ", " yes ", and " Yes " will also be recognized as positive responses. For the fifth test case, the parkour course must start from ((0,0)) and end on ((14,1)). This can be achieved by the following parkour course. ()(0,0) \to (4,-1) \to (7,-1) \to (9,0) \to (12,0) \to (14,1)() Note that the following parkour course does not satisfy the third condition stated

Tutorials

Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
364116534 ansergeyg A Feb. 23, 2026, 7:13 p.m. OK C# 13 TESTS 4 62 102400
364150644 NguyenVietGiaKhanh A Feb. 24, 2026, 4:55 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364149124 tnakao A Feb. 24, 2026, 4:29 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364147512 avg_electrical_enjoyer A Feb. 24, 2026, 3:59 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364147214 ayushpandey_23 A Feb. 24, 2026, 3:54 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364146561 peppa_p1g A Feb. 24, 2026, 3:42 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364145816 Godddddlevel A Feb. 24, 2026, 3:29 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364145198 Actium A Feb. 24, 2026, 3:17 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364144944 iammadan A Feb. 24, 2026, 3:13 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364144818 Dumuk09 A Feb. 24, 2026, 3:10 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364144008 saavi_kot A Feb. 24, 2026, 2:55 a.m. OK C++17 (GCC 7-32) TESTS 4 15 0
364153574 ciyp A Feb. 24, 2026, 5:42 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364153318 THepe A Feb. 24, 2026, 5:39 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364148292 jocularferret A Feb. 24, 2026, 4:13 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364145979 Varshith_reddy A Feb. 24, 2026, 3:32 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364145892 sumitg2004 A Feb. 24, 2026, 3:30 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364140662 chaoyi88906 A Feb. 24, 2026, 1:42 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364138799 ab.rahman_12 A Feb. 24, 2026, 12:52 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364138625 Nghich_Thien A Feb. 24, 2026, 12:47 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364138528 BlueMoon. A Feb. 24, 2026, 12:45 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364138243 HarryPoter1990 A Feb. 24, 2026, 12:38 a.m. OK C++20 (GCC 13-64) TESTS 4 15 0
364155519 usstzzj A Feb. 24, 2026, 6:08 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364151335 sourcookie2345 A Feb. 24, 2026, 5:08 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364149487 asikM A Feb. 24, 2026, 4:36 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364149353 OxyaneOH2 A Feb. 24, 2026, 4:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364147600 Arpita6379 A Feb. 24, 2026, 4:01 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364146779 siddhant1100115 A Feb. 24, 2026, 3:46 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364146137 dragi12345679 A Feb. 24, 2026, 3:35 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364143470 direction_ A Feb. 24, 2026, 2:44 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364139693 acmtoohard A Feb. 24, 2026, 1:15 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364139527 willbecomepro A Feb. 24, 2026, 1:10 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 15 0
364108618 Rockstar_123 A Feb. 23, 2026, 5:59 p.m. OK GNU C11 TESTS 4 0 0
364089336 RoshanRam A Feb. 23, 2026, 4:19 p.m. OK GNU C11 TESTS 4 0 0
364151681 Flames_36 A Feb. 24, 2026, 5:13 a.m. OK GNU C11 TESTS 4 15 0
364133655 SumitKundu A Feb. 23, 2026, 10:42 p.m. OK GNU C11 TESTS 4 15 0
364107691 ajgar_badmash7 A Feb. 23, 2026, 5:52 p.m. OK GNU C11 TESTS 4 15 0
364100568 loop-the-loop A Feb. 23, 2026, 4:55 p.m. OK GNU C11 TESTS 4 15 0
364094612 Samin37 A Feb. 23, 2026, 4:36 p.m. OK GNU C11 TESTS 4 15 0
364090342 anurag_sikarwar A Feb. 23, 2026, 4:22 p.m. OK GNU C11 TESTS 4 15 0
364088218 AaronPe A Feb. 23, 2026, 4:16 p.m. OK GNU C11 TESTS 4 15 0
364149045 asikM A Feb. 24, 2026, 4:27 a.m. OK GNU C11 TESTS 4 31 0
364142707 LittleGopher A Feb. 24, 2026, 2:28 a.m. OK Go TESTS 4 31 0
364137922 p1an_ A Feb. 24, 2026, 12:29 a.m. OK Go TESTS 4 31 0
364135595 sunaj A Feb. 23, 2026, 11:23 p.m. OK Java 21 TESTS 4 156 102400
364095273 TusharChoudhary7 A Feb. 23, 2026, 4:38 p.m. OK Java 21 TESTS 4 156 307200
364102766 Partha24 A Feb. 23, 2026, 5:02 p.m. OK Java 21 TESTS 4 171 409600
364152992 shyamPrajapat A Feb. 24, 2026, 5:34 a.m. OK Java 21 TESTS 4 171 716800
364138122 godAngryOver A Feb. 24, 2026, 12:35 a.m. OK Java 21 TESTS 4 171 1740800
364090035 BiggestFish06 A Feb. 23, 2026, 4:21 p.m. OK Java 21 TESTS 4 171 1740800
364100212 swayamallewar7 A Feb. 23, 2026, 4:54 p.m. OK Java 21 TESTS 4 171 2560000
364115088 chillcoder24 A Feb. 23, 2026, 6:59 p.m. OK Java 21 TESTS 4 187 307200
364127815 Ishan.Boral.1810 A Feb. 23, 2026, 9:21 p.m. OK Java 21 TESTS 4 187 512000
364109388 kaustubh.24bai10060 A Feb. 23, 2026, 6:06 p.m. OK Java 21 TESTS 4 187 716800
364152081 madhu.korada131 A Feb. 24, 2026, 5:20 a.m. OK Java 8 TESTS 4 78 0
364126988 MACLOVER A Feb. 23, 2026, 9:12 p.m. OK Java 8 TESTS 4 93 0
364113097 manhbnvn3102 A Feb. 23, 2026, 6:39 p.m. OK Java 8 TESTS 4 109 0
364111649 your.secret.admirer A Feb. 23, 2026, 6:25 p.m. OK Java 8 TESTS 4 109 0
364095916 Xenon_PlayZ A Feb. 23, 2026, 4:40 p.m. OK Java 8 TESTS 4 109 0
364092502 prayukthikaprasadsatla A Feb. 23, 2026, 4:29 p.m. OK Java 8 TESTS 4 109 0
364089109 AyushPandey6996 A Feb. 23, 2026, 4:19 p.m. OK Java 8 TESTS 4 109 0
364127011 NeelmaniPandey09 A Feb. 23, 2026, 9:12 p.m. OK Java 8 TESTS 4 125 0
364097603 VikrantYadav2005 A Feb. 23, 2026, 4:46 p.m. OK Java 8 TESTS 4 125 0
364153375 javeed_123 A Feb. 24, 2026, 5:40 a.m. OK Java 8 TESTS 4 140 0
364102610 eswar_dada A Feb. 23, 2026, 5:01 p.m. OK JavaScript TESTS 4 31 102400
364110680 yuisgame A Feb. 23, 2026, 6:17 p.m. OK Kotlin 1.9 TESTS 4 109 0
364127298 konni35 A Feb. 23, 2026, 9:15 p.m. OK Kotlin 2.2 TESTS 4 125 102400
364147542 WaffleMan A Feb. 24, 2026, 4 a.m. OK PyPy 3 TESTS 4 93 2764800
364122318 Yj29 A Feb. 23, 2026, 8:19 p.m. OK PyPy 3 TESTS 4 109 2252800
364095105 shdwnvrmr A Feb. 23, 2026, 4:37 p.m. OK PyPy 3 TESTS 4 125 2764800
364115366 gardengnome A Feb. 23, 2026, 7:02 p.m. OK PyPy 3-64 TESTS 4 46 102400
364085339 NRadhanjan A Feb. 23, 2026, 4:08 p.m. OK PyPy 3-64 TESTS 4 46 102400
364153240 chauhan.ritik.1704 A Feb. 24, 2026, 5:38 a.m. OK PyPy 3-64 TESTS 4 46 1433600
364150364 omni37 A Feb. 24, 2026, 4:50 a.m. OK PyPy 3-64 TESTS 4 46 1536000
364117204 inceptionAR A Feb. 23, 2026, 7:20 p.m. OK PyPy 3-64 TESTS 4 46 1536000
364112928 Infin8 A Feb. 23, 2026, 6:37 p.m. OK PyPy 3-64 TESTS 4 46 1536000
364138570 SsyHow A Feb. 24, 2026, 12:46 a.m. OK PyPy 3-64 TESTS 4 62 1433600
364100711 Sharathi07 A Feb. 23, 2026, 4:56 p.m. OK PyPy 3-64 TESTS 4 62 1433600
364090364 mahi7900 A Feb. 23, 2026, 4:23 p.m. OK PyPy 3-64 TESTS 4 62 1433600
364154749 QHuy1 A Feb. 24, 2026, 5:58 a.m. OK PyPy 3-64 TESTS 4 62 1536000
364091879 satkurikailash A Feb. 23, 2026, 4:27 p.m. OK Python 2 TESTS 4 31 102400
364116973 eugalt A Feb. 23, 2026, 7:18 p.m. OK Python 3 TESTS 4 31 0
364110208 ssundar.kars A Feb. 23, 2026, 6:13 p.m. OK Python 3 TESTS 4 31 0
364102612 Krishsingla575 A Feb. 23, 2026, 5:01 p.m. OK Python 3 TESTS 4 31 0
364090729 ARYAPARSI A Feb. 23, 2026, 4:24 p.m. OK Python 3 TESTS 4 31 0
364088476 Harsh__Patel A Feb. 23, 2026, 4:17 p.m. OK Python 3 TESTS 4 31 0
364125037 radhey_bansal A Feb. 23, 2026, 8:49 p.m. OK Python 3 TESTS 4 31 102400
364151712 wrkdivan A Feb. 24, 2026, 5:14 a.m. OK Python 3 TESTS 4 46 0
364150336 akif22 A Feb. 24, 2026, 4:50 a.m. OK Python 3 TESTS 4 46 0
364135652 nuhanintekhab A Feb. 23, 2026, 11:25 p.m. OK Python 3 TESTS 4 46 0
364123155 radhey_bansal A Feb. 23, 2026, 8:30 p.m. OK Python 3 TESTS 4 46 0
364137324 silicalet A Feb. 24, 2026, 12:11 a.m. OK Rust 2024 TESTS 4 31 0
364085556 vanshit A Feb. 23, 2026, 4:09 p.m. OK Rust 2024 TESTS 4 31 0
364122112 DanielAnker A Feb. 23, 2026, 8:17 p.m. OK Rust 2024 TESTS 4 31 11673600
364145512 StarGazing A Feb. 24, 2026, 3:23 a.m. OK Rust 2024 TESTS 4 46 0
364141300 Tantellam A Feb. 24, 2026, 1:56 a.m. OK Rust 2024 TESTS 4 46 0

remove filters

Back to search problems