Educational Codeforces Round 141 (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
1783 Educational Codeforces Round 141 (Rated for Div. 2) FINISHED False 7200 64077863 Jan. 8, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18193 ) B Matrix of Differences PROGRAMMING constructive algorithms

B"For a square matrix of integers of size n x n , let's define its beauty as follows: for each pair of side-adjacent elements x and y , write out the number |x-y| , and then find the number of different numbers among them. For example, for the matrix begin{pmatrix} 1 & 3 4 & 2 end{pmatrix} the numbers we consider are |1-3|=2 , |1-4|=3 , |3-2|=1 and |4-2|=2 ; there are 3 different numbers among them ( 2 , 3 and 1 ), which means that its beauty is equal to 3 . You are given an integer n . You have to find a matrix of size n x n , where each integer from 1 to n^2 occurs exactly once, such that its beauty is the maximum possible among all such matrices. The first line contains a single integer t ( 1 <= t <= 49 ) xe2 x80 x93 the number of test cases. The first (and only) line of each test case contains a single integer n ( 2 <= n <= 50 ). For each test case, print n rows of n integers -- a matrix of integers of size n x n , where each number from 1 to n^2 occurs exactly once, such that its beauty is the maximum possible among all such matrices. If there are multiple answers, print any of them. "...

Tutorials

