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 D2 is that you don 't have to provide the way to construct the answer in this problem, but you have to do it in D2. 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 find out whether it is possible 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 number of rows, columns and horizontal dominoes, respectively. For each test case output "YES", if it is possible to place dominoes in the desired way, or "NO" otherwise. You may print each letter in any case (YES, yes, Yes will all be recognized as positive answer, NO, no and nO will all be recognized as negative answer). '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
123563531 |
dlglg |
D1 |
July 24, 2021, 3:05 a.m. |
OK |
GNU C11 |
TESTS |
8 |
30 |
3686400 |
|
|
123531471 |
caozy623 |
D1 |
July 23, 2021, 4:52 p.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3686400 |
|
|
123570027 |
Spark_7 |
D1 |
July 24, 2021, 4:58 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123569865 |
redj |
D1 |
July 24, 2021, 4:55 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123568900 |
CollegeBoard |
D1 |
July 24, 2021, 4:38 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123568768 |
fishcathu. |
D1 |
July 24, 2021, 4:35 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123568714 |
chengeng2009 |
D1 |
July 24, 2021, 4:34 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123568524 |
i_like_gyf |
D1 |
July 24, 2021, 4:31 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123570458 |
cxz888 |
D1 |
July 24, 2021, 5:04 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123570147 |
yaorenjie |
D1 |
July 24, 2021, 5 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123570744 |
Nesfan |
D1 |
July 24, 2021, 5:09 a.m. |
OK |
GNU C++11 |
TESTS |
8 |
15 |
3891200 |
|
|
123565694 |
ankit.sangwan1999 |
D1 |
July 24, 2021, 3:42 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123561834 |
Aestas16 |
D1 |
July 24, 2021, 2:38 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123558585 |
whiteedu |
D1 |
July 24, 2021, 1:32 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123557716 |
Stranger321 |
D1 |
July 24, 2021, 1:09 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123557090 |
prateek3110 |
D1 |
July 24, 2021, 12:54 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123555959 |
Kerwin- |
D1 |
July 24, 2021, 12:11 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123555886 |
GIGA-MIND |
D1 |
July 24, 2021, 12:08 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123552253 |
AnuragPatra |
D1 |
July 23, 2021, 9:52 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123552183 |
edward26 |
D1 |
July 23, 2021, 9:50 p.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123567837 |
Alie. |
D1 |
July 24, 2021, 4:18 a.m. |
OK |
GNU C++14 |
TESTS |
8 |
15 |
3686400 |
|
|
123560797 |
quinn18 |
D1 |
July 24, 2021, 2:18 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123573893 |
Arun_bro1 |
D1 |
July 24, 2021, 5:54 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123569111 |
shivanshshukla60 |
D1 |
July 24, 2021, 4:41 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123566987 |
Hoff |
D1 |
July 24, 2021, 4:03 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123563868 |
axbtf |
D1 |
July 24, 2021, 3:12 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123562768 |
louisfghbvc |
D1 |
July 24, 2021, 2:53 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123560842 |
Alice_Synthesis |
D1 |
July 24, 2021, 2:19 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123558188 |
xubo123 |
D1 |
July 24, 2021, 1:22 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123558135 |
TkFox_wa |
D1 |
July 24, 2021, 1:20 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123557714 |
dipti821 |
D1 |
July 24, 2021, 1:09 a.m. |
OK |
GNU C++17 |
TESTS |
8 |
15 |
3686400 |
|
|
123573826 |
Zobayer_Abedin |
D1 |
July 24, 2021, 5:53 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123573134 |
zhanghenglei |
D1 |
July 24, 2021, 5:45 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123571492 |
nagaraj41 |
D1 |
July 24, 2021, 5:20 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123570661 |
CodeChamp_SS |
D1 |
July 24, 2021, 5:08 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123570382 |
Prabhat0602 |
D1 |
July 24, 2021, 5:03 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123568935 |
iyangye |
D1 |
July 24, 2021, 4:38 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123568767 |
UV3 |
D1 |
July 24, 2021, 4:35 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123568705 |
caramel-pudding |
D1 |
July 24, 2021, 4:34 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123568002 |
el_camino |
D1 |
July 24, 2021, 4:21 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123574323 |
v.k.anku1511 |
D1 |
July 24, 2021, 5:59 a.m. |
OK |
GNU C++17 (64) |
TESTS |
8 |
15 |
4300800 |
|
|
123555034 |
pohzipohzi |
D1 |
July 23, 2021, 11:30 p.m. |
OK |
Go |
TESTS |
8 |
31 |
10649600 |
|
|
123524614 |
nirvana_rsc |
D1 |
July 23, 2021, 4:29 p.m. |
OK |
Java 11 |
TESTS |
8 |
155 |
23756800 |
|
|
123534521 |
imtiazaadar |
D1 |
July 23, 2021, 5:18 p.m. |
OK |
Java 11 |
TESTS |
8 |
156 |
23756800 |
|
|
123564693 |
mphillotry |
D1 |
July 24, 2021, 3:26 a.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23756800 |
|
|
123540118 |
qwerty12345qwerty |
D1 |
July 23, 2021, 6:24 p.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23756800 |
|
|
123539938 |
Andwerp |
D1 |
July 23, 2021, 6:22 p.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23756800 |
|
|
123529429 |
ayush__1411 |
D1 |
July 23, 2021, 4:39 p.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23756800 |
|
|
123527529 |
Tourist_01 |
D1 |
July 23, 2021, 4:34 p.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23756800 |
|
|
123526255 |
dinosparton_013 |
D1 |
July 23, 2021, 4:32 p.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23756800 |
|
|
123525820 |
ytripathi891 |
D1 |
July 23, 2021, 4:31 p.m. |
OK |
Java 11 |
TESTS |
8 |
171 |
23859200 |
|
|
123537231 |
dunkingdonuts |
D1 |
July 23, 2021, 5:48 p.m. |
OK |
Java 11 |
TESTS |
8 |
186 |
23756800 |
|
|
123532803 |
Lior |
D1 |
July 23, 2021, 5:02 p.m. |
OK |
Java 8 |
TESTS |
8 |
78 |
20275200 |
|
|
123551648 |
4mda4mda |
D1 |
July 23, 2021, 9:36 p.m. |
OK |
Java 8 |
TESTS |
8 |
93 |
20275200 |
|
|
123539677 |
GoldenShadow |
D1 |
July 23, 2021, 6:19 p.m. |
OK |
Java 8 |
TESTS |
8 |
93 |
20377600 |
|
|
123539931 |
honeysingh18 |
D1 |
July 23, 2021, 6:22 p.m. |
OK |
Java 8 |
TESTS |
8 |
109 |
20275200 |
|
|
123530362 |
Dstoical |
D1 |
July 23, 2021, 4:45 p.m. |
OK |
Java 8 |
TESTS |
8 |
109 |
20377600 |
|
|
123565635 |
Zahid_Hasan_Sahin |
D1 |
July 24, 2021, 3:41 a.m. |
OK |
Java 8 |
TESTS |
8 |
124 |
21094400 |
|
|
123527671 |
HuailongHuang |
D1 |
July 23, 2021, 4:34 p.m. |
OK |
Java 8 |
TESTS |
8 |
124 |
21094400 |
|
|
123574143 |
pallav12 |
D1 |
July 24, 2021, 5:57 a.m. |
OK |
Kotlin |
TESTS |
8 |
139 |
21708800 |
|
|
123549071 |
codersanjeev |
D1 |
July 23, 2021, 8:36 p.m. |
OK |
Kotlin |
TESTS |
8 |
140 |
21708800 |
|
|
123561912 |
dddttdCF |
D1 |
July 24, 2021, 2:39 a.m. |
OK |
MS C++ 2017 |
TESTS |
8 |
15 |
3788800 |
|
|
123558092 |
DingIt |
D1 |
July 24, 2021, 1:19 a.m. |
OK |
MS C++ 2017 |
TESTS |
8 |
30 |
244224000 |
|
|
123565338 |
Owaiter |
D1 |
July 24, 2021, 3:37 a.m. |
OK |
MS C++ 2017 |
TESTS |
8 |
31 |
3686400 |
|
|
123531320 |
acorn11 |
D1 |
July 23, 2021, 4:51 p.m. |
OK |
PyPy 2 |
TESTS |
8 |
93 |
23142400 |
|
|
123543347 |
silvertint |
D1 |
July 23, 2021, 7:09 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
92 |
20172800 |
|
|
123573032 |
shiviDON |
D1 |
July 24, 2021, 5:44 a.m. |
OK |
PyPy 3 |
TESTS |
8 |
93 |
20172800 |
|
|
123566785 |
Pravin2020 |
D1 |
July 24, 2021, 3:59 a.m. |
OK |
PyPy 3 |
TESTS |
8 |
93 |
20172800 |
|
|
123548705 |
Aksnov |
D1 |
July 23, 2021, 8:29 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
93 |
20172800 |
|
|
123538676 |
jcimskgp717 |
D1 |
July 23, 2021, 6:06 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
93 |
20172800 |
|
|
123573135 |
shiviDON |
D1 |
July 24, 2021, 5:45 a.m. |
OK |
PyPy 3 |
TESTS |
8 |
108 |
20172800 |
|
|
123568382 |
Somaditya02 |
D1 |
July 24, 2021, 4:28 a.m. |
OK |
PyPy 3 |
TESTS |
8 |
108 |
20172800 |
|
|
123535954 |
Moodymann |
D1 |
July 23, 2021, 5:33 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
108 |
20172800 |
|
|
123532378 |
InvalidSyntax |
D1 |
July 23, 2021, 4:59 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
108 |
20172800 |
|
|
123524616 |
dorado7 |
D1 |
July 23, 2021, 4:29 p.m. |
OK |
PyPy 3 |
TESTS |
8 |
108 |
20172800 |
|
|
123524643 |
R0h1tt |
D1 |
July 23, 2021, 4:29 p.m. |
OK |
Python 3 |
TESTS |
8 |
61 |
6758400 |
|
|
123561686 |
ravi_RAVI-123 |
D1 |
July 24, 2021, 2:35 a.m. |
OK |
Python 3 |
TESTS |
8 |
61 |
6963200 |
|
|
123538540 |
alsrjs0725 |
D1 |
July 23, 2021, 6:05 p.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
6758400 |
|
|
123566394 |
PedroGallo |
D1 |
July 24, 2021, 3:53 a.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
6963200 |
|
|
123565341 |
phizic |
D1 |
July 24, 2021, 3:37 a.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
6963200 |
|
|
123539311 |
tusharjain0022 |
D1 |
July 23, 2021, 6:14 p.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
6963200 |
|
|
123529301 |
tempo001 |
D1 |
July 23, 2021, 4:39 p.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
6963200 |
|
|
123524780 |
k4despair |
D1 |
July 23, 2021, 4:30 p.m. |
OK |
Python 3 |
TESTS |
8 |
62 |
6963200 |
|
|
123524919 |
andr14142 |
D1 |
July 23, 2021, 4:30 p.m. |
OK |
Python 3 |
TESTS |
8 |
77 |
6758400 |
|
|
123538090 |
NS3081992 |
D1 |
July 23, 2021, 5:59 p.m. |
OK |
Python 3 |
TESTS |
8 |
77 |
6963200 |
|
|
123556889 |
bqn |
D1 |
July 24, 2021, 12:47 a.m. |
OK |
Rust |
TESTS |
8 |
31 |
3891200 |
|
|
remove filters
Back to search problems