Educational Codeforces Round 49 (Rated for 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
1027 Educational Codeforces Round 49 (Rated for Div. 2) FINISHED False 7200 197220299 Aug. 18, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8395 ) B Numbers on the Chessboard PROGRAMMING implementation math 1300

B'You are given a chessboard of size n x n . It is filled with numbers from 1 to n^2 in the following way: the first lceil frac{n^2}{2} rceil numbers from 1 to lceil frac{n^2}{2} rceil are written in the cells with even sum of coordinates from left to right from top to bottom. The rest n^2 - lceil frac{n^2}{2} rceil numbers from lceil frac{n^2}{2} rceil + 1 to n^2 are written in the cells with odd sum of coordinates from left to right from top to bottom. The operation lceil frac{x}{y} rceil means division x by y rounded up. For example, the left board on the following picture is the chessboard which is given for n=4 and the right board is the chessboard which is given for n=5 . You are given q queries. The i -th query is described as a pair x_i, y_i . The answer to the i -th query is the number written in the cell x_i, y_i ( x_i is the row, y_i is the column). Rows and columns are numbered from 1 to n . The first line contains two integers n and q ( 1 <= n <= 10^9 , 1 <= q <= 10^5 ) -- the size of the board and the number of queries. The next q lines contain two integers each. The i -th line contains two integers x_i, y_i ( 1 <= x_i, y_i <= n ) -- description of the i -th query. For each query from 1 to q print the answer to this query. The answer to the i -th query is the number written in the cell x_i, y_i ( x_i is the row, y_i is the column). Rows and columns are numbered from 1 to n . Queries are numbered from 1 to q in order of the input. Answers to the queries from examples are on the board in the picture from the problem statement. '...

Tutorials

