Codeforces Round 644 (Div. 3)

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
1360 Codeforces Round 644 (Div. 3) FINISHED False 7200 147025511 May 24, 2020, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7895 ) G A/B Matrix PROGRAMMING constructive algorithms flows greedy math number theory 1900

B'You are given four positive integers n , m , a , b ( 1 <= b <= n <= 50 ; 1 <= a <= m <= 50 ). Find any such rectangular matrix of size n x m that satisfies all of the following conditions: If the desired matrix does not exist, indicate this. For example, for n=3 , m=6 , a=2 , b=1 , there exists a matrix satisfying the conditions above: begin{vmatrix} 0 & 1 & 0 & 0 & 0 & 1 1 & 0 & 0 & 1 & 0 & 0 0 & 0 & 1 & 0 & 1 & 0 end{vmatrix} The first line contains an integer t ( 1 <= t <= 1000 ) -- the number of test cases. Then t test cases follow. Each test case is described by four positive integers n , m , a , b ( 1 <= b <= n <= 50 ; 1 <= a <= m <= 50 ), where n and m are the sizes of the matrix, and a and b are the number of ones for rows and columns, respectively. For each test case print: To print the matrix n x m , print n rows, each of which consists of m numbers 0 or 1 describing a row of the matrix. Numbers must be printed without spaces. '...

Tutorials

