Codeforces Round 569 (Div. 1)

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
1179 Codeforces Round 569 (Div. 1) FINISHED False 7200 170686499 June 21, 2019, 5:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4392 ) B Tolik and His Uncle PROGRAMMING constructive algorithms 1800

B'This morning Tolik has understood that while he was sleeping he had invented an incredible problem which will be a perfect fit for Codeforces! But, as a "Discuss tasks" project hasn 't been born yet (in English, well), he decides to test a problem and asks his uncle. After a long time thinking, Tolik 's uncle hasn 't any ideas on how to solve it. But, he doesn 't want to tell Tolik about his inability to solve it, so he hasn 't found anything better than asking you how to solve this task. In this task you are given a cell field n cdot m , consisting of n rows and m columns, where point 's coordinates (x, y) mean it is situated in the x -th row and y -th column, considering numeration from one ( 1 <= q x <= q n, 1 <= q y <= q m ). Initially, you stand in the cell (1, 1) . Every move you can jump from cell (x, y) , which you stand in, by any non-zero vector (dx, dy) , thus you will stand in the (x+dx, y+dy) cell. Obviously, you can 't leave the field, but also there is one more important condition -- you 're not allowed to use one vector twice. Your task is to visit each cell of the field exactly once (the initial cell is considered as already visited). Tolik 's uncle is a very respectful person. Help him to solve this task! The first and only line contains two positive integers n, m ( 1 <= q n cdot m <= q 10^{6} ) -- the number of rows and columns of the field respectively. Print "-1" (without quotes) if it is impossible to visit every cell exactly once. Else print n cdot m pairs of integers, i -th from them should contain two integers x_i, y_i ( 1 <= q x_i <= q n, 1 <= q y_i <= q m ) -- cells of the field in order of visiting, so that all of them are distinct and vectors of jumps between them are distinct too. Notice that the first cell should have (1, 1) coordinates, according to the statement. The vectors from the first example in the order of making jumps are '...

Tutorials