Educational Codeforces Round 49 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42072795 vjudge2 B Aug. 25, 2018, 2:19 a.m. OK Clang++17 Diagnostics TESTS 12 186 0 1300
42760839 vjudge3 B Sept. 11, 2018, 10:28 a.m. OK Clang++17 Diagnostics TESTS 12 186 0 1300
41904409 rr_ B Aug. 20, 2018, 1:50 p.m. OK D TESTS 12 156 0 1300
42359788 eqx_barboss B Sept. 2, 2018, 11:09 a.m. OK Delphi TESTS 12 670 0 1300
41795494 shuiskaya B Aug. 18, 2018, 4:46 p.m. OK Delphi TESTS 12 795 307200 1300
42459857 LeVanThuc B Sept. 4, 2018, 1:13 p.m. OK FPC TESTS 12 265 0 1300
41960052 _Time_Lord_ B Aug. 22, 2018, 8:55 a.m. OK FPC TESTS 12 265 0 1300
41795099 nazarlvr B Aug. 18, 2018, 4:42 p.m. OK FPC TESTS 12 265 7987200 1300
41795224 Dusildorf B Aug. 18, 2018, 4:44 p.m. OK FPC TESTS 12 280 819200 1300
41897813 anurag122898 B Aug. 20, 2018, 10:32 a.m. OK GNU C TESTS 12 93 0 1300
41824769 kishanTiwari B Aug. 19, 2018, 11:28 a.m. OK GNU C TESTS 12 93 0 1300
41802737 SaimaJST B Aug. 18, 2018, 7:39 p.m. OK GNU C TESTS 12 108 0 1300
41796427 vladislav_k B Aug. 18, 2018, 4:59 p.m. OK GNU C TESTS 12 108 0 1300
41940030 NOMAN201705088 B Aug. 21, 2018, 2:52 p.m. OK GNU C TESTS 12 108 819200 1300
42285386 vjudge4 B Aug. 30, 2018, 4:51 p.m. OK GNU C TESTS 12 109 0 1300
42247757 Alekhya_Karanam B Aug. 29, 2018, 4:22 p.m. OK GNU C TESTS 12 109 0 1300
42200589 Mohi_149 B Aug. 28, 2018, 8:34 a.m. OK GNU C TESTS 12 109 0 1300
41937539 5AF1 B Aug. 21, 2018, 1:35 p.m. OK GNU C TESTS 12 109 0 1300
41930856 shiguang6969 B Aug. 21, 2018, 10:06 a.m. OK GNU C TESTS 12 109 0 1300
41990815 hangyesheng B Aug. 23, 2018, 8:44 a.m. OK GNU C++ TESTS 12 62 0 1300
42263570 lqz B Aug. 30, 2018, 5:30 a.m. OK GNU C++ TESTS 12 77 0 1300
41958305 wh_ZH B Aug. 22, 2018, 7:59 a.m. OK GNU C++ TESTS 12 77 0 1300
41954579 luogu_bot3 B Aug. 22, 2018, 5:31 a.m. OK GNU C++ TESTS 12 77 0 1300
41950498 _CZH B Aug. 22, 2018, 12:34 a.m. OK GNU C++ TESTS 12 77 0 1300
41813649 luogu_bot2 B Aug. 19, 2018, 5:15 a.m. OK GNU C++ TESTS 12 77 0 1300
41813355 Zachary_260325_cpp B Aug. 19, 2018, 5:02 a.m. OK GNU C++ TESTS 12 77 0 1300
41811840 HatsuneMikuo B Aug. 19, 2018, 3:37 a.m. OK GNU C++ TESTS 12 77 102400 1300
42082426 Patti B Aug. 25, 2018, 8:57 a.m. OK GNU C++ TESTS 12 78 0 1300
41920658 ACist B Aug. 21, 2018, 3:48 a.m. OK GNU C++ TESTS 12 78 0 1300
43252133 Amir_Diab B Sept. 22, 2018, 12:36 p.m. OK GNU C11 TESTS 12 108 1638400 1300
55180226 patilc125 B June 5, 2019, 9:26 p.m. OK GNU C11 TESTS 12 436 0 1300
44356383 ljx19990328 B Oct. 15, 2018, 12:37 p.m. OK GNU C11 TESTS 12 436 0 1300
53031138 kaiboy B April 20, 2019, 12:27 a.m. OK GNU C11 TESTS 12 436 0 1300
50289883 rainboy B Feb. 21, 2019, 4:53 p.m. OK GNU C11 TESTS 12 451 0 1300
58871158 Cloud_ B Aug. 15, 2019, 3:30 p.m. OK GNU C11 TESTS 12 452 0 1300
51681537 almight1 B March 22, 2019, 12:52 p.m. OK GNU C11 TESTS 12 452 0 1300
69533127 ndaidemf B Jan. 25, 2020, 5:49 p.m. OK GNU C11 TESTS 12 452 0 1300
50279463 Optatum B Feb. 21, 2019, 11:59 a.m. OK GNU C11 TESTS 12 467 0 1300
55126806 vjudge2 B June 5, 2019, 1:13 p.m. OK GNU C11 TESTS 12 467 0 1300
41823584 zzb111 B Aug. 19, 2018, 10:51 a.m. OK GNU C++11 TESTS 12 62 0 1300
43053271 Umi B Sept. 19, 2018, 12:34 a.m. OK GNU C++11 TESTS 12 62 0 1300
41794481 skmonir B Aug. 18, 2018, 4:37 p.m. OK GNU C++11 TESTS 12 77 0 1300
53211678 BLUE_LIGHT B April 24, 2019, 5:57 a.m. OK GNU C++11 TESTS 12 77 0 1300
46756402 mtmohim B Dec. 8, 2018, 11:58 a.m. OK GNU C++11 TESTS 12 77 0 1300
44900790 Jackcy B Oct. 26, 2018, 9 a.m. OK GNU C++11 TESTS 12 77 0 1300
43813021 luogu_bot5 B Oct. 5, 2018, 2:48 a.m. OK GNU C++11 TESTS 12 77 0 1300
42019866 hoangthuc701 B Aug. 24, 2018, 8:29 a.m. OK GNU C++11 TESTS 12 77 0 1300
41885392 Sooke B Aug. 20, 2018, 3:19 a.m. OK GNU C++11 TESTS 12 77 0 1300
41869169 tokitsukaze B Aug. 19, 2018, 5:53 p.m. OK GNU C++11 TESTS 12 77 102400 1300
41803317 wleung_bvg B Aug. 18, 2018, 7:58 p.m. OK GNU C++14 TESTS 12 78 0 1300
45169259 incognito_ B Nov. 1, 2018, 12:13 p.m. OK GNU C++14 TESTS 12 93 0 1300
57904405 muhi1112 B July 28, 2019, 5:02 p.m. OK GNU C++14 TESTS 12 93 0 1300
51415867 dp18 B March 17, 2019, 1:59 p.m. OK GNU C++14 TESTS 12 93 0 1300
50256542 hyson1996 B Feb. 20, 2019, 8:03 p.m. OK GNU C++14 TESTS 12 93 0 1300
41867766 Rigan_ B Aug. 19, 2018, 5:31 p.m. OK GNU C++14 TESTS 12 108 0 1300
44475782 kostyanf14 B Oct. 18, 2018, 8:52 a.m. OK GNU C++14 TESTS 12 108 0 1300
48439603 vjudge3 B Jan. 16, 2019, 1:34 a.m. OK GNU C++14 TESTS 12 108 0 1300
51903180 firranze B March 27, 2019, 2:17 p.m. OK GNU C++14 TESTS 12 108 0 1300
52889470 vjudge1 B April 17, 2019, 7:09 a.m. OK GNU C++14 TESTS 12 108 0 1300
41808239 Trisolaris B Aug. 19, 2018, 12:32 a.m. OK GNU C++17 TESTS 12 78 102400 1300
41808235 Trisolaris B Aug. 19, 2018, 12:31 a.m. OK GNU C++17 TESTS 12 78 102400 1300
41975672 BagishovMikail B Aug. 22, 2018, 6:35 p.m. OK GNU C++17 TESTS 12 78 168140800 1300
47869660 ICL B Jan. 3, 2019, 12:05 p.m. OK GNU C++17 TESTS 12 93 0 1300
50527358 vjudge5 B Feb. 26, 2019, 12:21 p.m. OK GNU C++17 TESTS 12 93 0 1300
52433808 xyw5vplus1 Cuc-center B April 7, 2019, 1:48 a.m. OK GNU C++17 TESTS 12 93 0 1300
48439598 Kissheart B Jan. 16, 2019, 1:33 a.m. OK GNU C++17 TESTS 12 93 204800 1300
45390791 thienlongtpct B Nov. 6, 2018, 9:09 p.m. OK GNU C++17 TESTS 12 93 2969600 1300
50585373 vjudge4 B Feb. 28, 2019, 3:01 a.m. OK GNU C++17 TESTS 12 108 0 1300
62851106 vjudge4 B Oct. 18, 2019, 7:24 a.m. OK GNU C++17 TESTS 12 108 0 1300
42006852 fc-lib-xyz B Aug. 23, 2018, 7:09 p.m. OK Go TESTS 12 108 13824000 1300
45320172 davidguandev B Nov. 5, 2018, 10:10 a.m. OK Go TESTS 12 452 4505600 1300
43796636 achm B Oct. 4, 2018, 3:46 p.m. OK Go TESTS 12 483 4505600 1300
52758719 jedikni B April 14, 2019, 6:53 p.m. OK Haskell TESTS 12 124 16896000 1300
52758517 jedikni B April 14, 2019, 6:44 p.m. OK Haskell TESTS 12 139 16896000 1300
52758860 jedikni B April 14, 2019, 6:58 p.m. OK Haskell TESTS 12 155 16896000 1300
47377381 sooraj10 B Dec. 22, 2018, 6:17 p.m. OK Java 8 TESTS 12 155 0 1300
46530305 llamaoo7 B Dec. 3, 2018, 4:34 a.m. OK Java 8 TESTS 12 155 0 1300
66296230 bluesky111 B Dec. 5, 2019, 4:33 a.m. OK Java 8 TESTS 12 155 4198400 1300
41927620 xodiac B Aug. 21, 2018, 8:18 a.m. OK Java 8 TESTS 12 170 0 1300
45941895 stolis B Nov. 18, 2018, 8:06 p.m. OK Java 8 TESTS 12 170 2560000 1300
64540923 wabadabakalakaboo B Nov. 8, 2019, 6:38 p.m. OK Java 8 TESTS 12 171 0 1300
47599713 Ahmed_Diab B Dec. 27, 2018, 9:03 p.m. OK Java 8 TESTS 12 186 0 1300
41924541 poikniok B Aug. 21, 2018, 6:46 a.m. OK Java 8 TESTS 12 186 0 1300
41827466 bhautik_77 B Aug. 19, 2018, 12:49 p.m. OK Java 8 TESTS 12 186 0 1300
41823614 Pratik_Rajani B Aug. 19, 2018, 10:52 a.m. OK Java 8 TESTS 12 186 0 1300
61604954 david_varela B Oct. 1, 2019, 12:22 p.m. OK Kotlin TESTS 12 405 6963200 1300
42359561 buenasdiaz B Sept. 2, 2018, 11:01 a.m. OK Kotlin TESTS 12 936 0 1300
41948650 erenerisken B Aug. 21, 2018, 9:22 p.m. OK Kotlin TESTS 12 982 0 1300
42360705 buenasdiaz B Sept. 2, 2018, 11:44 a.m. OK Kotlin TESTS 12 998 0 1300
54915383 og.kostya B June 1, 2019, 1:28 p.m. OK Mono C# TESTS 12 78 3072000 1300
41816996 keep.deep B Aug. 19, 2018, 7:07 a.m. OK Mono C# TESTS 12 155 3072000 1300
42544877 Skndr801 B Sept. 6, 2018, 8:26 a.m. OK Mono C# TESTS 12 187 38707200 1300
50589455 Mandrade B Feb. 28, 2019, 6:30 a.m. OK Mono C# TESTS 12 530 6758400 1300
42009111 Evgenii_Stepanov B Aug. 23, 2018, 9:07 p.m. OK Mono C# TESTS 12 576 3072000 1300
41799365 jeanstefanovich B Aug. 18, 2018, 5:57 p.m. OK Mono C# TESTS 12 576 3072000 1300
41800257 Divyesh B Aug. 18, 2018, 6:21 p.m. OK Mono C# TESTS 12 576 3072000 1300
42145740 Jarazorg B Aug. 27, 2018, 8:43 a.m. OK Mono C# TESTS 12 623 3072000 1300
43581778 danilprokat B Sept. 29, 2018, 5:44 p.m. OK Mono C# TESTS 12 686 3891200 1300
44592808 nemars B Oct. 20, 2018, 11:37 a.m. OK Mono C# TESTS 12 733 3072000 1300
68697893 vjudge3 B Jan. 13, 2020, 8:30 a.m. OK MS C++ TESTS 12 93 0 1300
68833669 vjudge5 B Jan. 15, 2020, 1:19 a.m. OK MS C++ TESTS 12 93 0 1300
68743566 vjudge4 B Jan. 14, 2020, 3:02 a.m. OK MS C++ TESTS 12 93 0 1300
68741913 vjudge1 B Jan. 14, 2020, 1:50 a.m. OK MS C++ TESTS 12 93 0 1300
68697965 vjudge2 B Jan. 13, 2020, 8:31 a.m. OK MS C++ TESTS 12 93 0 1300
51221950 vjudge4 B March 12, 2019, 12:46 p.m. OK MS C++ TESTS 12 93 0 1300
52241413 vjudge2 B April 2, 2019, 4:04 p.m. OK MS C++ TESTS 12 93 0 1300
52736942 vjudge2 B April 14, 2019, 6:56 a.m. OK MS C++ TESTS 12 93 0 1300
52740120 vjudge4 B April 14, 2019, 8:34 a.m. OK MS C++ TESTS 12 93 0 1300
62851254 vjudge4 B Oct. 18, 2019, 7:27 a.m. OK MS C++ TESTS 12 93 0 1300
58689825 Wisdom12333 B Aug. 13, 2019, 2:31 a.m. OK MS C++ 2017 TESTS 12 124 0 1300
66366351 Tuff1aha B Dec. 5, 2019, 7:35 p.m. OK MS C++ 2017 TESTS 12 592 0 1300
54393229 Boryan07 B May 19, 2019, 5:52 p.m. OK MS C++ 2017 TESTS 12 608 0 1300
62867666 Mad112233 B Oct. 18, 2019, 12:46 p.m. OK MS C++ 2017 TESTS 12 608 0 1300
50583701 g-m-blake B Feb. 28, 2019, 12:47 a.m. OK MS C++ 2017 TESTS 12 608 0 1300
55288013 shafwanur010 B June 8, 2019, 6:11 a.m. OK PyPy 2 TESTS 12 280 11366400 1300
45234887 c1729 B Nov. 3, 2018, 8:46 a.m. OK PyPy 2 TESTS 12 296 14131200 1300
41802088 fortmax120 B Aug. 18, 2018, 7:16 p.m. OK PyPy 2 TESTS 12 577 16486400 1300
41804958 fortmax120 B Aug. 18, 2018, 8:59 p.m. OK PyPy 2 TESTS 12 577 16588800 1300
41798120 kd710306 B Aug. 18, 2018, 5:27 p.m. OK PyPy 2 TESTS 12 795 2662400 1300
44181824 vjudge4 B Oct. 12, 2018, 11:38 a.m. OK PyPy 3 TESTS 12 482 9216000 1300
44181820 teitoku B Oct. 12, 2018, 11:38 a.m. OK PyPy 3 TESTS 12 483 9113600 1300
47479626 xumouyi B Dec. 25, 2018, 3:22 a.m. OK PyPy 3 TESTS 12 483 9216000 1300
46678441 Annvv B Dec. 6, 2018, 11:01 a.m. OK PyPy 3 TESTS 12 514 9830400 1300
59833102 kchau B Sept. 1, 2019, 1:30 a.m. OK PyPy 3 TESTS 12 545 14643200 1300
61977720 pineriver B Oct. 6, 2019, 11:02 a.m. OK PyPy 3 TESTS 12 545 23347200 1300
45313023 mug B Nov. 5, 2018, 6:07 a.m. OK PyPy 3 TESTS 12 546 9523200 1300
42710254 cielavenir B Sept. 9, 2018, 3:41 p.m. OK PyPy 3 TESTS 12 654 9216000 1300
42673680 salexandru B Sept. 8, 2018, 12:26 p.m. OK PyPy 3 TESTS 12 670 13926400 1300
41799733 tanmay28 B Aug. 18, 2018, 6:06 p.m. OK PyPy 3 TESTS 12 717 9523200 1300
55016249 welivefree B June 3, 2019, 12:29 p.m. OK Python 2 TESTS 12 467 7680000 1300
48370539 biltharesatyendra B Jan. 14, 2019, 3:53 a.m. OK Python 2 TESTS 12 483 0 1300
55594494 backfire5 B June 15, 2019, 2:14 p.m. OK Python 2 TESTS 12 498 7680000 1300
61600035 bazzyadb B Oct. 1, 2019, 10:32 a.m. OK Python 2 TESTS 12 530 1638400 1300
42252987 Makler B Aug. 29, 2018, 6:45 p.m. OK Python 2 TESTS 12 576 1638400 1300
41924757 tnowakow B Aug. 21, 2018, 6:53 a.m. OK Python 2 TESTS 12 577 0 1300
41807925 eugalt B Aug. 18, 2018, 11:58 p.m. OK Python 2 TESTS 12 577 409600 1300
41797238 Mortal B Aug. 18, 2018, 5:10 p.m. OK Python 2 TESTS 12 592 0 1300
41814668 akshay125 B Aug. 19, 2018, 5:53 a.m. OK Python 2 TESTS 12 607 1638400 1300
41949660 davidzhou B Aug. 21, 2018, 11:03 p.m. OK Python 2 TESTS 12 608 0 1300
42289981 Skybytskyi.Nikita B Aug. 30, 2018, 7:59 p.m. OK Python 3 TESTS 12 405 11673600 1300
42143427 orailly B Aug. 27, 2018, 7:18 a.m. OK Python 3 TESTS 12 421 11673600 1300
42006582 emma B Aug. 23, 2018, 6:56 p.m. OK Python 3 TESTS 12 436 12185600 1300
50487811 iamssk B Feb. 25, 2019, 12:17 p.m. OK Python 3 TESTS 12 452 11161600 1300
51226127 Surya_41 B March 12, 2019, 2:12 p.m. OK Python 3 TESTS 12 482 6246400 1300
54640041 Aidos B May 25, 2019, 6:59 p.m. OK Python 3 TESTS 12 482 12288000 1300
47467702 shiversrip B Dec. 24, 2018, 7:21 p.m. OK Python 3 TESTS 12 483 5836800 1300
48072088 HomeDragon B Jan. 8, 2019, 1:22 a.m. OK Python 3 TESTS 12 498 6144000 1300
41900213 sergovoy B Aug. 20, 2018, 11:47 a.m. OK Python 3 TESTS 12 499 19968000 1300
45415088 augustthechemist B Nov. 7, 2018, 1:48 p.m. OK Python 3 TESTS 12 514 5632000 1300
42241628 yakamoto B Aug. 29, 2018, 12:53 p.m. OK Scala TESTS 12 530 0 1300

remove filters

Back to search problems