Educational Codeforces Round 141 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
188531004 Wizard_of_Orz B Jan. 9, 2023, 12:32 a.m. OK Clang++17 Diagnostics TESTS 3 46 0
188535485 TralSun B Jan. 9, 2023, 2:44 a.m. OK Clang++17 Diagnostics TESTS 3 358 0
188496919 code_chill B Jan. 8, 2023, 4:29 p.m. OK GNU C11 TESTS 3 483 0
188498581 srilaya18 B Jan. 8, 2023, 4:32 p.m. OK GNU C11 TESTS 3 498 0
188519303 Moka50 B Jan. 8, 2023, 7:22 p.m. OK GNU C11 TESTS 3 499 0
188503193 sidcodes_123 B Jan. 8, 2023, 4:49 p.m. OK GNU C11 TESTS 3 499 0
188504892 Moka50 B Jan. 8, 2023, 5 p.m. OK GNU C11 TESTS 3 499 0
188516212 Kritang B Jan. 8, 2023, 6:41 p.m. OK GNU C11 TESTS 3 936 0
188539489 chenxw_GGSDDU B Jan. 9, 2023, 4:07 a.m. OK GNU C++14 TESTS 3 15 0
188538879 _YXJS_ B Jan. 9, 2023, 3:55 a.m. OK GNU C++14 TESTS 3 15 0
188538393 InvisibleX B Jan. 9, 2023, 3:46 a.m. OK GNU C++14 TESTS 3 15 0
188538384 pbms_fev B Jan. 9, 2023, 3:46 a.m. OK GNU C++14 TESTS 3 15 0
188536414 mukari B Jan. 9, 2023, 3:04 a.m. OK GNU C++14 TESTS 3 15 0
188535850 rlc202204 B Jan. 9, 2023, 2:51 a.m. OK GNU C++14 TESTS 3 15 0
188535799 monotone_space B Jan. 9, 2023, 2:50 a.m. OK GNU C++14 TESTS 3 15 0
188544571 Exbilar B Jan. 9, 2023, 5:30 a.m. OK GNU C++14 TESTS 3 15 0
188544484 ztlh B Jan. 9, 2023, 5:29 a.m. OK GNU C++14 TESTS 3 15 0
188542340 ykodwani01 B Jan. 9, 2023, 4:56 a.m. OK GNU C++14 TESTS 3 15 0
188538449 hhu_3637kr B Jan. 9, 2023, 3:47 a.m. OK GNU C++17 TESTS 3 0 0
188533653 hunziHang B Jan. 9, 2023, 1:59 a.m. OK GNU C++17 TESTS 3 0 204800
188514180 M-o-b-a-r-a-k B Jan. 8, 2023, 6:19 p.m. OK GNU C++17 TESTS 3 0 204800
188535275 SurajSP B Jan. 9, 2023, 2:38 a.m. OK GNU C++17 TESTS 3 0 307200
188505091 Katik1240 B Jan. 8, 2023, 5:01 p.m. OK GNU C++17 TESTS 3 0 307200
188545976 the_crazy_programmer404 B Jan. 9, 2023, 5:51 a.m. OK GNU C++17 TESTS 3 15 0
188545734 l_Axel_Blaze_l B Jan. 9, 2023, 5:48 a.m. OK GNU C++17 TESTS 3 15 0
188544847 srijay B Jan. 9, 2023, 5:35 a.m. OK GNU C++17 TESTS 3 15 0
188544489 ModernCaveman B Jan. 9, 2023, 5:29 a.m. OK GNU C++17 TESTS 3 15 0
188546598 _peacock B Jan. 9, 2023, 6 a.m. OK GNU C++17 TESTS 3 15 0
188513159 keshavgrover B Jan. 8, 2023, 6:09 p.m. OK GNU C++17 (64) TESTS 3 0 0
188537151 luogu_bot3 B Jan. 9, 2023, 3:20 a.m. OK GNU C++17 (64) TESTS 3 0 0
188534907 OutOfThisWorld B Jan. 9, 2023, 2:30 a.m. OK GNU C++17 (64) TESTS 3 0 102400
188528916 enslaved B Jan. 8, 2023, 11:06 p.m. OK GNU C++17 (64) TESTS 3 0 102400
188536573 Once_I_Liked_AGirl B Jan. 9, 2023, 3:08 a.m. OK GNU C++17 (64) TESTS 3 15 0
188545699 cp_mechie04 B Jan. 9, 2023, 5:47 a.m. OK GNU C++17 (64) TESTS 3 15 0
188542060 Aurora0915 B Jan. 9, 2023, 4:51 a.m. OK GNU C++17 (64) TESTS 3 15 0
188538780 steveonalex B Jan. 9, 2023, 3:54 a.m. OK GNU C++17 (64) TESTS 3 15 0
188536679 linxd B Jan. 9, 2023, 3:10 a.m. OK GNU C++17 (64) TESTS 3 15 0
188536560 Finding_My_True_Love B Jan. 9, 2023, 3:08 a.m. OK GNU C++17 (64) TESTS 3 15 0
188532664 scrub_er B Jan. 9, 2023, 1:32 a.m. OK GNU C++20 (64) TESTS 3 0 0
188531214 huangqingyang B Jan. 9, 2023, 12:40 a.m. OK GNU C++20 (64) TESTS 3 0 0
188525839 Nikhil2946 B Jan. 8, 2023, 9:24 p.m. OK GNU C++20 (64) TESTS 3 0 0
188522155 FzArK B Jan. 8, 2023, 8:06 p.m. OK GNU C++20 (64) TESTS 3 0 0
188536413 amaN07 B Jan. 9, 2023, 3:04 a.m. OK GNU C++20 (64) TESTS 3 0 0
188536807 huangzihao123 B Jan. 9, 2023, 3:13 a.m. OK GNU C++20 (64) TESTS 3 0 0
188537292 Merro B Jan. 9, 2023, 3:23 a.m. OK GNU C++20 (64) TESTS 3 0 0
188537645 thangdz2k7 B Jan. 9, 2023, 3:30 a.m. OK GNU C++20 (64) TESTS 3 0 0
188544011 SpideRvERSe B Jan. 9, 2023, 5:22 a.m. OK GNU C++20 (64) TESTS 3 0 0
188545354 Harsh_Rai B Jan. 9, 2023, 5:43 a.m. OK GNU C++20 (64) TESTS 3 0 0
188511439 wat2 B Jan. 8, 2023, 5:53 p.m. OK Java 11 TESTS 3 171 0
188507352 Traveller11 B Jan. 8, 2023, 5:18 p.m. OK Java 11 TESTS 3 171 0
188530485 wantu B Jan. 9, 2023, 12:09 a.m. OK Java 11 TESTS 3 186 0
188538348 Panther369 B Jan. 9, 2023, 3:46 a.m. OK Java 11 TESTS 3 202 39321600
188499613 Sudhanshu_03 B Jan. 8, 2023, 4:34 p.m. OK Java 11 TESTS 3 218 0
188529311 months13 B Jan. 8, 2023, 11:22 p.m. OK Java 11 TESTS 3 546 0
188530137 rajneesh.osho B Jan. 8, 2023, 11:54 p.m. OK Java 11 TESTS 3 561 0
188500683 x21svage B Jan. 8, 2023, 4:37 p.m. OK Java 11 TESTS 3 561 0
188540102 believe18 B Jan. 9, 2023, 4:17 a.m. OK Java 11 TESTS 3 576 0
188538673 srijamk B Jan. 9, 2023, 3:52 a.m. OK Java 11 TESTS 3 577 0
188512017 Vrutik_2809 B Jan. 8, 2023, 5:58 p.m. OK Java 17 TESTS 3 171 0
188502510 not_just_rr B Jan. 8, 2023, 4:45 p.m. OK Java 17 TESTS 3 171 0
188544637 The_Dark_Lord_9635 B Jan. 9, 2023, 5:32 a.m. OK Java 17 TESTS 3 171 307200
188543904 Saurabh_jayaswal B Jan. 9, 2023, 5:20 a.m. OK Java 17 TESTS 3 202 409600
188545128 KarMa_ B Jan. 9, 2023, 5:39 a.m. OK Java 17 TESTS 3 218 0
188511460 Vrutik_2809 B Jan. 8, 2023, 5:53 p.m. OK Java 17 TESTS 3 218 716800
188504361 Thejas_n B Jan. 8, 2023, 4:56 p.m. OK Java 17 TESTS 3 233 409600
188507492 Raki_8 B Jan. 8, 2023, 5:19 p.m. OK Java 17 TESTS 3 530 409600
188494862 vaibhavsinghz B Jan. 8, 2023, 4:25 p.m. OK Java 17 TESTS 3 561 0
188505972 Ani_Vishwakarma B Jan. 8, 2023, 5:07 p.m. OK Java 17 TESTS 3 561 716800
188520256 UniversalAdmin B Jan. 8, 2023, 7:36 p.m. OK Java 8 TESTS 3 93 0
188506698 raj_shahh B Jan. 8, 2023, 5:13 p.m. OK Java 8 TESTS 3 93 0
188495044 Akarsh2810 B Jan. 8, 2023, 4:25 p.m. OK Java 8 TESTS 3 93 0
188497217 arutsudar B Jan. 8, 2023, 4:30 p.m. OK Java 8 TESTS 3 108 0
188496731 YashNahata B Jan. 8, 2023, 4:29 p.m. OK Java 8 TESTS 3 108 0
188507713 yadavDipesh B Jan. 8, 2023, 5:21 p.m. OK Java 8 TESTS 3 109 0
188505164 yadavDipesh B Jan. 8, 2023, 5:02 p.m. OK Java 8 TESTS 3 109 0
188495472 ne_prajwal B Jan. 8, 2023, 4:26 p.m. OK Java 8 TESTS 3 109 0
188544104 tejasS-27 B Jan. 9, 2023, 5:23 a.m. OK Java 8 TESTS 3 124 0
188524385 __SSB__ B Jan. 8, 2023, 8:50 p.m. OK Java 8 TESTS 3 124 0
188497417 the_code_runner B Jan. 8, 2023, 4:30 p.m. OK JavaScript TESTS 3 233 9625600
188520831 craw_fish B Jan. 8, 2023, 7:45 p.m. OK Kotlin 1.7 TESTS 3 436 34304000
188544871 Koo_Pung-Kei B Jan. 9, 2023, 5:35 a.m. OK Kotlin 1.7 TESTS 3 935 25497600
188507916 zhangyunzhi2333 B Jan. 8, 2023, 5:23 p.m. OK MS C++ 2017 TESTS 3 61 102400
188503147 EtherealMidnight B Jan. 8, 2023, 4:49 p.m. OK MS C++ 2017 TESTS 3 62 0
188511333 Spartan3002 B Jan. 8, 2023, 5:52 p.m. OK MS C++ 2017 TESTS 3 78 0
188521888 1001101dfs B Jan. 8, 2023, 8:02 p.m. OK MS C++ 2017 TESTS 3 78 204800
188502913 1_shivam B Jan. 8, 2023, 4:47 p.m. OK MS C++ 2017 TESTS 3 78 204800
188517487 eugene_elk B Jan. 8, 2023, 6:57 p.m. OK Node.js TESTS 3 109 3174400
188520073 Noureldin B Jan. 8, 2023, 7:33 p.m. OK PyPy 3 TESTS 3 124 6963200
188508137 marti2357 B Jan. 8, 2023, 5:25 p.m. OK PyPy 3 TESTS 3 140 5222400
188509724 Yash_Nandwana B Jan. 8, 2023, 5:38 p.m. OK PyPy 3 TESTS 3 140 6451200
188501050 xSalcedo B Jan. 8, 2023, 4:38 p.m. OK PyPy 3 TESTS 3 155 6656000
188517302 Lyle0711 B Jan. 8, 2023, 6:55 p.m. OK PyPy 3 TESTS 3 170 8294400
188518315 AhsanHabib B Jan. 8, 2023, 7:08 p.m. OK PyPy 3 TESTS 3 171 8601600
188515737 heprob B Jan. 8, 2023, 6:35 p.m. OK PyPy 3 TESTS 3 187 9011200
188495834 AHalikshina B Jan. 8, 2023, 4:27 p.m. OK PyPy 3 TESTS 3 187 9420800
188497076 _magnus_carlsen_ B Jan. 8, 2023, 4:30 p.m. OK PyPy 3 TESTS 3 233 9318400
188538347 InariInDream B Jan. 9, 2023, 3:46 a.m. OK PyPy 3-64 TESTS 3 62 6144000
188504991 oneku16 B Jan. 8, 2023, 5 p.m. OK PyPy 3-64 TESTS 3 77 5324800
188507275 _tb B Jan. 8, 2023, 5:17 p.m. OK PyPy 3-64 TESTS 3 77 7680000
188513383 Wadea_Fadi B Jan. 8, 2023, 6:11 p.m. OK PyPy 3-64 TESTS 3 77 9932800
188536232 udayan8 B Jan. 9, 2023, 3 a.m. OK PyPy 3-64 TESTS 3 92 8294400
188499487 Pablo1Gustavo B Jan. 8, 2023, 4:34 p.m. OK PyPy 3-64 TESTS 3 93 6144000
188498388 mr.rust B Jan. 8, 2023, 4:32 p.m. OK PyPy 3-64 TESTS 3 93 6963200
188504462 Kalyano B Jan. 8, 2023, 4:57 p.m. OK PyPy 3-64 TESTS 3 93 8704000
188532929 Homeo B Jan. 9, 2023, 1:40 a.m. OK PyPy 3-64 TESTS 3 93 8806400
188518795 mani_sarthak B Jan. 8, 2023, 7:14 p.m. OK PyPy 3-64 TESTS 3 93 8806400
188538253 saelcc03 B Jan. 9, 2023, 3:44 a.m. OK Python 2 TESTS 3 78 102400
188529990 Azamatsh B Jan. 8, 2023, 11:46 p.m. OK Python 3 TESTS 3 62 204800
188527472 Vidhate B Jan. 8, 2023, 10:12 p.m. OK Python 3 TESTS 3 93 0
188512166 rostoki B Jan. 8, 2023, 6 p.m. OK Python 3 TESTS 3 156 307200
188501961 OzodbekX B Jan. 8, 2023, 4:43 p.m. OK Python 3 TESTS 3 186 0
188522049 Elizur B Jan. 8, 2023, 8:04 p.m. OK Python 3 TESTS 3 187 0
188539043 Hot_Potato B Jan. 9, 2023, 3:59 a.m. OK Python 3 TESTS 3 187 204800
188514740 PrakshalJain B Jan. 8, 2023, 6:24 p.m. OK Python 3 TESTS 3 202 0
188498558 abcsumits B Jan. 8, 2023, 4:32 p.m. OK Python 3 TESTS 3 202 0
188495787 alreadyselfish B Jan. 8, 2023, 4:27 p.m. OK Python 3 TESTS 3 202 0
188495244 TheGhoStofUcHihA B Jan. 8, 2023, 4:26 p.m. OK Python 3 TESTS 3 202 0
188522705 fQuark B Jan. 8, 2023, 8:17 p.m. OK Rust 2021 TESTS 3 15 0
188518545 IUseAckerCommandLOOL B Jan. 8, 2023, 7:11 p.m. OK Rust 2021 TESTS 3 31 0
188533927 variance B Jan. 9, 2023, 2:07 a.m. OK Rust 2021 TESTS 3 46 0

remove filters

Back to search problems