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
In Isart people don't die. There are n gangs of criminals. The i -th gang contains s i evil people numerated from 0 to s i - 1 . Some of these people took part in a big mine robbery and picked one gold bullion each (these people are given in the input). That happened 10 100 years ago and then all of the gangs escaped to a remote area, far from towns. During the years, they were copying some gold bullions according to an organized plan in order to not get arrested. They constructed a tournament directed graph (a graph where there is exactly one directed edge between every pair of vertices) of gangs (the graph is given in the input). In this graph an edge from u to v means that in the i -th hour the person of the gang u can send a fake gold bullion to person of gang v . He sends it if he has some bullion (real or fake), while the receiver doesn't have any. Thus, at any moment each of the gangsters has zero or one gold bullion. Some of them have real bullions, and some of them have fake ones. In the beginning of this year, the police has finally found the gangs, but they couldn't catch them, as usual. The police decided to open a jewelry store so that the gangsters would sell the bullions. Thus, every gangster that has a bullion (fake or real) will try to sell it. If he has a real gold bullion, he sells it without problems, but if he has a fake one, there is a choice of two events that can happen: The person sells the gold bullion successfully. The person is arrested by police. The power of a gang is the number of people in it that successfully sold their bullion. After all selling is done, the police arrests b gangs out of top gangs. Sort the gangs by powers, we call the first a gang top gangs(you can sort the equal powers in each order). Consider all possible results of selling fake gold bullions and all possible choice of b gangs among the top gangs. Count the number of different sets of these b gangs modulo 10 9 + 7 . Two sets X and Y are considered diffe |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
27367285 |
rterte |
F |
May 27, 2017, 5:06 a.m. |
OK |
GNU C++ |
TESTS |
109 |
421 |
51609600 |
|
3400 |
|
40980953 |
ReaLNero1 |
F |
July 30, 2018, 5:46 p.m. |
OK |
GNU C++ |
TESTS |
109 |
436 |
51609600 |
|
3400 |
|
27365618 |
AkaneSasu |
F |
May 27, 2017, 1:19 a.m. |
OK |
GNU C++ |
TESTS |
109 |
436 |
51609600 |
|
3400 |
|
40981524 |
ReaLNero1 |
F |
July 30, 2018, 6:02 p.m. |
OK |
GNU C++ |
TESTS |
109 |
468 |
51609600 |
|
3400 |
|
47358843 |
zhouyuyang |
F |
Dec. 22, 2018, 7:37 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
280 |
149196800 |
|
3400 |
|
64507673 |
chenkehan |
F |
Nov. 8, 2019, 7:34 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
311 |
28057600 |
|
3400 |
|
60196887 |
luogu_bot4 |
F |
Sept. 7, 2019, 2:25 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
405 |
53964800 |
|
3400 |
|
58263202 |
LuoshuiTianyi |
F |
Aug. 4, 2019, 1:17 p.m. |
OK |
GNU C++11 |
TESTS |
109 |
405 |
54067200 |
|
3400 |
|
47479017 |
vjudge5 |
F |
Dec. 25, 2018, 2:15 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
405 |
165376000 |
|
3400 |
|
59884812 |
LuoshuiTianyi |
F |
Sept. 2, 2019, 7:21 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
421 |
54067200 |
|
3400 |
|
59114500 |
TiwAirOAO |
F |
Aug. 20, 2019, 12:26 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
421 |
153395200 |
|
3400 |
|
64347137 |
ffffxk |
F |
Nov. 6, 2019, 6:51 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
436 |
104550400 |
|
3400 |
|
54838595 |
_twilight |
F |
May 30, 2019, 11:52 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
436 |
159129600 |
|
3400 |
|
47538052 |
luogu_bot1 |
F |
Dec. 27, 2018, 4:30 a.m. |
OK |
GNU C++11 |
TESTS |
109 |
436 |
205619200 |
|
3400 |
|
57182647 |
emoairx |
F |
July 17, 2019, 7:45 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
343 |
107315200 |
|
3400 |
|
64688005 |
Toxel |
F |
Nov. 11, 2019, 12:19 p.m. |
OK |
GNU C++14 |
TESTS |
109 |
451 |
131072000 |
|
3400 |
|
27892775 |
Ali.Pi |
F |
June 19, 2017, 12:25 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
452 |
51814400 |
|
3400 |
|
28245141 |
iwtywai2005 |
F |
July 3, 2017, 5:46 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
452 |
53657600 |
|
3400 |
|
27615360 |
krijgertje |
F |
June 6, 2017, 1:48 p.m. |
OK |
GNU C++14 |
TESTS |
109 |
514 |
129945600 |
|
3400 |
|
39083881 |
lxlxl |
F |
June 10, 2018, 5:31 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
529 |
417587200 |
|
3400 |
|
37423101 |
Troywar |
F |
April 18, 2018, 1:57 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
530 |
208998400 |
|
3400 |
|
37423017 |
Troywar |
F |
April 18, 2018, 1:49 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
530 |
208998400 |
|
3400 |
|
27558006 |
yutaka1999 |
F |
June 4, 2017, 7:40 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
530 |
232755200 |
|
3400 |
|
27919868 |
fedalex |
F |
June 20, 2017, 7:57 a.m. |
OK |
GNU C++14 |
TESTS |
109 |
545 |
232755200 |
|
3400 |
|
69605652 |
gongsuidashen |
F |
Jan. 27, 2020, 9:37 a.m. |
OK |
GNU C++17 |
TESTS |
109 |
326 |
149299200 |
|
3400 |
|
47460630 |
vjudge5 |
F |
Dec. 24, 2018, 2:53 p.m. |
OK |
GNU C++17 |
TESTS |
109 |
421 |
43622400 |
|
3400 |
|
47460328 |
616156 |
F |
Dec. 24, 2018, 2:44 p.m. |
OK |
GNU C++17 |
TESTS |
109 |
468 |
43622400 |
|
3400 |
|
47537562 |
G20202502 |
F |
Dec. 27, 2018, 3:54 a.m. |
OK |
GNU C++17 |
TESTS |
109 |
468 |
93798400 |
|
3400 |
|
47507766 |
vjudge1 |
F |
Dec. 26, 2018, 3:15 a.m. |
OK |
GNU C++17 |
TESTS |
109 |
514 |
86016000 |
|
3400 |
|
47507644 |
vjudge1 |
F |
Dec. 26, 2018, 3:07 a.m. |
OK |
GNU C++17 |
TESTS |
109 |
530 |
86016000 |
|
3400 |
|
54968530 |
hjk1030 |
F |
June 2, 2019, 7:32 a.m. |
OK |
GNU C++17 |
TESTS |
109 |
545 |
198553600 |
|
3400 |
|
68144408 |
emengdeath |
F |
Jan. 4, 2020, 2:59 a.m. |
OK |
GNU C++17 |
TESTS |
109 |
1465 |
27033600 |
|
3400 |
|
68152552 |
emengdeath |
F |
Jan. 4, 2020, 7:31 a.m. |
OK |
GNU C++17 |
TESTS |
109 |
1496 |
27033600 |
|
3400 |
|
27149426 |
tri |
F |
May 16, 2017, 3:49 a.m. |
OK |
Java 8 |
TESTS |
109 |
2417 |
528998400 |
|
3400 |
|
26881406 |
baxbaxa |
F |
May 5, 2017, 1:19 p.m. |
OK |
Java 8 |
TESTS |
109 |
2651 |
531046400 |
|
3400 |
|
26869834 |
Lewin |
F |
May 5, 2017, 1:06 a.m. |
OK |
Java 8 |
TESTS |
109 |
2713 |
531046400 |
|
3400 |
|
26869576 |
Lewin |
F |
May 5, 2017, 12:41 a.m. |
OK |
Java 8 |
TESTS |
109 |
2760 |
531148800 |
|
3400 |
remove filters
Back to search problems