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'Pak Chanek has a grid that has N rows and M columns. Each row is numbered from 1 to N from top to bottom. Each column is numbered from 1 to M from left to right. Each tile in the grid contains a number. The numbers are arranged as follows: A domino is defined as two different tiles in the grid that touch by their sides. A domino is said to be tight if and only if the two numbers in the domino have a difference of exactly 1 . Count the number of distinct tight dominoes in the grid. Two dominoes are said to be distinct if and only if there exists at least one tile that is in one domino, but not in the other. The only line contains two integers N and M ( 1 <= q N, M <= q 10^9 ) -- the number of rows and columns in the grid. An integer representing the number of distinct tight dominoes in the grid. The picture below is the grid that Pak Chanek has in the first example. The picture below is an example of a tight domino in the grid. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
170897474 |
Sharishth |
A |
Sept. 4, 2022, 10:35 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
18 |
31 |
0 |
|
|
170862097 |
ruban |
A |
Sept. 4, 2022, 3:08 p.m. |
OK |
Delphi |
TESTS |
18 |
15 |
11366400 |
|
|
170853177 |
kushalguptadps1 |
A |
Sept. 4, 2022, 2:12 p.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170872289 |
iffatul_anon |
A |
Sept. 4, 2022, 4:30 p.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170886699 |
Jubair94 |
A |
Sept. 4, 2022, 7:08 p.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170907513 |
Shakhawatshovo |
A |
Sept. 5, 2022, 3:41 a.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170909984 |
Arghy |
A |
Sept. 5, 2022, 4:42 a.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170910061 |
oldartist |
A |
Sept. 5, 2022, 4:44 a.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170910789 |
HK_Himu |
A |
Sept. 5, 2022, 5 a.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170856322 |
alokraj262 |
A |
Sept. 4, 2022, 2:30 p.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170856419 |
vedic86 |
A |
Sept. 4, 2022, 2:30 p.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170872150 |
Mahfuj_SUST |
A |
Sept. 4, 2022, 4:29 p.m. |
OK |
GNU C11 |
TESTS |
18 |
15 |
0 |
|
|
170877562 |
pranay_116 |
A |
Sept. 4, 2022, 5:22 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170872908 |
Naman1729 shikhar229169 |
A |
Sept. 4, 2022, 4:36 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170869644 |
Starry516 |
A |
Sept. 4, 2022, 4:08 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170900759 |
apexorca |
A |
Sept. 5, 2022, 12:27 a.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170891353 |
gourabsingha1 |
A |
Sept. 4, 2022, 8:20 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170889727 |
atliqui17 |
A |
Sept. 4, 2022, 7:53 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170887635 |
Shubh08am |
A |
Sept. 4, 2022, 7:21 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170886912 |
earth9890 |
A |
Sept. 4, 2022, 7:11 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170881549 |
LuCkIeS |
A |
Sept. 4, 2022, 6:07 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170880637 |
yashwardhanj12 |
A |
Sept. 4, 2022, 5:57 p.m. |
OK |
GNU C++14 |
TESTS |
18 |
0 |
0 |
|
|
170909114 |
nk3 |
A |
Sept. 5, 2022, 4:21 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170909847 |
IZAZ_ULLAH_KHAN |
A |
Sept. 5, 2022, 4:38 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170909131 |
Symon434 |
A |
Sept. 5, 2022, 4:21 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170907751 |
van_cien |
A |
Sept. 5, 2022, 3:47 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170906765 |
I_Love_McDonie |
A |
Sept. 5, 2022, 3:25 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170904617 |
Starktrek |
A |
Sept. 5, 2022, 2:22 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170903232 |
cas113 |
A |
Sept. 5, 2022, 1:42 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170902126 |
Cheerio2021 |
A |
Sept. 5, 2022, 1:10 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170900979 |
lijunlin |
A |
Sept. 5, 2022, 12:34 a.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170899494 |
Walidmohamed11 |
A |
Sept. 4, 2022, 11:42 p.m. |
OK |
GNU C++17 |
TESTS |
18 |
0 |
0 |
|
|
170864164 |
pachico |
A |
Sept. 4, 2022, 3:23 p.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170866209 |
albraaalhrairy90 |
A |
Sept. 4, 2022, 3:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170870745 |
Shakil_06 |
A |
Sept. 4, 2022, 4:17 p.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170884656 |
mmm.mmm |
A |
Sept. 4, 2022, 6:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170884706 |
she.Mariam.ta |
A |
Sept. 4, 2022, 6:41 p.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170892178 |
adityateltia22 |
A |
Sept. 4, 2022, 8:35 p.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170897162 |
cherry_su |
A |
Sept. 4, 2022, 10:25 p.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170904432 |
LeNcyer |
A |
Sept. 5, 2022, 2:17 a.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170905123 |
linxd |
A |
Sept. 5, 2022, 2:37 a.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170908576 |
blitzorddd |
A |
Sept. 5, 2022, 4:09 a.m. |
OK |
GNU C++17 (64) |
TESTS |
18 |
0 |
0 |
|
|
170908945 |
_Edmond_ |
A |
Sept. 5, 2022, 4:17 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170913287 |
Jalppatel1428 |
A |
Sept. 5, 2022, 5:52 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170912836 |
sparsh082 |
A |
Sept. 5, 2022, 5:43 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170912015 |
Absenter |
A |
Sept. 5, 2022, 5:27 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170911692 |
mysteri0us7 |
A |
Sept. 5, 2022, 5:20 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170911370 |
notnormie |
A |
Sept. 5, 2022, 5:13 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170910113 |
gtheoden42 |
A |
Sept. 5, 2022, 4:45 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170909541 |
vedant_1 |
A |
Sept. 5, 2022, 4:30 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170907606 |
Dhruv_2104 |
A |
Sept. 5, 2022, 3:43 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170913546 |
test_z |
A |
Sept. 5, 2022, 5:58 a.m. |
OK |
GNU C++20 (64) |
TESTS |
18 |
0 |
0 |
|
|
170865533 |
markmoretto |
A |
Sept. 4, 2022, 3:34 p.m. |
OK |
Go |
TESTS |
18 |
15 |
0 |
|
|
170868337 |
SpaghettiCoder |
A |
Sept. 4, 2022, 3:57 p.m. |
OK |
Go |
TESTS |
18 |
15 |
0 |
|
|
170896473 |
pepradere |
A |
Sept. 4, 2022, 10:07 p.m. |
OK |
Go |
TESTS |
18 |
31 |
0 |
|
|
170890302 |
satyaa_78 |
A |
Sept. 4, 2022, 8:03 p.m. |
OK |
Java 11 |
TESTS |
18 |
155 |
0 |
|
|
170857983 |
IceWolf898 |
A |
Sept. 4, 2022, 2:40 p.m. |
OK |
Java 11 |
TESTS |
18 |
155 |
0 |
|
|
170907483 |
Cartoonshow |
A |
Sept. 5, 2022, 3:41 a.m. |
OK |
Java 11 |
TESTS |
18 |
155 |
0 |
|
|
170896796 |
dzhi |
A |
Sept. 4, 2022, 10:16 p.m. |
OK |
Java 11 |
TESTS |
18 |
155 |
0 |
|
|
170846720 |
IanISam antioctane1 Nightxade |
A |
Sept. 4, 2022, 1:44 p.m. |
OK |
Java 11 |
TESTS |
18 |
156 |
0 |
|
|
170861448 |
alexyd88 justinyaodu |
A |
Sept. 4, 2022, 3:03 p.m. |
OK |
Java 11 |
TESTS |
18 |
171 |
0 |
|
|
170883572 |
SpookyJumpyBeans |
A |
Sept. 4, 2022, 6:28 p.m. |
OK |
Java 11 |
TESTS |
18 |
171 |
0 |
|
|
170861099 |
giridhrubajyoti2002 |
A |
Sept. 4, 2022, 3 p.m. |
OK |
Java 11 |
TESTS |
18 |
171 |
0 |
|
|
170857103 |
shreyashjha42002 |
A |
Sept. 4, 2022, 2:35 p.m. |
OK |
Java 11 |
TESTS |
18 |
171 |
0 |
|
|
170855552 |
enuguru_2002 |
A |
Sept. 4, 2022, 2:25 p.m. |
OK |
Java 11 |
TESTS |
18 |
171 |
0 |
|
|
170854248 |
RONIN786 |
A |
Sept. 4, 2022, 2:18 p.m. |
OK |
Java 17 |
TESTS |
18 |
186 |
0 |
|
|
170858485 |
sharmaakhil574 |
A |
Sept. 4, 2022, 2:43 p.m. |
OK |
Java 17 |
TESTS |
18 |
187 |
0 |
|
|
170863909 |
nerixx |
A |
Sept. 4, 2022, 3:21 p.m. |
OK |
Java 17 |
TESTS |
18 |
202 |
102400 |
|
|
170848794 |
pradnyakshirsagar63 |
A |
Sept. 4, 2022, 1:52 p.m. |
OK |
Java 17 |
TESTS |
18 |
202 |
614400 |
|
|
170852572 |
Kamal_15 |
A |
Sept. 4, 2022, 2:09 p.m. |
OK |
Java 17 |
TESTS |
18 |
218 |
0 |
|
|
170856239 |
suhan_thirumalai vasanthgk02 |
A |
Sept. 4, 2022, 2:29 p.m. |
OK |
Java 17 |
TESTS |
18 |
218 |
307200 |
|
|
170850508 |
yashanshavvrajpurohit |
A |
Sept. 4, 2022, 1:59 p.m. |
OK |
Java 17 |
TESTS |
18 |
233 |
614400 |
|
|
170847503 |
intense ganesh_6 |
A |
Sept. 4, 2022, 1:47 p.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170912058 |
liomsv |
A |
Sept. 5, 2022, 5:28 a.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170886516 |
Sussykin |
A |
Sept. 4, 2022, 7:05 p.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170881728 |
Mohamed_A7med |
A |
Sept. 4, 2022, 6:09 p.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170881367 |
Virendra115 |
A |
Sept. 4, 2022, 6:05 p.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170872721 |
Dominater069 |
A |
Sept. 4, 2022, 4:34 p.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170855117 |
ankit_0207 |
A |
Sept. 4, 2022, 2:23 p.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170846668 |
Yermanov Kaldaruly Ali04 |
A |
Sept. 4, 2022, 1:44 p.m. |
OK |
Java 8 |
TESTS |
18 |
93 |
0 |
|
|
170898222 |
Koka |
A |
Sept. 4, 2022, 10:58 p.m. |
OK |
Java 8 |
TESTS |
18 |
108 |
0 |
|
|
170866613 |
rnss |
A |
Sept. 4, 2022, 3:43 p.m. |
OK |
Java 8 |
TESTS |
18 |
108 |
0 |
|
|
170872113 |
madikensky Temirlan_Kassym plymouth43 |
A |
Sept. 4, 2022, 4:29 p.m. |
OK |
Kotlin 1.6 |
TESTS |
18 |
171 |
0 |
|
|
170855971 |
wenzhu_z |
A |
Sept. 4, 2022, 2:28 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
0 |
0 |
|
|
170847980 |
ntzntz |
A |
Sept. 4, 2022, 1:49 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
0 |
0 |
|
|
170847059 |
SHUTNICHEK |
A |
Sept. 4, 2022, 1:45 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
0 |
0 |
|
|
170848836 |
lcxxs |
A |
Sept. 4, 2022, 1:52 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
0 |
0 |
|
|
170861792 |
pushu10 |
A |
Sept. 4, 2022, 3:05 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
0 |
0 |
|
|
170856972 |
AGA_2003 IITDG-CODER Asterisk007 |
A |
Sept. 4, 2022, 2:34 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
0 |
0 |
|
|
170909023 |
vineet11 |
A |
Sept. 5, 2022, 4:19 a.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
15 |
0 |
|
|
170886474 |
Noureldean_2003 |
A |
Sept. 4, 2022, 7:04 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
15 |
0 |
|
|
170885987 |
khrystyna_dol |
A |
Sept. 4, 2022, 6:57 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
15 |
0 |
|
|
170868279 |
CodeHunter777 |
A |
Sept. 4, 2022, 3:56 p.m. |
OK |
MS C++ 2017 |
TESTS |
18 |
15 |
0 |
|
|
170872126 |
Pranjallko |
A |
Sept. 4, 2022, 4:29 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
77 |
0 |
|
|
170896293 |
Prakul_Agrawal |
A |
Sept. 4, 2022, 10:02 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
77 |
0 |
|
|
170863614 |
mohammedbasheer2301 |
A |
Sept. 4, 2022, 3:19 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
77 |
0 |
|
|
170847489 |
sonya_kov |
A |
Sept. 4, 2022, 1:47 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
77 |
0 |
|
|
170846595 |
racernigga |
A |
Sept. 4, 2022, 1:44 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
77 |
0 |
|
|
170866665 |
vaibhavmsra_78 |
A |
Sept. 4, 2022, 3:44 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
78 |
0 |
|
|
170860418 |
Abdelrahim303 |
A |
Sept. 4, 2022, 2:55 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
78 |
0 |
|
|
170907716 |
WalrusRamen21 |
A |
Sept. 5, 2022, 3:46 a.m. |
OK |
PyPy 3 |
TESTS |
18 |
92 |
0 |
|
|
170901570 |
MinhQNgo |
A |
Sept. 5, 2022, 12:54 a.m. |
OK |
PyPy 3 |
TESTS |
18 |
93 |
0 |
|
|
170876148 |
shriom533 |
A |
Sept. 4, 2022, 5:06 p.m. |
OK |
PyPy 3 |
TESTS |
18 |
93 |
0 |
|
|
170858163 |
w1nchie |
A |
Sept. 4, 2022, 2:41 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170856052 |
learnhowtolearning |
A |
Sept. 4, 2022, 2:28 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170851321 |
mo72medem2m |
A |
Sept. 4, 2022, 2:03 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170850652 |
jackfratto |
A |
Sept. 4, 2022, 2 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170847592 |
junah iseol aaat |
A |
Sept. 4, 2022, 1:47 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170848663 |
manish.17 |
A |
Sept. 4, 2022, 1:51 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170912746 |
iron_nicko |
A |
Sept. 5, 2022, 5:41 a.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170906086 |
quangltfsc0378 |
A |
Sept. 5, 2022, 3:06 a.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170869113 |
hk10537 |
A |
Sept. 4, 2022, 4:04 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170860002 |
gokulraaj59 |
A |
Sept. 4, 2022, 2:53 p.m. |
OK |
PyPy 3-64 |
TESTS |
18 |
46 |
0 |
|
|
170856368 |
EAGLE-X |
A |
Sept. 4, 2022, 2:30 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170869417 |
AyuAnchor |
A |
Sept. 4, 2022, 4:06 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170868840 |
supersiim KIlison |
A |
Sept. 4, 2022, 4:01 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170862913 |
20501A05E3 |
A |
Sept. 4, 2022, 3:14 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170861981 |
meet_hedapara79 jaybutani007 nilesh53 |
A |
Sept. 4, 2022, 3:07 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170861309 |
rafgiav |
A |
Sept. 4, 2022, 3:02 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170861207 |
harsh___mishra |
A |
Sept. 4, 2022, 3:01 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170860510 |
nagasaikayithi |
A |
Sept. 4, 2022, 2:56 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170877784 |
Egregious |
A |
Sept. 4, 2022, 5:24 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170857194 |
PenguinPrivate |
A |
Sept. 4, 2022, 2:35 p.m. |
OK |
Python 3 |
TESTS |
18 |
31 |
0 |
|
|
170848286 |
Nogard_ |
A |
Sept. 4, 2022, 1:50 p.m. |
OK |
Rust 2021 |
TESTS |
18 |
15 |
0 |
|
|
remove filters
Back to search problems