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"An n xe2 x80 x89 xc3 x97 xe2 x80 x89n square matrix is special, if: You are given n and the first m rows of the matrix. Print the number of special n xe2 x80 x89 xc3 x97 xe2 x80 x89n matrices, such that the first m rows coincide with the given ones. As the required value can be rather large, print the remainder after dividing the value by the given number mod. The first line of the input contains three integers n, m, mod (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89mod xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Then m lines follow, each of them contains n characters -- the first rows of the required special matrices. Each of these lines contains exactly two characters '1', the rest characters are '0'. Each column of the given m xe2 x80 x89 xc3 x97 xe2 x80 x89n table contains at most two numbers one. Print the remainder after dividing the required value by number mod. For the first test the required matrices are: In the second test the required matrix is already fully given, so the answer is 1."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
59378227 |
jcgzs |
F |
Aug. 24, 2019, 12:26 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
64 |
62 |
3481600 |
|
2200 |
50625121 |
RobeZH |
F |
March 1, 2019, 5:25 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
64 |
93 |
6553600 |
|
2200 |
40987643 |
ReaLNero1 |
F |
July 30, 2018, 9:23 p.m. |
OK |
GNU C++ |
TESTS |
64 |
31 |
102400 |
|
2200 |
41272576 |
vjudge4 |
F |
Aug. 6, 2018, 11:21 a.m. |
OK |
GNU C++ |
TESTS |
64 |
31 |
1331200 |
|
2200 |
41272553 |
luogu_bot4 |
F |
Aug. 6, 2018, 11:21 a.m. |
OK |
GNU C++ |
TESTS |
64 |
31 |
1331200 |
|
2200 |
41243605 |
vjudge3 |
F |
Aug. 5, 2018, 11:51 a.m. |
OK |
GNU C++ |
TESTS |
64 |
31 |
2048000 |
|
2200 |
41245951 |
vjudge5 |
F |
Aug. 5, 2018, 1:07 p.m. |
OK |
GNU C++ |
TESTS |
64 |
31 |
2252800 |
|
2200 |
41272940 |
vjudge3 |
F |
Aug. 6, 2018, 11:37 a.m. |
OK |
GNU C++ |
TESTS |
64 |
31 |
2355200 |
|
2200 |
41144978 |
vjudge2 |
F |
Aug. 3, 2018, 6:06 a.m. |
OK |
GNU C++ |
TESTS |
64 |
46 |
2048000 |
|
2200 |
41144963 |
CalvinJin |
F |
Aug. 3, 2018, 6:06 a.m. |
OK |
GNU C++ |
TESTS |
64 |
46 |
2048000 |
|
2200 |
41272490 |
Lonland |
F |
Aug. 6, 2018, 11:19 a.m. |
OK |
GNU C++ |
TESTS |
64 |
46 |
2355200 |
|
2200 |
41246108 |
980798778 |
F |
Aug. 5, 2018, 1:11 p.m. |
OK |
GNU C++ |
TESTS |
64 |
46 |
2355200 |
|
2200 |
59818929 |
rainboy |
F |
Aug. 31, 2019, 4:30 p.m. |
OK |
GNU C11 |
TESTS |
64 |
31 |
1024000 |
|
2200 |
43552518 |
vjudge3 |
F |
Sept. 29, 2018, 2:34 a.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
1024000 |
|
2200 |
58942016 |
Ka_Bar |
F |
Aug. 17, 2019, 7:19 a.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
1228800 |
|
2200 |
59789660 |
orangejuice9 |
F |
Aug. 31, 2019, 6:45 a.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
46986541 |
Romed |
F |
Dec. 13, 2018, 8:37 p.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
44984296 |
Marinkovic |
F |
Oct. 28, 2018, 10:04 a.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
41177261 |
nowhere132 |
F |
Aug. 3, 2018, 3:57 p.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
60068436 |
luogu_bot4 |
F |
Sept. 5, 2019, 10:09 a.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
43179917 |
luogu_bot4 |
F |
Sept. 21, 2018, 12:57 p.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2150400 |
|
2200 |
41245830 |
Caristra |
F |
Aug. 5, 2018, 1:03 p.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2252800 |
|
2200 |
51969736 |
cheetose |
F |
March 29, 2019, 11:48 a.m. |
OK |
GNU C++11 |
TESTS |
64 |
31 |
2355200 |
|
2200 |
39735849 |
raha2079 |
F |
June 28, 2018, 7:43 a.m. |
OK |
GNU C++14 |
TESTS |
64 |
30 |
4096000 |
|
2200 |
44764436 |
Ahmed- |
F |
Oct. 24, 2018, 9 a.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
1024000 |
|
2200 |
45135515 |
arshia_119 |
F |
Oct. 31, 2018, 12:11 p.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
1228800 |
|
2200 |
69425174 |
yan-zp |
F |
Jan. 23, 2020, 3:34 p.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
1433600 |
|
2200 |
69424299 |
yan-zp |
F |
Jan. 23, 2020, 3:19 p.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
1433600 |
|
2200 |
45136455 |
nimaebrazeh |
F |
Oct. 31, 2018, 12:34 p.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
59264533 |
vjudge1 |
F |
Aug. 22, 2019, 10:03 a.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
59353665 |
vjudge4 |
F |
Aug. 23, 2019, 12:44 p.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
41243587 |
Taizong |
F |
Aug. 5, 2018, 11:50 a.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
45346251 |
hiep622032001 |
F |
Nov. 6, 2018, 3:24 a.m. |
OK |
GNU C++14 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
56410452 |
Abdelrahman_Elhawary |
F |
July 1, 2019, 11:09 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
30 |
2355200 |
|
2200 |
65915896 |
Bohun |
F |
Nov. 28, 2019, 2:34 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
1024000 |
|
2200 |
61611730 |
ruo |
F |
Oct. 1, 2019, 2:19 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
1024000 |
|
2200 |
58816169 |
The.Last.Wizard |
F |
Aug. 14, 2019, 12:34 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
1228800 |
|
2200 |
58816065 |
The.Last.Wizard |
F |
Aug. 14, 2019, 12:33 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
1228800 |
|
2200 |
45283831 |
dsbvcvc432 |
F |
Nov. 4, 2018, 3:20 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
67482162 |
AliShahali1382 |
F |
Dec. 23, 2019, 4:17 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
59201027 |
vjudge3 |
F |
Aug. 21, 2019, 4:50 a.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
2048000 |
|
2200 |
43689574 |
nishant0208 |
F |
Oct. 2, 2018, 1:46 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
2150400 |
|
2200 |
45477537 |
vjudge3 |
F |
Nov. 9, 2018, 1:10 p.m. |
OK |
GNU C++17 |
TESTS |
64 |
31 |
2252800 |
|
2200 |
44425657 |
grebenshikov.n |
F |
Oct. 17, 2018, 4:03 a.m. |
OK |
Java 8 |
TESTS |
64 |
124 |
0 |
|
2200 |
59818930 |
Dukkha |
F |
Aug. 31, 2019, 4:30 p.m. |
OK |
Java 8 |
TESTS |
64 |
155 |
0 |
|
2200 |
58949648 |
dodoBehind |
F |
Aug. 17, 2019, 10:27 a.m. |
OK |
Java 8 |
TESTS |
64 |
170 |
0 |
|
2200 |
43433065 |
vjudge3 |
F |
Sept. 26, 2018, 3:10 a.m. |
OK |
MS C++ |
TESTS |
64 |
31 |
2048000 |
|
2200 |
43082131 |
vjudge2 |
F |
Sept. 19, 2018, 2:20 p.m. |
OK |
MS C++ |
TESTS |
64 |
31 |
2048000 |
|
2200 |
43181992 |
vjudge2 |
F |
Sept. 21, 2018, 1:45 p.m. |
OK |
MS C++ |
TESTS |
64 |
31 |
2355200 |
|
2200 |
43082147 |
vjudge4 |
F |
Sept. 19, 2018, 2:21 p.m. |
OK |
MS C++ |
TESTS |
64 |
46 |
2048000 |
|
2200 |
64510824 |
AvinashKartik |
F |
Nov. 8, 2019, 8:46 a.m. |
OK |
PyPy 3 |
TESTS |
64 |
249 |
11878400 |
|
2200 |
remove filters
Back to search problems