Codeforces Round #644 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
81430644 misclicked G May 26, 2020, 2:38 a.m. OK GNU C11 TESTS 10 46 0 1900
81430921 misclicked G May 26, 2020, 2:44 a.m. OK GNU C11 TESTS 10 46 0 1900
81431264 misclicked G May 26, 2020, 2:53 a.m. OK GNU C11 TESTS 10 46 0 1900
81694084 QScloud G May 28, 2020, 10:13 a.m. OK GNU C11 TESTS 10 46 204800 1900
81431520 misclicked G May 26, 2020, 3 a.m. OK GNU C11 TESTS 10 62 0 1900
81693973 QScloud G May 28, 2020, 10:11 a.m. OK GNU C11 TESTS 10 202 204800 1900
81427364 2018LZY G May 26, 2020, 12:45 a.m. OK GNU C++11 TESTS 10 31 0 1900
81366219 rubick G May 25, 2020, 9:13 a.m. OK GNU C++11 TESTS 10 46 0 1900
81399199 Tom66 G May 25, 2020, 3:47 p.m. OK GNU C++11 TESTS 10 46 0 1900
81380760 dredwerkz G May 25, 2020, 12:09 p.m. OK GNU C++11 TESTS 10 46 0 1900
81378528 LKP1111 G May 25, 2020, 11:43 a.m. OK GNU C++11 TESTS 10 46 0 1900
81597621 jade199868 G May 27, 2020, 8:28 a.m. OK GNU C++11 TESTS 10 46 0 1900
81422590 cugel G May 25, 2020, 9:30 p.m. OK GNU C++11 TESTS 10 46 0 1900
81399471 vjudge4 G May 25, 2020, 3:51 p.m. OK GNU C++11 TESTS 10 46 0 1900
81352446 honey.qin G May 25, 2020, 6:12 a.m. OK GNU C++11 TESTS 10 46 48128000 1900
81621676 lolicon_tw G May 27, 2020, 1:13 p.m. OK GNU C++11 TESTS 10 62 0 1900
81333974 shellspicker G May 24, 2020, 9:38 p.m. OK GNU C++14 TESTS 10 31 2560000 1900
81422846 angrysp G May 25, 2020, 9:37 p.m. OK GNU C++14 TESTS 10 46 409600 1900
81334117 shellspicker G May 24, 2020, 9:43 p.m. OK GNU C++14 TESTS 10 46 2252800 1900
81417341 bhanurocks G May 25, 2020, 7:31 p.m. OK GNU C++14 TESTS 10 61 204800 1900
81462721 Tudor67 G May 26, 2020, 11:05 a.m. OK GNU C++14 TESTS 10 61 204800 1900
81422104 practice909 G May 25, 2020, 9:15 p.m. OK GNU C++14 TESTS 10 61 307200 1900
81378655 Hassanosama G May 25, 2020, 11:45 a.m. OK GNU C++14 TESTS 10 62 0 1900
81427858 terminator_111 G May 26, 2020, 1:03 a.m. OK GNU C++14 TESTS 10 62 0 1900
81398836 stonecoldsteveaustin G May 25, 2020, 3:43 p.m. OK GNU C++14 TESTS 10 62 204800 1900
81362208 dm99 G May 25, 2020, 8:23 a.m. OK GNU C++14 TESTS 10 62 204800 1900
81363523 Psycode2.0 G May 25, 2020, 8:38 a.m. OK GNU C++17 TESTS 10 46 0 1900
81381879 Saket1612 G May 25, 2020, 12:22 p.m. OK GNU C++17 TESTS 10 46 204800 1900
81375101 shashank2409 G May 25, 2020, 11:03 a.m. OK GNU C++17 TESTS 10 46 204800 1900
81374620 shashank2409 G May 25, 2020, 10:57 a.m. OK GNU C++17 TESTS 10 46 204800 1900
81388406 mucamaca G May 25, 2020, 1:41 p.m. OK GNU C++17 TESTS 10 46 307200 1900
81442754 tmatheena G May 26, 2020, 6:34 a.m. OK GNU C++17 TESTS 10 61 0 1900
81666594 xufour G May 28, 2020, 3:30 a.m. OK GNU C++17 TESTS 10 61 0 1900
81374710 shashank2409 G May 25, 2020, 10:58 a.m. OK GNU C++17 TESTS 10 61 204800 1900
81378265 both_stars G May 25, 2020, 11:41 a.m. OK GNU C++17 TESTS 10 61 204800 1900
81655237 Dark-Magician G May 27, 2020, 8:55 p.m. OK GNU C++17 TESTS 10 62 0 1900
81371244 alex223 G May 25, 2020, 10:15 a.m. OK GNU C++17 (64) TESTS 10 61 0 1900
81366772 vok8 G May 25, 2020, 9:20 a.m. OK GNU C++17 (64) TESTS 10 61 0 1900
81357341 ritik_patel05 G May 25, 2020, 7:18 a.m. OK GNU C++17 (64) TESTS 10 61 0 1900
81357687 sharrad99 G May 25, 2020, 7:22 a.m. OK GNU C++17 (64) TESTS 10 62 0 1900
81370724 alex223 G May 25, 2020, 10:09 a.m. OK GNU C++17 (64) TESTS 10 62 0 1900
81371285 alex223 G May 25, 2020, 10:16 a.m. OK GNU C++17 (64) TESTS 10 62 0 1900
81402952 tanimania G May 25, 2020, 4:37 p.m. OK GNU C++17 (64) TESTS 10 62 0 1900
81604400 6553368 G May 27, 2020, 9:54 a.m. OK GNU C++17 (64) TESTS 10 62 0 1900
81662074 MIG29 G May 28, 2020, 1:27 a.m. OK GNU C++17 (64) TESTS 10 62 0 1900
81662914 MIG29 G May 28, 2020, 1:55 a.m. OK GNU C++17 (64) TESTS 10 62 0 1900
81477630 maguroguma G May 26, 2020, 2:01 p.m. OK Go TESTS 10 233 5324800 1900
81343766 synapse G May 25, 2020, 3:23 a.m. OK Go TESTS 10 249 5324800 1900
81328510 clyring G May 24, 2020, 7:31 p.m. OK Haskell TESTS 10 140 102400 1900
81562679 slemus G May 26, 2020, 8:18 p.m. OK Haskell TESTS 10 171 102400 1900
81431224 Russell_Emerine G May 26, 2020, 2:52 a.m. OK Haskell TESTS 10 249 102400 1900
81694294 zhupeijun G May 28, 2020, 10:15 a.m. OK Java 11 TESTS 10 202 0 1900
81691552 zhupeijun G May 28, 2020, 9:42 a.m. OK Java 11 TESTS 10 202 0 1900
81695287 zhupeijun G May 28, 2020, 10:29 a.m. OK Java 11 TESTS 10 217 0 1900
81332224 anhpp G May 24, 2020, 8:49 p.m. OK Java 11 TESTS 10 233 0 1900
81448707 avijit_agarwal G May 26, 2020, 7:56 a.m. OK Java 11 TESTS 10 233 3686400 1900
81417886 chris_11 G May 25, 2020, 7:41 p.m. OK Java 11 TESTS 10 233 3788800 1900
81456385 vamsikonakandla123 G May 26, 2020, 9:37 a.m. OK Java 11 TESTS 10 234 3788800 1900
81646615 egaeus.code G May 27, 2020, 6:11 p.m. OK Java 11 TESTS 10 249 0 1900
81459018 p_unit G May 26, 2020, 10:12 a.m. OK Java 11 TESTS 10 295 0 1900
81424639 jakejase2 G May 25, 2020, 10:47 p.m. OK Java 11 TESTS 10 295 0 1900
81347253 manu1996 G May 25, 2020, 4:47 a.m. OK Java 8 TESTS 10 139 0 1900
81467750 turing_fan123 G May 26, 2020, 12:08 p.m. OK Java 8 TESTS 10 155 6860800 1900
81436650 a_2410 G May 26, 2020, 5 a.m. OK Java 8 TESTS 10 156 12902400 1900
81343572 qlf9 G May 25, 2020, 3:18 a.m. OK Java 8 TESTS 10 170 0 1900
81440632 lazypanda G May 26, 2020, 6:06 a.m. OK Java 8 TESTS 10 171 6963200 1900
81456349 vamsikonakandla123 G May 26, 2020, 9:37 a.m. OK Java 8 TESTS 10 171 12902400 1900
81352084 sankcan55 G May 25, 2020, 6:07 a.m. OK Java 8 TESTS 10 202 4812800 1900
81350752 __kishankumar__ G May 25, 2020, 5:48 a.m. OK Java 8 TESTS 10 217 0 1900
81365739 Keyur21 G May 25, 2020, 9:07 a.m. OK Java 8 TESTS 10 218 0 1900
81327767 nishita31 G May 24, 2020, 7:18 p.m. OK Java 8 TESTS 10 218 13619200 1900
81341588 Spheniscine G May 25, 2020, 2:34 a.m. OK Kotlin TESTS 10 265 512000 1900
81401259 whiter4bbit G May 25, 2020, 4:14 p.m. OK Kotlin TESTS 10 405 1331200 1900
81655954 darkkcyan G May 27, 2020, 9:15 p.m. OK Kotlin TESTS 10 421 1331200 1900
81656321 TadijaSebez G May 27, 2020, 9:28 p.m. OK Kotlin TESTS 10 436 21708800 1900
81339281 Igorjan94 G May 25, 2020, 1:18 a.m. OK Kotlin TESTS 10 482 0 1900
81656409 darkkcyan G May 27, 2020, 9:31 p.m. OK Kotlin TESTS 10 498 102400 1900
81654293 DATVN G May 27, 2020, 8:32 p.m. OK Kotlin TESTS 10 764 1331200 1900
81667417 UD_xlinsist G May 28, 2020, 3:49 a.m. OK Kotlin TESTS 10 779 1331200 1900
81382008 Fortin G May 25, 2020, 12:24 p.m. OK Kotlin TESTS 10 1044 0 1900
81459695 getN1ght G May 26, 2020, 10:22 a.m. OK MS C++ 2017 TESTS 10 31 0 1900
81652266 LSD G May 27, 2020, 7:49 p.m. OK MS C++ 2017 TESTS 10 202 0 1900
81596341 CrashMaster G May 27, 2020, 8:14 a.m. OK MS C++ 2017 TESTS 10 217 0 1900
81663506 ningBr G May 28, 2020, 2:15 a.m. OK MS C++ 2017 TESTS 10 218 0 1900
81326891 Andrey_Kalikin G May 24, 2020, 7:04 p.m. OK MS C++ 2017 TESTS 10 218 307200 1900
81378111 youx G May 25, 2020, 11:38 a.m. OK MS C++ 2017 TESTS 10 374 0 1900
81339670 Accelerating G May 25, 2020, 1:34 a.m. OK MS C++ 2017 TESTS 10 374 0 1900
81451724 little_lion G May 26, 2020, 8:34 a.m. OK MS C++ 2017 TESTS 10 1138 307200 1900
81433181 Propangolin G May 26, 2020, 3:41 a.m. OK MS C++ 2017 TESTS 10 1153 10649600 1900
81476909 skymin G May 26, 2020, 1:52 p.m. OK MS C++ 2017 TESTS 10 1154 0 1900
81394762 arpit2438735 G May 25, 2020, 2:56 p.m. OK Node.js TESTS 10 452 4812800 1900
81395827 kit.shiron G May 25, 2020, 3:08 p.m. OK PyPy 2 TESTS 10 218 6860800 1900
81410037 realnimish G May 25, 2020, 6:04 p.m. OK PyPy 2 TESTS 10 249 11673600 1900
81395113 mo-hit G May 25, 2020, 3 p.m. OK PyPy 2 TESTS 10 327 14643200 1900
81572465 mir.panov G May 27, 2020, 1:41 a.m. OK PyPy 2 TESTS 10 389 17100800 1900
81617202 yumtam G May 27, 2020, 12:24 p.m. OK PyPy 2 TESTS 10 701 9216000 1900
81396901 snape_here G May 25, 2020, 3:19 p.m. OK PyPy 2 TESTS 10 842 11776000 1900
81359176 raj1307 G May 25, 2020, 7:43 a.m. OK PyPy 2 TESTS 10 857 10649600 1900
81330997 sksshivam007 G May 24, 2020, 8:22 p.m. OK PyPy 2 TESTS 10 1435 13414400 1900
81394247 coder_sounak G May 25, 2020, 2:50 p.m. OK PyPy 3 TESTS 10 186 9932800 1900
81350202 coder_sounak G May 25, 2020, 5:39 a.m. OK PyPy 3 TESTS 10 186 9932800 1900
81410700 apoorvwatsky G May 25, 2020, 6:14 p.m. OK PyPy 3 TESTS 10 280 10342400 1900
81602958 tiwari0000 G May 27, 2020, 9:35 a.m. OK PyPy 3 TESTS 10 280 10854400 1900
81346335 Rajdeep2k G May 25, 2020, 4:31 a.m. OK PyPy 3 TESTS 10 296 12595200 1900
81327100 siyy G May 24, 2020, 7:07 p.m. OK PyPy 3 TESTS 10 311 11468800 1900
81380260 _nobody_ G May 25, 2020, 12:04 p.m. OK PyPy 3 TESTS 10 342 5427200 1900
81400495 Anuranjan_Pandey G May 25, 2020, 4:05 p.m. OK PyPy 3 TESTS 10 343 5427200 1900
81367178 bit_2 G May 25, 2020, 9:25 a.m. OK PyPy 3 TESTS 10 343 5734400 1900
81352828 dipta007 G May 25, 2020, 6:18 a.m. OK PyPy 3 TESTS 10 358 12595200 1900
81360552 hackerbaba G May 25, 2020, 8:02 a.m. OK Python 2 TESTS 10 218 0 1900
81439735 Hiroshi.K G May 26, 2020, 5:55 a.m. OK Python 3 TESTS 10 202 307200 1900
81326587 Subroto_kumar G May 24, 2020, 6:59 p.m. OK Python 3 TESTS 10 217 0 1900
81624094 17wh1a0532 G May 27, 2020, 1:41 p.m. OK Python 3 TESTS 10 218 0 1900
81452594 aviation_0699 G May 26, 2020, 8:45 a.m. OK Python 3 TESTS 10 218 0 1900
81709608 Byte1 G May 28, 2020, 1:31 p.m. OK Python 3 TESTS 10 218 102400 1900
81362764 The_Jimmy789 G May 25, 2020, 8:29 a.m. OK Python 3 TESTS 10 233 307200 1900
81343754 RaZoR_191 G May 25, 2020, 3:22 a.m. OK Python 3 TESTS 10 248 0 1900
81444449 abhishekark17 G May 26, 2020, 6:57 a.m. OK Python 3 TESTS 10 265 0 1900
81451300 Optimismy G May 26, 2020, 8:29 a.m. OK Python 3 TESTS 10 265 409600 1900
81383399 ItayOtto G May 25, 2020, 12:40 p.m. OK Python 3 TESTS 10 280 0 1900
81383731 kobae964 G May 25, 2020, 12:44 p.m. OK Rust TESTS 10 156 307200 1900
81339826 LeoRiether G May 25, 2020, 1:39 a.m. OK Rust TESTS 10 186 0 1900

remove filters

Back to search problems