Editorial of Round #569

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59262279 C20200904 B Aug. 22, 2019, 9:05 a.m. OK GNU C++11 TESTS 90 62 0 1800
55954713 LJC00118 B June 23, 2019, 6:10 a.m. OK GNU C++11 TESTS 90 62 0 1800
56025250 MagicSpark B June 25, 2019, 6:35 a.m. OK GNU C++11 TESTS 90 62 204800 1800
65710556 huanggs B Nov. 25, 2019, 2:13 p.m. OK GNU C++11 TESTS 90 77 0 1800
65706648 huanggs B Nov. 25, 2019, 12:51 p.m. OK GNU C++11 TESTS 90 77 0 1800
55884200 LJC00118 B June 21, 2019, 5:34 p.m. OK GNU C++11 TESTS 90 77 0 1800
55894915 7NationTengri B June 21, 2019, 6:20 p.m. OK GNU C++11 TESTS 90 77 2969600 1800
55884457 lk_ZeroMaker B June 21, 2019, 5:35 p.m. OK GNU C++11 TESTS 90 77 4198400 1800
55882429 Umi B June 21, 2019, 5:27 p.m. OK GNU C++11 TESTS 90 77 8396800 1800
59444695 luogu_bot2 B Aug. 25, 2019, 12:50 p.m. OK GNU C++11 TESTS 90 78 0 1800
55887368 wleung_bvg B June 21, 2019, 5:47 p.m. OK GNU C++14 TESTS 90 93 3379200 1800
56296182 AuqaKyz B June 30, 2019, 6:04 a.m. OK GNU C++14 TESTS 90 171 0 1800
55918265 vsriram1012 B June 22, 2019, 6:26 a.m. OK GNU C++14 TESTS 90 171 0 1800
55910819 ELPSY_CONGROO B June 22, 2019, 1:48 a.m. OK GNU C++14 TESTS 90 171 0 1800
60333956 miaokehao B Sept. 10, 2019, 7:33 a.m. OK GNU C++14 TESTS 90 186 0 1800
56378691 duxing201606 B July 1, 2019, 7:35 a.m. OK GNU C++14 TESTS 90 186 0 1800
56062442 DongryulKim B June 26, 2019, 6:14 a.m. OK GNU C++14 TESTS 90 186 0 1800
55996093 arusha1 B June 24, 2019, 10:30 a.m. OK GNU C++14 TESTS 90 186 0 1800
55959441 mayaohua2003 B June 23, 2019, 8:54 a.m. OK GNU C++14 TESTS 90 186 0 1800
55880962 TonySnark B June 21, 2019, 5:21 p.m. OK GNU C++14 TESTS 90 186 0 1800
59942625 lesskreker B Sept. 3, 2019, 11:59 a.m. OK GNU C++17 TESTS 90 78 0 1800
56037913 limbo.null B June 25, 2019, 12:57 p.m. OK GNU C++17 TESTS 90 108 12902400 1800
55984594 m1sch3f B June 24, 2019, 1:56 a.m. OK GNU C++17 TESTS 90 155 16281600 1800
57193172 tabasz B July 17, 2019, 11:20 a.m. OK GNU C++17 TESTS 90 171 0 1800
56874923 JiangYutong B July 12, 2019, 7:55 a.m. OK GNU C++17 TESTS 90 171 0 1800
55931652 cjwj5505 B June 22, 2019, 11:47 a.m. OK GNU C++17 TESTS 90 171 0 1800
56794997 Unsterblicher_Geist B July 10, 2019, 12:11 p.m. OK GNU C++17 TESTS 90 171 102400 1800
69911128 ILLLZKQF B Jan. 31, 2020, 3:25 p.m. OK GNU C++17 TESTS 90 186 0 1800
65705525 K0u1e B Nov. 25, 2019, 12:26 p.m. OK GNU C++17 TESTS 90 186 0 1800
56385047 direks B July 1, 2019, 10:09 a.m. OK GNU C++17 TESTS 90 186 0 1800
61580964 sighduck B Oct. 1, 2019, 1:42 a.m. OK Go TESTS 90 295 32051200 1800
69863933 Hemose B Jan. 30, 2020, 7:35 p.m. OK Java 11 TESTS 90 326 16179200 1800
55932544 icpc_loser B June 22, 2019, 12:11 p.m. OK Java 8 TESTS 90 202 37888000 1800
64746378 dalt B Nov. 12, 2019, 1:41 p.m. OK Java 8 TESTS 90 202 64102400 1800
56542620 JCKG B July 5, 2019, 6:06 a.m. OK Java 8 TESTS 90 233 37683200 1800
55940744 rahsutamrev B June 22, 2019, 4:29 p.m. OK Java 8 TESTS 90 233 37888000 1800
55963949 kenpen B June 23, 2019, 11:01 a.m. OK Java 8 TESTS 90 249 0 1800
59906906 adeepgarg13 B Sept. 2, 2019, 3:44 p.m. OK Java 8 TESTS 90 264 37785600 1800
55932686 -messi- B June 22, 2019, 12:16 p.m. OK Java 8 TESTS 90 264 38092800 1800
59508496 mennafadali B Aug. 26, 2019, 7:05 a.m. OK Java 8 TESTS 90 280 0 1800
56542688 JCKG B July 5, 2019, 6:08 a.m. OK Java 8 TESTS 90 280 0 1800
55940874 4mda4mda B June 22, 2019, 4:33 p.m. OK Java 8 TESTS 90 280 0 1800
59404143 Spheniscine B Aug. 24, 2019, 1:15 p.m. OK Kotlin TESTS 90 264 39936000 1800
59426679 Spheniscine B Aug. 25, 2019, 3:09 a.m. OK Kotlin TESTS 90 265 39936000 1800
55896200 knightL B June 21, 2019, 6:27 p.m. OK Kotlin TESTS 90 265 51814400 1800
56054473 SpinDOS B June 25, 2019, 9:47 p.m. OK Mono C# TESTS 90 249 3174400 1800
56054545 SpinDOS B June 25, 2019, 9:51 p.m. OK Mono C# TESTS 90 249 3174400 1800
55886795 claw88 B June 21, 2019, 5:45 p.m. OK Mono C# TESTS 90 452 3174400 1800
55902176 omikad B June 21, 2019, 6:58 p.m. OK Mono C# TESTS 90 498 43008000 1800
57771663 scorpiowf B July 26, 2019, 1:13 a.m. OK MS C++ TESTS 90 249 3686400 1800
55887434 lxhgww B June 21, 2019, 5:47 p.m. OK MS C++ TESTS 90 265 0 1800
64123721 vjudge3 B Nov. 3, 2019, 3:18 a.m. OK MS C++ TESTS 90 265 0 1800
55885075 math957963 B June 21, 2019, 5:38 p.m. OK MS C++ TESTS 90 296 11468800 1800
55942590 NVAL B June 22, 2019, 5:36 p.m. OK MS C++ 2017 TESTS 90 295 4198400 1800
68735247 AleksanderBalobanov B Jan. 13, 2020, 7:50 p.m. OK MS C++ 2017 TESTS 90 296 0 1800
55882126 sempav B June 21, 2019, 5:25 p.m. OK MS C++ 2017 TESTS 90 296 0 1800
55938598 petko_mitkov B June 22, 2019, 3:16 p.m. OK MS C++ 2017 TESTS 90 296 14848000 1800
55885433 mandinga B June 21, 2019, 5:39 p.m. OK MS C++ 2017 TESTS 90 311 0 1800
55972392 nik1998 B June 23, 2019, 3:32 p.m. OK MS C++ 2017 TESTS 90 405 2457600 1800
56010267 YESMAths B June 24, 2019, 5:45 p.m. OK PyPy 2 TESTS 90 436 71782400 1800
55943866 shehebe B June 22, 2019, 6:22 p.m. OK PyPy 2 TESTS 90 623 103628800 1800
55885148 algmyr B June 21, 2019, 5:38 p.m. OK PyPy 3 TESTS 90 467 50790400 1800
55955408 c1729 B June 23, 2019, 6:40 a.m. OK PyPy 3 TESTS 90 686 65843200 1800
55910185 titia B June 22, 2019, 1:07 a.m. OK PyPy 3 TESTS 90 717 9523200 1800
55910136 titia B June 22, 2019, 1:04 a.m. OK PyPy 3 TESTS 90 717 9728000 1800
56307743 Carnivorei B June 30, 2019, 12:54 p.m. OK PyPy 3 TESTS 90 748 9625600 1800
58463591 frederick99 B Aug. 8, 2019, 6 p.m. OK PyPy 3 TESTS 90 795 10342400 1800
56141153 pineriver B June 27, 2019, 3:24 a.m. OK PyPy 3 TESTS 90 826 37888000 1800
56516778 lionvs132 B July 4, 2019, 1:05 p.m. OK PyPy 3 TESTS 90 826 66048000 1800
56140712 pineriver B June 27, 2019, 3:06 a.m. OK PyPy 3 TESTS 90 857 36556800 1800
56140268 pineriver B June 27, 2019, 2:47 a.m. OK PyPy 3 TESTS 90 966 58163200 1800
57542183 Helli.code B July 22, 2019, 4:10 p.m. OK Python 2 TESTS 90 623 45568000 1800
55890545 nwi B June 21, 2019, 6 p.m. OK Python 2 TESTS 90 982 3481600 1800
55955305 c1729 B June 23, 2019, 6:36 a.m. OK Python 3 TESTS 90 888 64921600 1800
55886990 EbTech B June 21, 2019, 5:45 p.m. OK Rust TESTS 90 155 0 1800
56423886 delta_4d B July 2, 2019, 8:40 a.m. OK Rust TESTS 90 171 0 1800

remove filters

Back to search problems