Codeforces Round 678 (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
1436 Codeforces Round 678 (Div. 2) FINISHED False 7800 128274899 Oct. 24, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20682 ) B Prime Square PROGRAMMING constructive algorithms math

B'Sasha likes investigating different math objects, for example, magic squares. But Sasha understands that magic squares have already been studied by hundreds of people, so he sees no sense of studying them further. Instead, he invented his own type of square -- a prime square. A square of size n x n is called prime if the following three conditions are held simultaneously: Sasha has an integer n . He asks you to find any prime square of size n x n . Sasha is absolutely sure such squares exist, so just help him! The first line contains a single integer t ( 1 <= t <= 10 ) -- the number of test cases. Each of the next t lines contains a single integer n ( 2 <= n <= 100 ) -- the required size of a square. For each test case print n lines, each containing n integers -- the prime square you built. If there are multiple answers, print any. '...

Tutorials

Codeforces Round #678 (Div. 2). Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
96622043 ericoder B Oct. 25, 2020, 2:06 a.m. OK GNU C11 TESTS 17 280 0
96622034 wongzeongin B Oct. 25, 2020, 2:06 a.m. OK GNU C11 TESTS 17 280 0
96611728 Ankit_ag_007 B Oct. 24, 2020, 8:17 p.m. OK GNU C11 TESTS 17 311 0
96644298 chowdhuryshashwoto B Oct. 25, 2020, 10:06 a.m. OK GNU C11 TESTS 17 311 0
96626442 nitinkumar1729 B Oct. 25, 2020, 5:22 a.m. OK GNU C11 TESTS 17 312 0
96616561 Ankit_ag_007 B Oct. 24, 2020, 10:24 p.m. OK GNU C11 TESTS 17 312 0
96608798 Ankit_ag_007 B Oct. 24, 2020, 7:26 p.m. OK GNU C11 TESTS 17 312 0
96647884 2511689622 B Oct. 25, 2020, 10:57 a.m. OK GNU C11 TESTS 17 312 0
96606563 shubhamar B Oct. 24, 2020, 6:53 p.m. OK GNU C11 TESTS 17 312 7987200
96726856 Lorin_zeba B Oct. 25, 2020, 7:26 p.m. OK GNU C11 TESTS 17 389 0
96735748 chichichichi B Oct. 25, 2020, 11:28 p.m. OK GNU C++11 TESTS 17 15 0
96632565 fr200110217102 B Oct. 25, 2020, 7:19 a.m. OK GNU C++11 TESTS 17 15 102400
96629939 YeeBy B Oct. 25, 2020, 6:07 a.m. OK GNU C++11 TESTS 17 30 0
96632088 luogu_bot1 B Oct. 25, 2020, 7:09 a.m. OK GNU C++11 TESTS 17 30 0
96633007 WGYHMFkZyA02 B Oct. 25, 2020, 7:28 a.m. OK GNU C++11 TESTS 17 30 0
96634409 luogu_bot4 B Oct. 25, 2020, 7:47 a.m. OK GNU C++11 TESTS 17 30 0
96625281 1033180517 B Oct. 25, 2020, 4:34 a.m. OK GNU C++11 TESTS 17 30 102400
96620603 moonlate B Oct. 25, 2020, 1:17 a.m. OK GNU C++11 TESTS 17 30 512000
96638141 Lu_Anlai B Oct. 25, 2020, 8:40 a.m. OK GNU C++11 TESTS 17 30 614400
96709615 tourifeng B Oct. 25, 2020, 3:01 p.m. OK GNU C++11 TESTS 17 30 921600
96725867 kuni_naka B Oct. 25, 2020, 7:08 p.m. OK GNU C++14 TESTS 17 15 0
96729282 u1604090 B Oct. 25, 2020, 8:18 p.m. OK GNU C++14 TESTS 17 15 0
96745643 kjat B Oct. 26, 2020, 4:48 a.m. OK GNU C++14 TESTS 17 30 0
96633885 shubham_n B Oct. 25, 2020, 7:40 a.m. OK GNU C++14 TESTS 17 30 0
96645954 rohanrauniyar14 B Oct. 25, 2020, 10:30 a.m. OK GNU C++14 TESTS 17 30 0
96714557 rahul_goyal08 B Oct. 25, 2020, 4:05 p.m. OK GNU C++14 TESTS 17 30 0
96716440 Kamrul_Hasan46 B Oct. 25, 2020, 4:32 p.m. OK GNU C++14 TESTS 17 30 0
96716517 johnalo B Oct. 25, 2020, 4:33 p.m. OK GNU C++14 TESTS 17 30 0
96722410 manthann3 B Oct. 25, 2020, 6:08 p.m. OK GNU C++14 TESTS 17 30 0
96725166 tanvir_ahmed96 B Oct. 25, 2020, 6:56 p.m. OK GNU C++14 TESTS 17 30 0
96647954 niteshchaurasia30 B Oct. 25, 2020, 10:57 a.m. OK GNU C++17 TESTS 17 15 0
96728212 shadyrafet B Oct. 25, 2020, 7:53 p.m. OK GNU C++17 TESTS 17 15 0
96619204 Siddhant_Khare B Oct. 25, 2020, 12:13 a.m. OK GNU C++17 TESTS 17 15 0
96623595 UshanGhosh B Oct. 25, 2020, 3:15 a.m. OK GNU C++17 TESTS 17 15 102400
96723672 satur B Oct. 25, 2020, 6:30 p.m. OK GNU C++17 TESTS 17 30 0
96746442 Pratims10 B Oct. 26, 2020, 5:05 a.m. OK GNU C++17 TESTS 17 30 0
96743388 belli49 B Oct. 26, 2020, 3:47 a.m. OK GNU C++17 TESTS 17 30 0
96738773 KennethChin B Oct. 26, 2020, 1:30 a.m. OK GNU C++17 TESTS 17 30 0
96735446 jwlian B Oct. 25, 2020, 11:11 p.m. OK GNU C++17 TESTS 17 30 0
96734810 ZergTricky B Oct. 25, 2020, 10:39 p.m. OK GNU C++17 TESTS 17 30 0
96715765 IvnF B Oct. 25, 2020, 4:22 p.m. OK GNU C++17 (64) TESTS 17 15 0
96623228 devamg B Oct. 25, 2020, 2:58 a.m. OK GNU C++17 (64) TESTS 17 15 0
96630125 mahbubhasanmht B Oct. 25, 2020, 6:14 a.m. OK GNU C++17 (64) TESTS 17 15 0
96630764 sgunti B Oct. 25, 2020, 6:32 a.m. OK GNU C++17 (64) TESTS 17 15 0
96627247 Arceus03 B Oct. 25, 2020, 5:25 a.m. OK GNU C++17 (64) TESTS 17 15 102400
96638040 adi2710 B Oct. 25, 2020, 8:39 a.m. OK GNU C++17 (64) TESTS 17 15 512000
96700499 Arif19 B Oct. 25, 2020, 1:21 p.m. OK GNU C++17 (64) TESTS 17 30 0
96725466 CoderAnshu B Oct. 25, 2020, 7:01 p.m. OK GNU C++17 (64) TESTS 17 30 0
96700210 Arif19 B Oct. 25, 2020, 1:16 p.m. OK GNU C++17 (64) TESTS 17 30 0
96674563 01vatri B Oct. 25, 2020, 11:58 a.m. OK GNU C++17 (64) TESTS 17 30 0
96646014 kunalkatiyar9 B Oct. 25, 2020, 10:31 a.m. OK Java 11 TESTS 17 171 0
96617045 megyeri99 B Oct. 24, 2020, 10:40 p.m. OK Java 11 TESTS 17 171 0
96746763 swift0vinay B Oct. 26, 2020, 5:12 a.m. OK Java 11 TESTS 17 186 0
96646609 kunalkatiyar9 B Oct. 25, 2020, 10:40 a.m. OK Java 11 TESTS 17 186 0
96632111 gsahil216 B Oct. 25, 2020, 7:10 a.m. OK Java 11 TESTS 17 186 0
96625689 _3019_ B Oct. 25, 2020, 4:52 a.m. OK Java 11 TESTS 17 187 0
96644633 coderrohan14 B Oct. 25, 2020, 10:11 a.m. OK Java 11 TESTS 17 202 0
96741381 otrewyi191 B Oct. 26, 2020, 2:50 a.m. OK Java 11 TESTS 17 202 0
96612851 Shokersss B Oct. 24, 2020, 8:40 p.m. OK Java 11 TESTS 17 202 0
96599909 DM_1 B Oct. 24, 2020, 6:03 p.m. OK Java 11 TESTS 17 202 0
96622748 O-infinity B Oct. 25, 2020, 2:38 a.m. OK Java 8 TESTS 17 93 0
96645719 ndh81 B Oct. 25, 2020, 10:27 a.m. OK Java 8 TESTS 17 108 0
96646284 Slamur B Oct. 25, 2020, 10:36 a.m. OK Java 8 TESTS 17 109 0
96634813 shekabhi369 B Oct. 25, 2020, 7:52 a.m. OK Java 8 TESTS 17 109 0
96626148 O-infinity B Oct. 25, 2020, 5:12 a.m. OK Java 8 TESTS 17 109 0
96745372 gagan_6730 B Oct. 26, 2020, 4:42 a.m. OK Java 8 TESTS 17 124 0
96740448 godxpunk B Oct. 26, 2020, 2:23 a.m. OK Java 8 TESTS 17 124 0
96709851 kalzor B Oct. 25, 2020, 3:04 p.m. OK Java 8 TESTS 17 124 0
96633776 an09mous B Oct. 25, 2020, 7:39 a.m. OK Java 8 TESTS 17 124 0
96632561 cis_pie B Oct. 25, 2020, 7:19 a.m. OK Java 8 TESTS 17 124 0
96616033 HassanAzzam B Oct. 24, 2020, 10:07 p.m. OK JavaScript TESTS 17 31 102400
96623129 escode B Oct. 25, 2020, 2:54 a.m. OK JavaScript TESTS 17 46 3379200
96623946 Spheniscine B Oct. 25, 2020, 3:32 a.m. OK Kotlin TESTS 17 156 1945600
96596834 overwrite B Oct. 24, 2020, 5:44 p.m. OK Kotlin TESTS 17 405 0
96632289 wbars B Oct. 25, 2020, 7:14 a.m. OK Kotlin TESTS 17 763 1843200
96748421 Roshan_Madipalli B Oct. 26, 2020, 5:44 a.m. OK MS C++ TESTS 17 46 102400
96621932 winddust B Oct. 25, 2020, 2:02 a.m. OK MS C++ TESTS 17 46 204800
96720076 Thebestofthebest B Oct. 25, 2020, 5:28 p.m. OK MS C++ 2017 TESTS 17 46 0
96598491 semihpirpir B Oct. 24, 2020, 5:52 p.m. OK MS C++ 2017 TESTS 17 46 0
96698990 Ivan_Dunko B Oct. 25, 2020, 1:04 p.m. OK MS C++ 2017 TESTS 17 61 102400
96742467 protect_our_sansi B Oct. 26, 2020, 3:19 a.m. OK MS C++ 2017 TESTS 17 62 0
96738706 GUESSER B Oct. 26, 2020, 1:28 a.m. OK MS C++ 2017 TESTS 17 62 0
96643173 niki.c2014 B Oct. 25, 2020, 9:50 a.m. OK MS C++ 2017 TESTS 17 62 0
96620892 TianZai B Oct. 25, 2020, 1:28 a.m. OK MS C++ 2017 TESTS 17 62 0
96743225 Mbox B Oct. 26, 2020, 3:42 a.m. OK MS C++ 2017 TESTS 17 62 102400
96662926 adasanvin12345 B Oct. 25, 2020, 11:31 a.m. OK MS C++ 2017 TESTS 17 62 102400
96614127 vladnoov B Oct. 24, 2020, 9:11 p.m. OK MS C++ 2017 TESTS 17 77 0
96641648 dipta10 B Oct. 25, 2020, 9:29 a.m. OK Node.js TESTS 17 701 4300800
96636777 bazzyadb B Oct. 25, 2020, 8:24 a.m. OK PyPy 2 TESTS 17 935 3584000
96610171 lagomorphaexe B Oct. 24, 2020, 7:49 p.m. OK PyPy 3 TESTS 17 155 1638400
96642124 786yashdhiman B Oct. 25, 2020, 9:35 a.m. OK PyPy 3 TESTS 17 155 6553600
96637008 Huntersoulz B Oct. 25, 2020, 8:27 a.m. OK PyPy 3 TESTS 17 155 6758400
96640884 itsmesoumik21 B Oct. 25, 2020, 9:18 a.m. OK PyPy 3 TESTS 17 171 2355200
96618356 lucifer1004 B Oct. 24, 2020, 11:28 p.m. OK PyPy 3 TESTS 17 171 2662400
96632943 abecus B Oct. 25, 2020, 7:27 a.m. OK PyPy 3 TESTS 17 171 2969600
96748063 shivam_hbtu B Oct. 26, 2020, 5:37 a.m. OK PyPy 3 TESTS 17 171 6656000
96639043 sayuyere B Oct. 25, 2020, 8:53 a.m. OK PyPy 3 TESTS 17 171 7168000
96635738 hacky3244 B Oct. 25, 2020, 8:08 a.m. OK PyPy 3 TESTS 17 171 7577600
96603068 marcus.test B Oct. 24, 2020, 6:18 p.m. OK PyPy 3 TESTS 17 186 2252800
96596939 KarthikVV B Oct. 24, 2020, 5:45 p.m. OK Python 2 TESTS 17 186 102400
96620201 ComptineDunAutreEte B Oct. 25, 2020, 1:01 a.m. OK Python 2 TESTS 17 186 307200
96625353 shubhankarsharma00 B Oct. 25, 2020, 4:37 a.m. OK Python 2 TESTS 17 202 307200
96603888 Amrit_nand B Oct. 24, 2020, 6:22 p.m. OK Python 3 TESTS 17 109 0
96641822 KLWDSF_mantra B Oct. 25, 2020, 9:31 a.m. OK Python 3 TESTS 17 109 307200
96644626 TheGreenhorner B Oct. 25, 2020, 10:11 a.m. OK Python 3 TESTS 17 124 0
96608158 sh1194 B Oct. 24, 2020, 7:16 p.m. OK Python 3 TESTS 17 124 0
96735523 lemraus B Oct. 25, 2020, 11:15 p.m. OK Python 3 TESTS 17 124 307200
96620653 Dineshlimbu B Oct. 25, 2020, 1:19 a.m. OK Python 3 TESTS 17 124 307200
96644023 de_c0de_it B Oct. 25, 2020, 10:02 a.m. OK Python 3 TESTS 17 139 102400
96644285 jojogis B Oct. 25, 2020, 10:06 a.m. OK Python 3 TESTS 17 139 307200
96621018 VBN2470 B Oct. 25, 2020, 1:33 a.m. OK Python 3 TESTS 17 155 307200
96629099 dineshreddy01 B Oct. 25, 2020, 5:39 a.m. OK Python 3 TESTS 17 155 409600
96688383 utkarsh2102 B Oct. 25, 2020, 12:36 p.m. OK Ruby TESTS 17 561 1126400
96635342 yosik B Oct. 25, 2020, 8:01 a.m. OK Rust TESTS 17 31 0
96620826 MoSooN B Oct. 25, 2020, 1:25 a.m. OK Rust TESTS 17 61 102400

remove filters

Back to search problems