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"So many wall designs to choose from! Even modulo 106 xe2 x80 x89+ xe2 x80 x893, it's an enormous number. Given that recently Heidi acquired an unlimited supply of bricks, her choices are endless! She really needs to do something to narrow them down. Heidi is quick to come up with criteria for a useful wall: This should rule out a fair amount of possibilities, right? Help Heidi compute the number of useless walls that do not confirm to either of these criteria. In other words, a wall is useless if every segment has width at most W and height at most H. Parameter C, the total width of the wall, has the same meaning as in the easy version. However, note that the number of bricks is now unlimited. Output the number of useless walls modulo 106 xe2 x80 x89+ xe2 x80 x893. The first and the only line of the input contains three space-separated integers C, W and H (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89C xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89108, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89W, xe2 x80 x89H xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). Output the number of different walls, modulo 106 xe2 x80 x89+ xe2 x80 x893, which are useless according to Heidi's criteria. If there is no brick in any of the columns, the structure is considered as a useless wall. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
19052657 |
llgyc |
D3 |
July 12, 2016, 2:02 p.m. |
OK |
FPC |
TESTS |
27 |
1138 |
409600 |
|
2100 |
19007198 |
JATC tungtinhoctre126 |
D3 |
July 10, 2016, 11:27 a.m. |
OK |
FPC |
TESTS |
27 |
9141 |
11264000 |
|
2100 |
19002206 |
RNS_CUS RNS3 |
D3 |
July 10, 2016, 9:11 a.m. |
OK |
GNU C++ |
TESTS |
27 |
15 |
0 |
|
2100 |
40984147 |
ReaLNero1 |
D3 |
July 30, 2018, 7:12 p.m. |
OK |
GNU C++ |
TESTS |
27 |
31 |
0 |
|
2100 |
19002319 |
jiaqiyang C_SUNSHINE |
D3 |
July 10, 2016, 9:13 a.m. |
OK |
GNU C++ |
TESTS |
27 |
62 |
204800 |
|
2100 |
19001582 |
black_horse2014 kutengine |
D3 |
July 10, 2016, 8:58 a.m. |
OK |
GNU C++ |
TESTS |
27 |
62 |
204800 |
|
2100 |
19007700 |
JOHNKRAM |
D3 |
July 10, 2016, 11:42 a.m. |
OK |
GNU C++ |
TESTS |
27 |
78 |
204800 |
|
2100 |
19007492 |
JOHNKRAM |
D3 |
July 10, 2016, 11:37 a.m. |
OK |
GNU C++ |
TESTS |
27 |
78 |
204800 |
|
2100 |
19006201 |
sgtlaugh |
D3 |
July 10, 2016, 10:55 a.m. |
OK |
GNU C++ |
TESTS |
27 |
156 |
204800 |
|
2100 |
19006417 |
KousakaHonoka 964685331 sky46262 |
D3 |
July 10, 2016, 11:02 a.m. |
OK |
GNU C++ |
TESTS |
27 |
265 |
204800 |
|
2100 |
33138173 |
vjudge2 |
D3 |
Dec. 11, 2017, 8:13 p.m. |
OK |
GNU C++ |
TESTS |
27 |
280 |
2560000 |
|
2100 |
19007117 |
noxe |
D3 |
July 10, 2016, 11:25 a.m. |
OK |
GNU C++ |
TESTS |
27 |
295 |
614400 |
|
2100 |
19000044 |
anta |
D3 |
July 10, 2016, 8:33 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
15 |
0 |
|
2100 |
23335835 |
rubabredwan |
D3 |
Dec. 26, 2016, 8:34 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
62 |
13414400 |
|
2100 |
19284832 |
savinov |
D3 |
July 20, 2016, 5:03 p.m. |
OK |
GNU C++11 |
TESTS |
27 |
109 |
512000 |
|
2100 |
29447664 |
DAyamaCTF |
D3 |
Aug. 14, 2017, 3:57 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
124 |
2662400 |
|
2100 |
19002851 |
dy.octa kingjgv5 cxaphoenix |
D3 |
July 10, 2016, 9:25 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
124 |
16588800 |
|
2100 |
19002297 |
NVAL |
D3 |
July 10, 2016, 9:13 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
140 |
204800 |
|
2100 |
19002551 |
netman teleport andrew.volchek |
D3 |
July 10, 2016, 9:18 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
140 |
512000 |
|
2100 |
19001894 |
Vercingetorix Nerevar |
D3 |
July 10, 2016, 9:04 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
155 |
307200 |
|
2100 |
19001779 |
AntiForest JoeyWheeler xxTastyHypeBeast666xx |
D3 |
July 10, 2016, 9:02 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
156 |
3686400 |
|
2100 |
19002664 |
ainta |
D3 |
July 10, 2016, 9:20 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
218 |
0 |
|
2100 |
27435340 |
shadowatyy |
D3 |
May 29, 2017, 7:49 p.m. |
OK |
GNU C++14 |
TESTS |
27 |
171 |
819200 |
|
2100 |
29541139 |
tossy |
D3 |
Aug. 18, 2017, 1:11 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
280 |
512000 |
|
2100 |
25689100 |
please_delete_account |
D3 |
March 21, 2017, 1:13 p.m. |
OK |
GNU C++14 |
TESTS |
27 |
343 |
2048000 |
|
2100 |
42460136 |
I_love_Y_UME |
D3 |
Sept. 4, 2018, 1:20 p.m. |
OK |
GNU C++14 |
TESTS |
27 |
358 |
204800 |
|
2100 |
33016804 |
vjudge5 |
D3 |
Dec. 8, 2017, 7:37 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
374 |
2150400 |
|
2100 |
33016781 |
AbolfazlB3 |
D3 |
Dec. 8, 2017, 7:36 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
374 |
2150400 |
|
2100 |
33456796 |
ckodser |
D3 |
Dec. 20, 2017, 1:38 p.m. |
OK |
GNU C++14 |
TESTS |
27 |
405 |
2252800 |
|
2100 |
32970298 |
vjudge1 |
D3 |
Dec. 6, 2017, 9:07 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
405 |
2252800 |
|
2100 |
34797374 |
iqqsoszs |
D3 |
Feb. 1, 2018, 9:38 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
405 |
2457600 |
|
2100 |
38197330 |
ImaniAm |
D3 |
May 13, 2018, 5:02 p.m. |
OK |
GNU C++14 |
TESTS |
27 |
468 |
3686400 |
|
2100 |
41065530 |
Gediminas |
D3 |
July 31, 2018, 6:40 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
468 |
2867200 |
|
2100 |
40618448 |
.__. |
D3 |
July 21, 2018, 9:04 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
2168 |
204800 |
|
2100 |
41597411 |
vjudge3 |
D3 |
Aug. 14, 2018, 5:35 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
3993 |
0 |
|
2100 |
41597430 |
vjudge3 |
D3 |
Aug. 14, 2018, 5:36 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
5335 |
0 |
|
2100 |
49388253 |
William324 |
D3 |
Feb. 3, 2019, 8:14 a.m. |
OK |
GNU C++17 |
TESTS |
27 |
8329 |
307200 |
|
2100 |
19030742 |
kraskevich |
D3 |
July 11, 2016, 1:08 p.m. |
OK |
Java 8 |
TESTS |
27 |
1231 |
0 |
|
2100 |
19000639 |
azukun |
D3 |
July 10, 2016, 8:42 a.m. |
OK |
MS C# |
TESTS |
27 |
780 |
3379200 |
|
2100 |
19003000 |
stgatilov |
D3 |
July 10, 2016, 9:28 a.m. |
OK |
MS C++ |
TESTS |
27 |
78 |
512000 |
|
2100 |
19002383 |
PengsenMao xu_an_xi squee_spoon |
D3 |
July 10, 2016, 9:14 a.m. |
OK |
MS C++ |
TESTS |
27 |
483 |
1331200 |
|
2100 |
19003448 |
Mosyagin AleksanderBalobanov |
D3 |
July 10, 2016, 9:39 a.m. |
OK |
MS C++ |
TESTS |
27 |
499 |
204800 |
|
2100 |
19008398 |
Carups |
D3 |
July 10, 2016, 12:02 p.m. |
OK |
MS C++ |
TESTS |
27 |
639 |
102400 |
|
2100 |
19004873 |
Taube |
D3 |
July 10, 2016, 10:19 a.m. |
OK |
MS C++ |
TESTS |
27 |
717 |
307200 |
|
2100 |
19011864 |
xiaobo |
D3 |
July 10, 2016, 2:53 p.m. |
OK |
MS C++ |
TESTS |
27 |
795 |
921600 |
|
2100 |
25768537 |
YakutovDmitriy |
D3 |
March 24, 2017, 9:59 a.m. |
OK |
Python 3 |
TESTS |
27 |
7409 |
5529600 |
|
2100 |
remove filters
Back to search problems