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.
Problems
B"The only difference between this problem and D1 is that you don't have to provide the way to construct the answer in D1, but you have to do it in this problem. There's a table of n x m cells ( n rows and m columns). The value of n cdot m is even. A domino is a figure that consists of two cells having a common side. It may be horizontal (one of the cells is to the right of the other) or vertical (one of the cells is above the other). You need to place frac{nm}{2} dominoes on the table so that exactly k of them are horizontal and all the other dominoes are vertical. The dominoes cannot overlap and must fill the whole table. The first line contains one integer t ( 1 <= t <= 10 ) -- the number of test cases. Then t test cases follow. Each test case consists of a single line. The line contains three integers n , m , k ( 1 <= n,m <= 100 , 0 <= k <= frac{nm}{2} , n cdot m is even) -- the count of rows, columns and horizontal dominoes, respectively. For each test case: "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
123563446 |
ITcarrot |
D2 |
July 24, 2021, 3:04 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
0 |
3891200 |
|
|
123527979 |
Naii_the_Baf |
D2 |
July 23, 2021, 4:34 p.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3788800 |
|
|
123569619 |
fishcathu. |
D2 |
July 24, 2021, 4:51 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123569527 |
fishcathu. |
D2 |
July 24, 2021, 4:49 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123564210 |
prabhash_212 |
D2 |
July 24, 2021, 3:18 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123563880 |
taly |
D2 |
July 24, 2021, 3:12 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123561263 |
bkifhr10 |
D2 |
July 24, 2021, 2:27 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123558722 |
OI-Master |
D2 |
July 24, 2021, 1:35 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123560543 |
KomeijiSatori |
D2 |
July 24, 2021, 2:13 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123570129 |
Maystern |
D2 |
July 24, 2021, 4:59 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123539174 |
Mohammad.Nour |
D2 |
July 23, 2021, 6:12 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
0 |
3788800 |
|
|
123539172 |
AnuragPatra |
D2 |
July 23, 2021, 6:12 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123529787 |
Insta-x |
D2 |
July 23, 2021, 4:41 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123573381 |
loideptrai1 |
D2 |
July 24, 2021, 5:48 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123552991 |
stark_mark7 |
D2 |
July 23, 2021, 10:14 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123551561 |
draco976 |
D2 |
July 23, 2021, 9:33 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123549834 |
Hazem_Mohamed200 |
D2 |
July 23, 2021, 8:52 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123535790 |
Kutori_ |
D2 |
July 23, 2021, 5:31 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123530167 |
Mtaylor |
D2 |
July 23, 2021, 4:44 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123529319 |
aaforce202 |
D2 |
July 23, 2021, 4:39 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3788800 |
|
|
123548845 |
ashish.rrs |
D2 |
July 23, 2021, 8:32 p.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123555967 |
AmirElarbi |
D2 |
July 24, 2021, 12:11 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123528881 |
thoi_bay_corona |
D2 |
July 23, 2021, 4:37 p.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123565680 |
abhimishraabhi |
D2 |
July 24, 2021, 3:41 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3788800 |
|
|
123574243 |
Anish_Bashyal |
D2 |
July 24, 2021, 5:59 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3788800 |
|
|
123573598 |
jsr1977 |
D2 |
July 24, 2021, 5:51 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3788800 |
|
|
123570479 |
toomatho |
D2 |
July 24, 2021, 5:05 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3788800 |
|
|
123567793 |
nonstop-baban |
D2 |
July 24, 2021, 4:18 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3788800 |
|
|
123566988 |
aj4941 |
D2 |
July 24, 2021, 4:03 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3788800 |
|
|
123564311 |
LetMeFly |
D2 |
July 24, 2021, 3:20 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3788800 |
|
|
123553422 |
amrataansh |
D2 |
July 23, 2021, 10:27 p.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123566617 |
thusloop |
D2 |
July 24, 2021, 3:56 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123559730 |
Gats |
D2 |
July 24, 2021, 1:56 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123559187 |
TAoz1 |
D2 |
July 24, 2021, 1:45 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123558639 |
Tommy_Fang |
D2 |
July 24, 2021, 1:33 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123557986 |
wlzhouzhuan |
D2 |
July 24, 2021, 1:16 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123557607 |
-ring6 |
D2 |
July 24, 2021, 1:06 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123556412 |
Tauzn |
D2 |
July 24, 2021, 12:31 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123553639 |
sharath101 |
D2 |
July 23, 2021, 10:35 p.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123552792 |
bzzzzzzzz |
D2 |
July 23, 2021, 10:07 p.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123546052 |
qwerty12345qwerty |
D2 |
July 23, 2021, 7:46 p.m. |
OK |
Java 11 |
TESTS |
8 |
155 |
23756800 |
|
|
123541587 |
Andwerp |
D2 |
July 23, 2021, 6:43 p.m. |
OK |
Java 11 |
TESTS |
8 |
170 |
23756800 |
|
|
123572298 |
Swapniltri |
D2 |
July 24, 2021, 5:33 a.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23756800 |
|
|
123541708 |
naitikvarshney |
D2 |
July 23, 2021, 6:45 p.m. |
OK |
Java 11 |
TESTS |
8 |
186 |
23756800 |
|
|
123540141 |
dunkingdonuts |
D2 |
July 23, 2021, 6:25 p.m. |
OK |
Java 11 |
TESTS |
8 |
186 |
23756800 |
|
|
123531342 |
Is2ac |
D2 |
July 23, 2021, 4:51 p.m. |
OK |
Java 11 |
TESTS |
8 |
187 |
23756800 |
|
|
123535233 |
Okhair |
D2 |
July 23, 2021, 5:25 p.m. |
OK |
Java 11 |
TESTS |
8 |
187 |
23859200 |
|
|
123565715 |
mphillotry |
D2 |
July 24, 2021, 3:42 a.m. |
OK |
Java 11 |
TESTS |
8 |
187 |
23961600 |
|
|
123541902 |
sarthakmanna |
D2 |
July 23, 2021, 6:48 p.m. |
OK |
Java 11 |
TESTS |
8 |
202 |
24780800 |
|
|
123533580 |
gawsfbet |
D2 |
July 23, 2021, 5:09 p.m. |
OK |
Java 8 |
TESTS |
8 |
108 |
20480000 |
|
|
123542773 |
honeysingh18 |
D2 |
July 23, 2021, 7:01 p.m. |
OK |
Java 8 |
TESTS |
8 |
108 |
20787200 |
|
|
123551520 |
4mda4mda |
D2 |
July 23, 2021, 9:32 p.m. |
OK |
Java 8 |
TESTS |
8 |
124 |
20889600 |
|
|
123563263 |
HuailongHuang |
D2 |
July 24, 2021, 3:01 a.m. |
OK |
Java 8 |
TESTS |
8 |
124 |
21299200 |
|
|
123540497 |
Dstoical |
D2 |
July 23, 2021, 6:29 p.m. |
OK |
Java 8 |
TESTS |
8 |
202 |
20684800 |
|
|
123531909 |
Hakiobo |
D2 |
July 23, 2021, 4:55 p.m. |
OK |
Kotlin |
TESTS |
8 |
155 |
23244800 |
|
|
123540136 |
tokitsukaze |
D2 |
July 23, 2021, 6:24 p.m. |
OK |
Kotlin |
TESTS |
8 |
170 |
23449600 |
|
|
123531779 |
yuanyuan2048 |
D2 |
July 23, 2021, 4:54 p.m. |
OK |
MS C++ 2017 |
TESTS |
8 |
31 |
3788800 |
|
|
123525154 |
kakel_san |
D2 |
July 23, 2021, 4:30 p.m. |
OK |
.NET Core C# |
TESTS |
8 |
124 |
11878400 |
|
|
123538454 |
Munchy_1 |
D2 |
July 23, 2021, 6:04 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
124 |
22732800 |
|
|
123545019 |
silvertint |
D2 |
July 23, 2021, 7:31 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
124 |
22937600 |
|
|
123532143 |
gourav2001k |
D2 |
July 23, 2021, 4:57 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
140 |
23142400 |
|
|
123529669 |
damirych |
D2 |
July 23, 2021, 4:41 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
171 |
24371200 |
|
|
123529131 |
hxu10 |
D2 |
July 23, 2021, 4:38 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
171 |
24473600 |
|
|
123560366 |
YMSeah |
D2 |
July 24, 2021, 2:10 a.m. |
OK |
PyPy 3 |
TESTS |
8 |
171 |
25190400 |
|
|
123526889 |
PiKa_PiKaa_chuuu |
D2 |
July 23, 2021, 4:33 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
171 |
26828800 |
|
|
123538235 |
tcltk |
D2 |
July 23, 2021, 6:01 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
218 |
30310400 |
|
|
123529454 |
Mystic_heap |
D2 |
July 23, 2021, 4:40 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
233 |
30310400 |
|
|
123525686 |
ChesserCoder |
D2 |
July 23, 2021, 4:31 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
233 |
93593600 |
|
|
123528879 |
ari100krat |
D2 |
July 23, 2021, 4:37 p.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
6963200 |
|
|
123533855 |
Drago_ |
D2 |
July 23, 2021, 5:11 p.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
7270400 |
|
|
123532419 |
srijan.sarkar |
D2 |
July 23, 2021, 4:59 p.m. |
OK |
Python 3 |
TESTS |
8 |
77 |
6963200 |
|
|
123566359 |
andr14142 |
D2 |
July 24, 2021, 3:52 a.m. |
OK |
Python 3 |
TESTS |
8 |
77 |
7065600 |
|
|
123533234 |
unknown030405 |
D2 |
July 23, 2021, 5:06 p.m. |
OK |
Python 3 |
TESTS |
8 |
77 |
7065600 |
|
|
123531783 |
orazbek |
D2 |
July 23, 2021, 4:54 p.m. |
OK |
Python 3 |
TESTS |
8 |
77 |
7372800 |
|
|
123531174 |
C0R3 |
D2 |
July 23, 2021, 4:50 p.m. |
OK |
Python 3 |
TESTS |
8 |
77 |
7372800 |
|
|
123541184 |
tusharjain0022 |
D2 |
July 23, 2021, 6:38 p.m. |
OK |
Python 3 |
TESTS |
8 |
93 |
7168000 |
|
|
123527654 |
prd_xxx |
D2 |
July 23, 2021, 4:34 p.m. |
OK |
Python 3 |
TESTS |
8 |
171 |
7577600 |
|
|
123527055 |
FynjyBath |
D2 |
July 23, 2021, 4:33 p.m. |
OK |
Python 3 |
TESTS |
8 |
187 |
7065600 |
|
|
123557764 |
bqn |
D2 |
July 24, 2021, 1:10 a.m. |
OK |
Rust |
TESTS |
8 |
218 |
3891200 |
|
|
remove filters
Back to search problems