Codeforces Global Round 10

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
1392 Codeforces Global Round 10 FINISHED False 10800 139591463 Aug. 16, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3591 ) E Omkar and Duck PROGRAMMING bitmasks constructive algorithms interactive math

B"This is an interactive problem. Omkar has just come across a duck! The duck is walking on a grid with n rows and n columns ( 2 <= q n <= q 25 ) so that the grid contains a total of n^2 cells. Let's denote by (x, y) the cell in the x -th row from the top and the y -th column from the left. Right now, the duck is at the cell (1, 1) (the cell in the top left corner) and would like to reach the cell (n, n) (the cell in the bottom right corner) by moving either down 1 cell or to the right 1 cell each second. Since Omkar thinks ducks are fun, he wants to play a game with you based on the movement of the duck. First, for each cell (x, y) in the grid, you will tell Omkar a nonnegative integer a_{x,y} not exceeding 10^{16} , and Omkar will then put a_{x,y} uninteresting problems in the cell (x, y) . After that, the duck will start their journey from (1, 1) to (n, n) . For each cell (x, y) that the duck crosses during their journey (including the cells (1, 1) and (n, n) ), the duck will eat the a_{x,y} uninteresting problems in that cell. Once the duck has completed their journey, Omkar will measure their mass to determine the total number k of uninteresting problems that the duck ate on their journey, and then tell you k . Your challenge, given k , is to exactly reproduce the duck's path, i. e. to tell Omkar precisely which cells the duck crossed on their journey. To be sure of your mastery of this game, Omkar will have the duck complete q different journeys ( 1 <= q q <= q 10^3 ). Note that all journeys are independent: at the beginning of each journey, the cell (x, y) will still contain a_{x,y} uninteresting tasks. The interaction will begin with a line containing a single integer n ( 2 <= q n <= q 25 ), the amount of rows and columns in the grid. Read it. Your program should then print n "...

Tutorials

