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"It is known that passages in Singer house are complex and intertwined. Let's define a Singer k-house as a graph built by the following process: take complete binary tree of height k and add edges from each vertex to all its successors, if they are not yet present. Count the number of non-empty paths in Singer k-house which do not pass the same vertex twice. Two paths are distinct if the sets or the orders of visited vertices are different. Since the answer can be large, output it modulo 109 xe2 x80 x89+ xe2 x80 x897. The only line contains single integer k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89400). Print single integer -- the answer for the task modulo 109 xe2 x80 x89+ xe2 x80 x897. There are 9 paths in the first example (the vertices are numbered on the picture below): 1, 2, 3, 1-2, 2-1, 1-3, 3-1, 2-1-3, 3-1-2. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
28523582 |
neither |
D |
July 13, 2017, 4:53 p.m. |
OK |
GNU C++ |
TESTS |
59 |
15 |
2150400 |
|
2800 |
36876690 |
heower |
D |
April 2, 2018, 11:42 a.m. |
OK |
GNU C++ |
TESTS |
59 |
30 |
3481600 |
|
2800 |
36876726 |
heower |
D |
April 2, 2018, 11:44 a.m. |
OK |
GNU C++ |
TESTS |
59 |
31 |
3481600 |
|
2800 |
29798642 |
ywsama |
D |
Aug. 26, 2017, 6:29 a.m. |
OK |
GNU C++ |
TESTS |
59 |
264 |
0 |
|
2800 |
36662060 |
vjudge2 |
D |
March 27, 2018, 8:30 a.m. |
OK |
GNU C++ |
TESTS |
59 |
280 |
5427200 |
|
2800 |
29726653 |
lllllllllllllllllllllll |
D |
Aug. 24, 2017, 8:59 a.m. |
OK |
GNU C++ |
TESTS |
59 |
546 |
716800 |
|
2800 |
36661980 |
vjudge3 |
D |
March 27, 2018, 8:27 a.m. |
OK |
GNU C++ |
TESTS |
59 |
577 |
5427200 |
|
2800 |
36688238 |
Timsei |
D |
March 28, 2018, 9:48 a.m. |
OK |
GNU C++ |
TESTS |
59 |
608 |
5120000 |
|
2800 |
30386864 |
Eriri_Sawamura |
D |
Sept. 16, 2017, 3:29 p.m. |
OK |
GNU C++ |
TESTS |
59 |
624 |
819200 |
|
2800 |
30386884 |
vjudge2 |
D |
Sept. 16, 2017, 3:30 p.m. |
OK |
GNU C++ |
TESTS |
59 |
639 |
819200 |
|
2800 |
29838061 |
289371298 |
D |
Aug. 28, 2017, 3:42 a.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
0 |
|
2800 |
28567992 |
rxdoi |
D |
July 15, 2017, 8:19 a.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
2150400 |
|
2800 |
28564613 |
ohweonfire |
D |
July 15, 2017, 5:34 a.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
2150400 |
|
2800 |
28529340 |
Len |
D |
July 13, 2017, 7:38 p.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
2150400 |
|
2800 |
28528390 |
Kuzey |
D |
July 13, 2017, 6:54 p.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
2150400 |
|
2800 |
28518930 |
matthew99 |
D |
July 13, 2017, 4:15 p.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
2150400 |
|
2800 |
29642975 |
hymscoty |
D |
Aug. 21, 2017, 12:09 p.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
2662400 |
|
2800 |
28705814 |
mareksom |
D |
July 19, 2017, 10:05 p.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
5120000 |
|
2800 |
28529629 |
pavel.savchenkov |
D |
July 13, 2017, 7:54 p.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
5427200 |
|
2800 |
28524147 |
Radewoosh |
D |
July 13, 2017, 4:57 p.m. |
OK |
GNU C++11 |
TESTS |
59 |
15 |
131276800 |
|
2800 |
29372124 |
letsbe |
D |
Aug. 12, 2017, 8:05 a.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28931336 |
Merkurev |
D |
July 27, 2017, 1:28 p.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28700172 |
yeguanghao |
D |
July 19, 2017, 3:29 p.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28661652 |
mHuman |
D |
July 18, 2017, 8:14 a.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28644047 |
redocyz |
D |
July 17, 2017, 4:24 p.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28522173 |
snuke |
D |
July 13, 2017, 4:42 p.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28518846 |
Merkurev |
D |
July 13, 2017, 4:14 p.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28518779 |
yosupo |
D |
July 13, 2017, 4:14 p.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
1945600 |
|
2800 |
28552064 |
pro100leo |
D |
July 14, 2017, 3:33 p.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
3584000 |
|
2800 |
28629292 |
_LowestJN |
D |
July 17, 2017, 6:22 a.m. |
OK |
GNU C++14 |
TESTS |
59 |
15 |
3993600 |
|
2800 |
41500989 |
sinesight SpyCheese |
D |
Aug. 11, 2018, 5:05 p.m. |
OK |
GNU C++17 |
TESTS |
59 |
31 |
1331200 |
|
2800 |
62833811 |
Slaaava |
D |
Oct. 17, 2019, 9:04 p.m. |
OK |
GNU C++17 |
TESTS |
59 |
46 |
0 |
|
2800 |
62453451 |
Anachor |
D |
Oct. 13, 2019, 5:24 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
405 |
716800 |
|
2800 |
62453595 |
Anachor |
D |
Oct. 13, 2019, 5:28 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
421 |
716800 |
|
2800 |
62453295 |
Anachor |
D |
Oct. 13, 2019, 5:20 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
467 |
716800 |
|
2800 |
52448229 |
majk |
D |
April 7, 2019, 8:44 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
592 |
0 |
|
2800 |
69504508 |
AlexLuchianov |
D |
Jan. 25, 2020, 7:59 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
608 |
716800 |
|
2800 |
49451780 |
Shayan.P |
D |
Feb. 4, 2019, 7:41 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
670 |
921600 |
|
2800 |
63710913 |
ivan100sic |
D |
Oct. 29, 2019, 10 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
763 |
614400 |
|
2800 |
57586775 |
Fulisike |
D |
July 23, 2019, 10:56 a.m. |
OK |
GNU C++17 |
TESTS |
59 |
795 |
1331200 |
|
2800 |
28525988 |
uwi |
D |
July 13, 2017, 5:49 p.m. |
OK |
Java 8 |
TESTS |
59 |
140 |
21094400 |
|
2800 |
28645664 |
mmaxio |
D |
July 17, 2017, 5:43 p.m. |
OK |
Java 8 |
TESTS |
59 |
857 |
20787200 |
|
2800 |
28518760 |
Petr |
D |
July 13, 2017, 4:14 p.m. |
OK |
Java 8 |
TESTS |
59 |
1294 |
21094400 |
|
2800 |
29694615 |
Darth_Jar_Jar_Binks |
D |
Aug. 22, 2017, 10:45 p.m. |
OK |
Java 8 |
TESTS |
59 |
1326 |
0 |
|
2800 |
28516846 |
msinghal |
D |
July 13, 2017, 3:59 p.m. |
OK |
Java 8 |
TESTS |
59 |
1387 |
21094400 |
|
2800 |
29082318 |
achudov89 |
D |
July 31, 2017, 10:34 p.m. |
OK |
MS C++ |
TESTS |
59 |
1013 |
3481600 |
|
2800 |
28519746 |
1919810 |
D |
July 13, 2017, 4:22 p.m. |
OK |
Python 2 |
TESTS |
59 |
61 |
5017600 |
|
2800 |
remove filters
Back to search problems