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.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
382
|
Codeforces Round 224 (Div. 2) |
FINISHED |
False |
7200 |
347725797 |
Jan. 17, 2014, 3:30 p.m. |
Problems
B"Ksenia has her winter exams. Today she is learning combinatorics. Here's one of the problems she needs to learn to solve. How many distinct trees are there consisting of n vertices, each with the following properties: Two trees are considered distinct if there are such two vertices u and v, that in one tree they are connected by an edge and in the other tree they are not. Help Ksenia solve the problem for the given n and k. As the answer to the problem can be very huge you should output it modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). The first line contains two integers n, xe2 x80 x89k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950). Print a single integer -- the answer to the problem modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). If you aren't familiar with matchings, please, read the following link: http://en.wikipedia.org/wiki/Matching_(graph_theory)."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
5722433 |
Gassa |
E |
Jan. 17, 2014, 5:22 p.m. |
OK |
D |
TESTS |
66 |
46 |
102400 |
|
2600 |
5726419 |
Gassa |
E |
Jan. 17, 2014, 9:37 p.m. |
OK |
D |
TESTS |
66 |
62 |
102400 |
|
2600 |
5726511 |
Gassa |
E |
Jan. 17, 2014, 9:56 p.m. |
OK |
D |
TESTS |
66 |
77 |
102400 |
|
2600 |
5726496 |
Gassa |
E |
Jan. 17, 2014, 9:53 p.m. |
OK |
D |
TESTS |
66 |
77 |
102400 |
|
2600 |
5726467 |
Gassa |
E |
Jan. 17, 2014, 9:47 p.m. |
OK |
D |
TESTS |
66 |
77 |
102400 |
|
2600 |
15460414 |
lijiayao |
E |
Jan. 21, 2016, 12:25 a.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
0 |
|
2600 |
15452845 |
yashen |
E |
Jan. 20, 2016, 12:16 p.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
0 |
|
2600 |
5727935 |
Suzuka |
E |
Jan. 18, 2014, 3:43 a.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
0 |
|
2600 |
15461769 |
potouiuiiiu |
E |
Jan. 21, 2016, 3:07 a.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
102400 |
|
2600 |
15461426 |
jokerbalabala |
E |
Jan. 21, 2016, 2:26 a.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
102400 |
|
2600 |
15460708 |
potouiuiiiu |
E |
Jan. 21, 2016, 1:01 a.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
102400 |
|
2600 |
15460681 |
Yaer |
E |
Jan. 21, 2016, 12:58 a.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
102400 |
|
2600 |
15427064 |
mmsqweasd |
E |
Jan. 18, 2016, 12:47 p.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
102400 |
|
2600 |
9204861 |
AlexJH |
E |
Dec. 20, 2014, 9:42 a.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
102400 |
|
2600 |
5778273 |
ACMonster |
E |
Jan. 23, 2014, 3:44 p.m. |
OK |
GNU C++ |
TESTS |
66 |
15 |
307200 |
|
2600 |
5873627 |
wakaka |
E |
Feb. 3, 2014, 12:45 p.m. |
OK |
GNU C++0x |
TESTS |
66 |
31 |
0 |
|
2600 |
5721802 |
Rubanenko107 |
E |
Jan. 17, 2014, 5:16 p.m. |
OK |
GNU C++0x |
TESTS |
66 |
46 |
0 |
|
2600 |
5724108 |
hex539 |
E |
Jan. 17, 2014, 6:06 p.m. |
OK |
GNU C++0x |
TESTS |
66 |
46 |
102400 |
|
2600 |
7667985 |
Xellos |
E |
Sept. 2, 2014, 1:51 p.m. |
OK |
GNU C++0x |
TESTS |
66 |
46 |
204800 |
|
2600 |
5743363 |
dasko1 |
E |
Jan. 20, 2014, 12:57 a.m. |
OK |
GNU C++0x |
TESTS |
66 |
78 |
0 |
|
2600 |
7446066 |
whn6325689 |
E |
Aug. 14, 2014, 1:54 p.m. |
OK |
GNU C++0x |
TESTS |
66 |
93 |
102400 |
|
2600 |
7444392 |
whn6325689 |
E |
Aug. 14, 2014, 9:08 a.m. |
OK |
GNU C++0x |
TESTS |
66 |
93 |
204800 |
|
2600 |
5728532 |
sping128 |
E |
Jan. 18, 2014, 5:31 a.m. |
OK |
GNU C++0x |
TESTS |
66 |
109 |
102400 |
|
2600 |
5714117 |
mruxim |
E |
Jan. 17, 2014, 3:58 p.m. |
OK |
GNU C++0x |
TESTS |
66 |
140 |
0 |
|
2600 |
9355006 |
aliasadiiii |
E |
Jan. 3, 2015, 6:05 p.m. |
OK |
GNU C++0x |
TESTS |
66 |
155 |
102400 |
|
2600 |
16288448 |
joisino |
E |
Feb. 23, 2016, 7:58 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
15 |
102400 |
|
2600 |
15461745 |
function2 |
E |
Jan. 21, 2016, 3:04 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
15 |
102400 |
|
2600 |
36030871 |
vjudge5 |
E |
March 7, 2018, 1:36 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
15 |
2150400 |
|
2600 |
33396352 |
wfj_2048 |
E |
Dec. 19, 2017, 3:38 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
15 |
2150400 |
|
2600 |
33396313 |
wfj_2048 |
E |
Dec. 19, 2017, 3:34 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
15 |
2150400 |
|
2600 |
18003263 |
r_clover |
E |
May 20, 2016, 10:46 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
15 |
2252800 |
|
2600 |
20499549 |
lych_cys |
E |
Sept. 10, 2016, 2:50 p.m. |
OK |
GNU C++11 |
TESTS |
66 |
30 |
0 |
|
2600 |
64614669 |
ddytxdy |
E |
Nov. 10, 2019, 4:04 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
31 |
0 |
|
2600 |
64614253 |
Jackpei |
E |
Nov. 10, 2019, 3:47 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
31 |
0 |
|
2600 |
64614220 |
Jackpei |
E |
Nov. 10, 2019, 3:46 a.m. |
OK |
GNU C++11 |
TESTS |
66 |
31 |
0 |
|
2600 |
32950640 |
Flash-boy |
E |
Dec. 5, 2017, 2:17 p.m. |
OK |
GNU C++14 |
TESTS |
66 |
15 |
2048000 |
|
2600 |
33975307 |
Flash-boy |
E |
Jan. 7, 2018, 2:43 a.m. |
OK |
GNU C++14 |
TESTS |
66 |
30 |
1945600 |
|
2600 |
67958072 |
mota_haathi |
E |
Dec. 30, 2019, 10:27 a.m. |
OK |
GNU C++14 |
TESTS |
66 |
31 |
0 |
|
2600 |
56848965 |
cloudsky01 |
E |
July 11, 2019, 2:49 p.m. |
OK |
GNU C++14 |
TESTS |
66 |
31 |
0 |
|
2600 |
30957808 |
sz1231 |
E |
Oct. 3, 2017, 4:36 a.m. |
OK |
GNU C++14 |
TESTS |
66 |
31 |
204800 |
|
2600 |
38073084 |
MAMBA |
E |
May 9, 2018, 1:39 p.m. |
OK |
GNU C++14 |
TESTS |
66 |
31 |
3379200 |
|
2600 |
37794960 |
orbitingflea |
E |
May 1, 2018, 10:18 a.m. |
OK |
GNU C++14 |
TESTS |
66 |
31 |
3379200 |
|
2600 |
39601827 |
Powerslave |
E |
June 24, 2018, 12:24 p.m. |
OK |
GNU C++14 |
TESTS |
66 |
46 |
0 |
|
2600 |
38379611 |
N3SL |
E |
May 17, 2018, 6:54 p.m. |
OK |
GNU C++14 |
TESTS |
66 |
46 |
307200 |
|
2600 |
63633965 |
idxcalcal |
E |
Oct. 28, 2019, 7:28 a.m. |
OK |
GNU C++14 |
TESTS |
66 |
46 |
512000 |
|
2600 |
62925465 |
hjk1030 |
E |
Oct. 19, 2019, 11:12 a.m. |
OK |
GNU C++17 |
TESTS |
66 |
31 |
0 |
|
2600 |
61526429 |
kefaa2 |
E |
Sept. 29, 2019, 10:56 p.m. |
OK |
GNU C++17 |
TESTS |
66 |
31 |
0 |
|
2600 |
40236842 |
dream_maker |
E |
July 12, 2018, 3:26 p.m. |
OK |
GNU C++17 |
TESTS |
66 |
31 |
102400 |
|
2600 |
50318371 |
Dance_Of_Faith |
E |
Feb. 22, 2019, 1:19 p.m. |
OK |
GNU C++17 |
TESTS |
66 |
31 |
204800 |
|
2600 |
56604014 |
ruo |
E |
July 6, 2019, 3:05 a.m. |
OK |
GNU C++17 |
TESTS |
66 |
31 |
307200 |
|
2600 |
49687829 |
Hacheylight |
E |
Feb. 10, 2019, 8:48 a.m. |
OK |
GNU C++17 |
TESTS |
66 |
31 |
307200 |
|
2600 |
68141945 |
saketh |
E |
Jan. 3, 2020, 11:37 p.m. |
OK |
GNU C++17 |
TESTS |
66 |
61 |
0 |
|
2600 |
56503769 |
AliShahali1382 |
E |
July 4, 2019, 7:31 a.m. |
OK |
GNU C++17 |
TESTS |
66 |
61 |
102400 |
|
2600 |
67870814 |
AM. |
E |
Dec. 29, 2019, 11:23 a.m. |
OK |
GNU C++17 |
TESTS |
66 |
62 |
102400 |
|
2600 |
68141231 |
xiaowuc1 |
E |
Jan. 3, 2020, 10:44 p.m. |
OK |
GNU C++17 |
TESTS |
66 |
78 |
1126400 |
|
2600 |
8378059 |
islam-al-aarag |
E |
Oct. 24, 2014, 1:46 p.m. |
OK |
Java 6 |
TESTS |
66 |
202 |
0 |
|
2600 |
5719506 |
qwerty787788 |
E |
Jan. 17, 2014, 4:51 p.m. |
OK |
Java 7 |
TESTS |
66 |
78 |
0 |
|
2600 |
5723314 |
VArtem |
E |
Jan. 17, 2014, 5:29 p.m. |
OK |
Java 7 |
TESTS |
66 |
78 |
307200 |
|
2600 |
5723586 |
FattyPenguin |
E |
Jan. 17, 2014, 5:56 p.m. |
OK |
Java 7 |
TESTS |
66 |
124 |
102400 |
|
2600 |
5822153 |
IgorKoval |
E |
Jan. 27, 2014, 10:14 p.m. |
OK |
Java 7 |
TESTS |
66 |
140 |
0 |
|
2600 |
5723599 |
m.radwan |
E |
Jan. 17, 2014, 5:56 p.m. |
OK |
Java 7 |
TESTS |
66 |
218 |
0 |
|
2600 |
10182134 |
Pimpom |
E |
March 6, 2015, 7:19 p.m. |
OK |
Java 8 |
TESTS |
66 |
295 |
0 |
|
2600 |
5767966 |
hehaodele |
E |
Jan. 22, 2014, 3:29 a.m. |
OK |
MS C++ |
TESTS |
66 |
30 |
204800 |
|
2600 |
5951144 |
blueseen |
E |
March 6, 2014, 1:15 p.m. |
OK |
MS C++ |
TESTS |
66 |
31 |
204800 |
|
2600 |
5745880 |
Nakochi |
E |
Jan. 20, 2014, 11:31 a.m. |
OK |
MS C++ |
TESTS |
66 |
46 |
0 |
|
2600 |
5745865 |
YQCMMD |
E |
Jan. 20, 2014, 11:27 a.m. |
OK |
MS C++ |
TESTS |
66 |
46 |
0 |
|
2600 |
11114440 |
polequoll |
E |
May 16, 2015, 7:44 a.m. |
OK |
MS C++ |
TESTS |
66 |
171 |
204800 |
|
2600 |
6562159 |
M.Mahdi |
E |
May 6, 2014, 12:27 p.m. |
OK |
MS C++ |
TESTS |
66 |
187 |
102400 |
|
2600 |
5735226 |
tsfn |
E |
Jan. 18, 2014, 5:19 p.m. |
OK |
Ruby |
TESTS |
66 |
795 |
102400 |
|
2600 |
remove filters
Back to search problems