Codeforces Global Round 10 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
90881083 Steve1234 E Aug. 25, 2020, 8:13 a.m. OK Clang++17 Diagnostics TESTS 34 124 307200
90887759 icysky E Aug. 25, 2020, 9:48 a.m. OK GNU C++11 TESTS 34 46 0
90430235 He_Ren E Aug. 20, 2020, 3:45 a.m. OK GNU C++11 TESTS 34 46 0
90399251 do_while_true E Aug. 19, 2020, 2:55 p.m. OK GNU C++11 TESTS 34 46 102400
90758619 rain_Isle E Aug. 23, 2020, 1:24 p.m. OK GNU C++11 TESTS 34 46 3891200
90693684 yinky E Aug. 22, 2020, 2:09 p.m. OK GNU C++11 TESTS 34 46 3891200
90865696 dqa2020 E Aug. 25, 2020, 3:53 a.m. OK GNU C++11 TESTS 34 61 0
90367470 jiaangk_ E Aug. 19, 2020, 7:33 a.m. OK GNU C++11 TESTS 34 61 0
90762909 froggyzhang E Aug. 23, 2020, 2:20 p.m. OK GNU C++11 TESTS 34 61 3891200
90643611 RainAir E Aug. 22, 2020, 12:36 a.m. OK GNU C++11 TESTS 34 61 4198400
91182835 digcboy E Aug. 28, 2020, 6 a.m. OK GNU C++11 TESTS 34 77 0
90863831 oipotato E Aug. 25, 2020, 2:59 a.m. OK GNU C++14 TESTS 34 46 0
90418891 preyam E Aug. 19, 2020, 8:15 p.m. OK GNU C++14 TESTS 34 46 0
90337594 jaglannikhil888 E Aug. 18, 2020, 6:37 p.m. OK GNU C++14 TESTS 34 46 0
90296981 kunalvaswani123 E Aug. 18, 2020, 10:08 a.m. OK GNU C++14 TESTS 34 46 102400
91298569 Linkus E Aug. 29, 2020, 4:17 p.m. OK GNU C++14 TESTS 34 46 204800
90727424 A.K.E.E. E Aug. 23, 2020, 4:48 a.m. OK GNU C++14 TESTS 34 46 3788800
90517777 Yyh. E Aug. 21, 2020, 9:06 a.m. OK GNU C++14 TESTS 34 46 3788800
90365635 iec2017020 E Aug. 19, 2020, 7:06 a.m. OK GNU C++14 TESTS 34 61 204800
90304521 Satvik_10 E Aug. 18, 2020, 11:51 a.m. OK GNU C++14 TESTS 34 61 204800
90516308 chaudhary_19 E Aug. 21, 2020, 8:46 a.m. OK GNU C++14 TESTS 34 61 4198400
90500019 RogueNinja E Aug. 21, 2020, 12:03 a.m. OK GNU C++17 TESTS 34 46 0
90494892 sachin208 E Aug. 20, 2020, 8:30 p.m. OK GNU C++17 TESTS 34 46 0
90480582 Noureldin E Aug. 20, 2020, 4:21 p.m. OK GNU C++17 TESTS 34 46 0
90370559 Harshit3211 E Aug. 19, 2020, 8:17 a.m. OK GNU C++17 TESTS 34 46 0
90353329 Natusil E Aug. 19, 2020, 2:56 a.m. OK GNU C++17 TESTS 34 46 0
90352038 gzhffIThh E Aug. 19, 2020, 2:16 a.m. OK GNU C++17 TESTS 34 46 0
90348317 aarav.cube E Aug. 18, 2020, 11:51 p.m. OK GNU C++17 TESTS 34 46 0
90312795 loulingli E Aug. 18, 2020, 1:42 p.m. OK GNU C++17 TESTS 34 46 0
90435175 velu276 E Aug. 20, 2020, 5:38 a.m. OK GNU C++17 TESTS 34 46 102400
90432972 cowbrain E Aug. 20, 2020, 4:53 a.m. OK GNU C++17 TESTS 34 46 204800
90881458 mshiladityam E Aug. 25, 2020, 8:18 a.m. OK GNU C++17 (64) TESTS 34 31 0
91705452 3liAckerman E Sept. 3, 2020, 9:47 a.m. OK GNU C++17 (64) TESTS 34 46 0
91177917 LiChenKoh E Aug. 28, 2020, 4:09 a.m. OK GNU C++17 (64) TESTS 34 46 0
90330536 hello_codeforces E Aug. 18, 2020, 4:59 p.m. OK GNU C++17 (64) TESTS 34 46 0
90330184 hello_codeforces E Aug. 18, 2020, 4:55 p.m. OK GNU C++17 (64) TESTS 34 46 0
90328012 hello_codeforces E Aug. 18, 2020, 4:28 p.m. OK GNU C++17 (64) TESTS 34 46 0
91251339 devillove084 E Aug. 29, 2020, 2:24 a.m. OK GNU C++17 (64) TESTS 34 61 0
90695996 ivan100sic E Aug. 22, 2020, 2:39 p.m. OK GNU C++17 (64) TESTS 34 61 4300800
91515395 sharrad99 E Aug. 31, 2020, 5:54 p.m. OK GNU C++17 (64) TESTS 34 62 0
91084948 jaga__daku E Aug. 26, 2020, 6:46 p.m. OK GNU C++17 (64) TESTS 34 62 0
90443042 zorinermakov E Aug. 20, 2020, 7:44 a.m. OK Java 11 TESTS 34 280 0
90705260 Relief E Aug. 22, 2020, 4:55 p.m. OK Java 11 TESTS 34 327 24166400
90710877 SaurabhMaster E Aug. 22, 2020, 6:28 p.m. OK Java 11 TESTS 34 327 24576000
90525479 pranshu1234 E Aug. 21, 2020, 11:04 a.m. OK Java 11 TESTS 34 327 25190400
91115666 trungnv280201 E Aug. 27, 2020, 8:19 a.m. OK Java 11 TESTS 34 343 0
90868181 zhupeijun E Aug. 25, 2020, 4:49 a.m. OK Java 11 TESTS 34 405 0
90391424 idk321 E Aug. 19, 2020, 1:19 p.m. OK Java 11 TESTS 34 545 0
91128556 UniverseofHK E Aug. 27, 2020, 11:32 a.m. OK Java 11 TESTS 34 561 204800
90374067 Bruteforceman E Aug. 19, 2020, 9:08 a.m. OK Java 11 TESTS 34 576 0
90393090 cwise E Aug. 19, 2020, 1:40 p.m. OK Java 8 TESTS 34 186 19968000
91442571 lazypanda E Aug. 30, 2020, 10:28 p.m. OK Java 8 TESTS 34 218 20684800
90761869 ShesMyNerd E Aug. 23, 2020, 2:06 p.m. OK Java 8 TESTS 34 405 20480000
90761790 ShesMyNerd E Aug. 23, 2020, 2:04 p.m. OK Java 8 TESTS 34 421 20480000
91248068 godxpunk E Aug. 28, 2020, 11:37 p.m. OK Java 8 TESTS 34 467 0
91488303 koper E Aug. 31, 2020, 12:04 p.m. OK Kotlin TESTS 34 452 21811200
91083196 areo E Aug. 26, 2020, 6:15 p.m. OK MS C++ 2017 TESTS 34 202 0
90292048 Numbervan E Aug. 18, 2020, 8:56 a.m. OK MS C++ 2017 TESTS 34 218 307200
90522084 Holymonk E Aug. 21, 2020, 10:10 a.m. OK MS C++ 2017 TESTS 34 218 3788800
90822762 shehebe E Aug. 24, 2020, 11:57 a.m. OK PyPy 2 TESTS 34 280 28262400
90811472 tycyd E Aug. 24, 2020, 9:12 a.m. OK PyPy 3 TESTS 34 343 28569600
90744261 cyanfirestone E Aug. 23, 2020, 9:50 a.m. OK PyPy 3 TESTS 34 404 27545600
90882280 LinLinOvO E Aug. 25, 2020, 8:28 a.m. OK PyPy 3 TESTS 34 421 9728000
90566407 mees E Aug. 21, 2020, 3:08 p.m. OK PyPy 3 TESTS 34 436 29900800
90631364 gintoki_s E Aug. 21, 2020, 7 p.m. OK PyPy 3 TESTS 34 592 26214400
90317952 jhasaurav215 E Aug. 18, 2020, 2:42 p.m. OK PyPy 3 TESTS 34 592 52838400
90395844 420__IQ E Aug. 19, 2020, 2:15 p.m. OK PyPy 3 TESTS 34 639 9830400
90771651 tamato E Aug. 23, 2020, 4:16 p.m. OK PyPy 3 TESTS 34 763 30515200
90356564 myotra E Aug. 19, 2020, 4:27 a.m. OK PyPy 3 TESTS 34 795 9932800
90727728 Strorkis E Aug. 23, 2020, 4:57 a.m. OK Rust TESTS 34 108 3788800
90485080 pandrei E Aug. 20, 2020, 5:22 p.m. OK Rust TESTS 34 374 0

remove filters

Back to search problems