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"You are given a bipartite graph G xe2 x80 x89= xe2 x80 x89(U, xe2 x80 x89V, xe2 x80 x89E), U is the set of vertices of the first part, V is the set of vertices of the second part and E is the set of edges. There might be multiple edges. Let's call some subset of its edges k-covering iff the graph has each of its vertices incident to at least k edges. Minimal k-covering is such a k-covering that the size of the subset is minimal possible. Your task is to find minimal k-covering for each , where minDegree is the minimal degree of any vertex in graph G. The first line contains three integers n1, n2 and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n1, xe2 x80 x89n2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) -- the number of vertices in the first part, the number of vertices in the second part and the number of edges, respectively. The i-th of the next m lines contain two integers ui and vi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ui xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n1, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89vi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n2) -- the description of the i-th edge, ui is the index of the vertex in the first part and vi is the index of the vertex in the second part. For each print the subset of edges (minimal k-covering) in separate line. The first integer cntk of the k-th line is the number of edges in minimal k-covering of the graph. Then cntk integers follow -- original indices of the edges which belong to the minimal k-covering, these indices should be pairwise distinct. Edges are numbered 1 through m in order they are given in the input. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
37857956 |
OrangeLee |
F |
May 3, 2018, 9:28 a.m. |
OK |
GNU C++ |
TESTS |
33 |
124 |
14848000 |
|
2500 |
37857984 |
OrangeLee |
F |
May 3, 2018, 9:29 a.m. |
OK |
GNU C++ |
TESTS |
33 |
124 |
14950400 |
|
2500 |
41078396 |
soul_departed |
F |
Aug. 1, 2018, 10:04 a.m. |
OK |
GNU C++ |
TESTS |
33 |
342 |
75776000 |
|
2500 |
41105972 |
soul_departed |
F |
Aug. 2, 2018, 4:08 a.m. |
OK |
GNU C++ |
TESTS |
33 |
343 |
75878400 |
|
2500 |
38150783 |
vjudge3 |
F |
May 13, 2018, 2:18 a.m. |
OK |
GNU C++ |
TESTS |
33 |
373 |
143974400 |
|
2500 |
37793685 |
nansns |
F |
May 1, 2018, 9:27 a.m. |
OK |
GNU C++ |
TESTS |
33 |
374 |
15052800 |
|
2500 |
37922261 |
beginend |
F |
May 6, 2018, 7:39 a.m. |
OK |
GNU C++ |
TESTS |
33 |
374 |
19968000 |
|
2500 |
38106779 |
vjudge3 |
F |
May 11, 2018, 6:19 a.m. |
OK |
GNU C++ |
TESTS |
33 |
389 |
15052800 |
|
2500 |
37923908 |
tkysss |
F |
May 6, 2018, 8:46 a.m. |
OK |
GNU C++ |
TESTS |
33 |
405 |
16179200 |
|
2500 |
38709671 |
vjudge2 |
F |
May 29, 2018, 5:20 a.m. |
OK |
GNU C++ |
TESTS |
33 |
405 |
142540800 |
|
2500 |
37789598 |
Marco_L_T |
F |
May 1, 2018, 6:05 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
124 |
28262400 |
|
2500 |
40932276 |
ReaLNero1 |
F |
July 30, 2018, 1:41 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
139 |
24780800 |
|
2500 |
41814362 |
luogu_bot2 |
F |
Aug. 19, 2018, 5:43 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
155 |
307200 |
|
2500 |
41814293 |
fks20011206 |
F |
Aug. 19, 2018, 5:41 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
155 |
307200 |
|
2500 |
39492573 |
atatomir |
F |
June 21, 2018, 4:32 p.m. |
OK |
GNU C++11 |
TESTS |
33 |
155 |
9216000 |
|
2500 |
38698528 |
-skyline- |
F |
May 28, 2018, 3:39 p.m. |
OK |
GNU C++11 |
TESTS |
33 |
155 |
11468800 |
|
2500 |
47517847 |
Wechselhau |
F |
Dec. 26, 2018, 11:08 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
156 |
1433600 |
|
2500 |
39136169 |
yasugongshang |
F |
June 11, 2018, 4:22 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
202 |
97996800 |
|
2500 |
37874436 |
GuYueNa |
F |
May 4, 2018, 3:44 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
202 |
101580800 |
|
2500 |
57739878 |
py_ultron |
F |
July 25, 2019, 11:08 a.m. |
OK |
GNU C++11 |
TESTS |
33 |
280 |
16179200 |
|
2500 |
38060789 |
ekzhang |
F |
May 9, 2018, 4:53 a.m. |
OK |
GNU C++14 |
TESTS |
33 |
217 |
14950400 |
|
2500 |
52492934 |
Huyyt |
F |
April 8, 2019, 12:27 p.m. |
OK |
GNU C++14 |
TESTS |
33 |
248 |
64716800 |
|
2500 |
52676461 |
hank55663 |
F |
April 13, 2019, 9:51 a.m. |
OK |
GNU C++14 |
TESTS |
33 |
249 |
921600 |
|
2500 |
68468750 |
compiler_101 |
F |
Jan. 9, 2020, 10:50 p.m. |
OK |
GNU C++14 |
TESTS |
33 |
264 |
512000 |
|
2500 |
68148337 |
jonathansilver |
F |
Jan. 4, 2020, 5:44 a.m. |
OK |
GNU C++14 |
TESTS |
33 |
264 |
11878400 |
|
2500 |
37771852 |
Deemo |
F |
April 30, 2018, 4:22 p.m. |
OK |
GNU C++14 |
TESTS |
33 |
264 |
15155200 |
|
2500 |
66036878 |
yan-zp |
F |
Nov. 30, 2019, 12:06 p.m. |
OK |
GNU C++14 |
TESTS |
33 |
264 |
16179200 |
|
2500 |
68628045 |
Amirnasr |
F |
Jan. 12, 2020, 12:20 a.m. |
OK |
GNU C++14 |
TESTS |
33 |
264 |
111923200 |
|
2500 |
37904494 |
Anticol |
F |
May 5, 2018, 11:30 a.m. |
OK |
GNU C++14 |
TESTS |
33 |
264 |
143872000 |
|
2500 |
38467096 |
rashish2202 |
F |
May 20, 2018, 6:26 p.m. |
OK |
GNU C++14 |
TESTS |
33 |
264 |
216371200 |
|
2500 |
48437666 |
chinmay0906 |
F |
Jan. 15, 2019, 10:16 p.m. |
OK |
GNU C++17 |
TESTS |
33 |
233 |
819200 |
|
2500 |
37840765 |
Jakube |
F |
May 2, 2018, 1:01 p.m. |
OK |
GNU C++17 |
TESTS |
33 |
248 |
67993600 |
|
2500 |
42213328 |
crathva |
F |
Aug. 28, 2018, 3:38 p.m. |
OK |
GNU C++17 |
TESTS |
33 |
249 |
11673600 |
|
2500 |
56750313 |
Vax |
F |
July 9, 2019, 11:38 a.m. |
OK |
GNU C++17 |
TESTS |
33 |
264 |
8499200 |
|
2500 |
60825248 |
yuxizi |
F |
Sept. 19, 2019, 3:30 a.m. |
OK |
GNU C++17 |
TESTS |
33 |
264 |
11776000 |
|
2500 |
37891009 |
Noam527 |
F |
May 4, 2018, 8:04 p.m. |
OK |
GNU C++17 |
TESTS |
33 |
264 |
14848000 |
|
2500 |
37890958 |
Noam527 |
F |
May 4, 2018, 8 p.m. |
OK |
GNU C++17 |
TESTS |
33 |
264 |
14848000 |
|
2500 |
40312041 |
zhysora |
F |
July 14, 2018, 8:29 a.m. |
OK |
GNU C++17 |
TESTS |
33 |
264 |
16486400 |
|
2500 |
38083892 |
Zilong |
F |
May 10, 2018, 3:16 a.m. |
OK |
GNU C++17 |
TESTS |
33 |
265 |
14950400 |
|
2500 |
38067439 |
AlvinFei |
F |
May 9, 2018, 10:10 a.m. |
OK |
GNU C++17 |
TESTS |
33 |
265 |
14950400 |
|
2500 |
67929388 |
Dukkha |
F |
Dec. 29, 2019, 5:13 p.m. |
OK |
Java 11 |
TESTS |
33 |
483 |
19148800 |
|
2500 |
46036921 |
NgocNguyen |
F |
Nov. 21, 2018, 4:57 p.m. |
OK |
Java 8 |
TESTS |
33 |
327 |
17100800 |
|
2500 |
46036505 |
NgocNguyen |
F |
Nov. 21, 2018, 4:42 p.m. |
OK |
Java 8 |
TESTS |
33 |
358 |
17612800 |
|
2500 |
37774410 |
uwi |
F |
April 30, 2018, 4:36 p.m. |
OK |
Java 8 |
TESTS |
33 |
436 |
20787200 |
|
2500 |
38616145 |
7dan |
F |
May 25, 2018, 6:31 p.m. |
OK |
Java 8 |
TESTS |
33 |
514 |
141516800 |
|
2500 |
37821261 |
alexrcoleman |
F |
May 1, 2018, 5:09 p.m. |
OK |
Java 8 |
TESTS |
33 |
670 |
21299200 |
|
2500 |
38145114 |
Ahmad |
F |
May 12, 2018, 5:41 p.m. |
OK |
Java 8 |
TESTS |
33 |
919 |
87040000 |
|
2500 |
38387352 |
OMGTallMonster |
F |
May 18, 2018, 3:09 a.m. |
OK |
Java 8 |
TESTS |
33 |
951 |
13721600 |
|
2500 |
38012457 |
dalt |
F |
May 8, 2018, 5:55 a.m. |
OK |
Java 8 |
TESTS |
33 |
951 |
20889600 |
|
2500 |
38010777 |
dalt |
F |
May 8, 2018, 3:44 a.m. |
OK |
Java 8 |
TESTS |
33 |
1060 |
20889600 |
|
2500 |
56185601 |
vjudge5 |
F |
June 28, 2019, 4:30 a.m. |
OK |
MS C++ |
TESTS |
33 |
358 |
16486400 |
|
2500 |
remove filters
Back to search problems