Codeforces Round 227 (Div. 2)

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
387 Codeforces Round 227 (Div. 2) FINISHED False 7800 346084163 Jan. 30, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1034 ) D George and Interesting Graph PROGRAMMING graph matchings 2700

B"George loves graphs. Most of all, he loves interesting graphs. We will assume that a directed graph is interesting, if it meets the following criteria: However, not everything's that simple. George got a directed graph of n vertices and m arcs as a present. The graph didn't have any multiple arcs. As George loves interesting graphs, he wants to slightly alter the presented graph and transform it into an interesting one. In one alteration he can either remove an arbitrary existing arc from the graph or add an arbitrary arc to the graph. George wonders: what is the minimum number of changes that he needs to obtain an interesting graph from the graph he's got as a present? Help George and find the answer to the question. The first line contains two space-separated integers n and m (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000) -- the number of vertices and arcs in the presented graph. Each of the next m lines contains two space-separated integers ai, xe2 x80 x89bi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the descriptions of the graph's arcs. Pair (ai, xe2 x80 x89bi) means that the graph contains an arc from vertex number ai to vertex number bi. It is guaranteed that the presented graph doesn't contain multiple arcs. Assume that the grah vertices are numbered 1 through n. Print a single integer -- the answer to George's question. For more information about directed graphs, please visit: http://en.wikipedia.org/wiki/Directed_graph In the first sample the graph already is interesting, its center is vertex 3."...

Tutorials

Editorial Codeforces Round #227 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
5853694 fangbohui D Jan. 31, 2014, 3:54 a.m. OK FPC TESTS 50 46 307200 2700
5856278 Reventon1 D Jan. 31, 2014, 12:23 p.m. OK FPC TESTS 50 280 1126400 2700
8556708 ljz D Nov. 5, 2014, 10:38 a.m. OK FPC TESTS 50 561 307200 2700
28696196 Sanja D July 19, 2017, 12:28 p.m. OK FPC TESTS 50 577 1945600 2700
32068113 HermioneL D Nov. 5, 2017, 5:10 a.m. OK FPC TESTS 50 592 1126400 2700
28700645 NikNag D July 19, 2017, 3:53 p.m. OK FPC TESTS 50 655 2764800 2700
37253826 rainboy D April 12, 2018, 2:43 p.m. OK GNU C TESTS 50 46 4608000 2700
5850406 Tim_LinYd D Jan. 30, 2014, 5:38 p.m. OK GNU C TESTS 50 109 512000 2700
14034897 130705009 D Nov. 2, 2015, 10:56 p.m. OK GNU C++ TESTS 50 15 0 2700
5956407 rituranjna D March 7, 2014, 11:34 a.m. OK GNU C++ TESTS 50 15 204800 2700
5865278 d40a D Feb. 1, 2014, 8:41 p.m. OK GNU C++ TESTS 50 15 204800 2700
5862015 NoWoDeYo D Feb. 1, 2014, 10:22 a.m. OK GNU C++ TESTS 50 15 204800 2700
10667651 vjudge2 D April 12, 2015, 1:33 p.m. OK GNU C++ TESTS 50 15 1024000 2700
5909904 dhh1995 D Feb. 6, 2014, 9:57 a.m. OK GNU C++ TESTS 50 15 1024000 2700
28984965 vjudge3 D July 30, 2017, 7:26 a.m. OK GNU C++ TESTS 50 15 2048000 2700
6056970 Tariqul D March 17, 2014, 5:38 p.m. OK GNU C++ TESTS 50 15 2048000 2700
29184350 vjudge5 D Aug. 4, 2017, 5:26 a.m. OK GNU C++ TESTS 50 15 3584000 2700
5853428 Ruthles D Jan. 31, 2014, 2:55 a.m. OK GNU C++ TESTS 50 15 4096000 2700
6097595 Canoe_0 D March 21, 2014, 10:09 a.m. OK GNU C++0x TESTS 50 15 204800 2700
5911482 lockmihai D Feb. 6, 2014, 3:57 p.m. OK GNU C++0x TESTS 50 15 2048000 2700
8847759 thatsMyPlace D Nov. 25, 2014, 3:29 p.m. OK GNU C++0x TESTS 50 30 204800 2700
6578334 delta_4d D May 9, 2014, 2:44 p.m. OK GNU C++0x TESTS 50 30 204800 2700
8847807 thatsMyPlace D Nov. 25, 2014, 3:35 p.m. OK GNU C++0x TESTS 50 31 204800 2700
7494679 a0666 D Aug. 17, 2014, 5:33 p.m. OK GNU C++0x TESTS 50 31 204800 2700
6621860 stan D May 15, 2014, 3:23 p.m. OK GNU C++0x TESTS 50 31 1228800 2700
5855825 mruxim D Jan. 31, 2014, 11:09 a.m. OK GNU C++0x TESTS 50 31 1228800 2700
8825011 thatsMyPlace D Nov. 23, 2014, 2:29 p.m. OK GNU C++0x TESTS 50 46 204800 2700
8824869 thatsMyPlace D Nov. 23, 2014, 2:21 p.m. OK GNU C++0x TESTS 50 46 204800 2700
18751380 zarandy D June 27, 2016, 11:49 a.m. OK GNU C++11 TESTS 50 15 0 2700
15745447 SaDDaS D Feb. 2, 2016, 7:39 a.m. OK GNU C++11 TESTS 50 15 0 2700
25310768 shengdebao D March 7, 2017, 9:04 a.m. OK GNU C++11 TESTS 50 15 2252800 2700
25228098 Shayan D March 4, 2017, 9:44 p.m. OK GNU C++11 TESTS 50 15 3174400 2700
22424776 noxwell D Nov. 23, 2016, 2:04 p.m. OK GNU C++11 TESTS 50 30 0 2700
15623370 PandaConda D Jan. 28, 2016, 5:42 a.m. OK GNU C++11 TESTS 50 30 0 2700
18869827 Deemo D July 3, 2016, 3:56 p.m. OK GNU C++11 TESTS 50 30 307200 2700
11321946 cq_phqg D May 27, 2015, 3:25 p.m. OK GNU C++11 TESTS 50 30 1024000 2700
20159929 jaguar1996 D Aug. 25, 2016, 5:04 p.m. OK GNU C++11 TESTS 50 30 2150400 2700
35866399 McGinn D March 3, 2018, 2:05 a.m. OK GNU C++11 TESTS 50 30 2355200 2700
29479512 fengsuiyan D Aug. 15, 2017, 11:09 a.m. OK GNU C++14 TESTS 50 15 2150400 2700
36057327 tymo D March 7, 2018, 10:12 p.m. OK GNU C++14 TESTS 50 30 2048000 2700
33071315 Hoang_Cong D Dec. 10, 2017, 2:05 a.m. OK GNU C++14 TESTS 50 30 3481600 2700
44733121 myx12345 D Oct. 23, 2018, 11:36 a.m. OK GNU C++14 TESTS 50 31 0 2700
57990804 vjudge5 D July 30, 2019, 1:10 p.m. OK GNU C++14 TESTS 50 31 204800 2700
57838323 vjudge3 D July 27, 2019, 8:23 a.m. OK GNU C++14 TESTS 50 31 204800 2700
41593820 follower0523 D Aug. 14, 2018, 3:41 p.m. OK GNU C++14 TESTS 50 31 204800 2700
27791141 boook D June 15, 2017, 10:12 a.m. OK GNU C++14 TESTS 50 31 204800 2700
54058750 LODB---D D May 13, 2019, 9:58 a.m. OK GNU C++14 TESTS 50 31 409600 2700
38992415 vjudge5 D June 6, 2018, 11:02 a.m. OK GNU C++14 TESTS 50 31 409600 2700
58065787 Thecat D July 31, 2019, 8:53 a.m. OK GNU C++17 TESTS 50 31 204800 2700
53080795 ArshiaDadras D April 21, 2019, 6:21 a.m. OK GNU C++17 TESTS 50 31 204800 2700
53080655 ArshiaDadras D April 21, 2019, 6:16 a.m. OK GNU C++17 TESTS 50 31 204800 2700
44492922 vjudge3 D Oct. 18, 2018, 3:21 p.m. OK GNU C++17 TESTS 50 31 204800 2700
43466491 NullByte D Sept. 26, 2018, 7:02 p.m. OK GNU C++17 TESTS 50 31 204800 2700
58247377 vjudge5 D Aug. 4, 2019, 6:08 a.m. OK GNU C++17 TESTS 50 46 204800 2700
58123103 vjudge1 D Aug. 1, 2019, 11:35 a.m. OK GNU C++17 TESTS 50 46 204800 2700
58110081 vjudge4 D Aug. 1, 2019, 6:43 a.m. OK GNU C++17 TESTS 50 46 204800 2700
57969510 vjudge3 D July 30, 2019, 5:08 a.m. OK GNU C++17 TESTS 50 46 204800 2700
56703960 ruo D July 8, 2019, 10:23 a.m. OK GNU C++17 TESTS 50 46 204800 2700
9815677 Omar.Darwish D Feb. 13, 2015, 12:04 p.m. OK Java 6 TESTS 50 124 0 2700
8464705 islam-al-aarag D Oct. 29, 2014, 12:24 a.m. OK Java 6 TESTS 50 202 0 2700
5861230 hiukim D Feb. 1, 2014, 7:20 a.m. OK Java 6 TESTS 50 498 102400 2700
5857104 net12k44 D Jan. 31, 2014, 2:21 p.m. OK Java 7 TESTS 50 108 0 2700
9277214 sweiss D Dec. 26, 2014, 3:49 p.m. OK Java 7 TESTS 50 124 0 2700
9277241 sweiss D Dec. 26, 2014, 3:53 p.m. OK Java 7 TESTS 50 139 0 2700
5856601 IgorKoval D Jan. 31, 2014, 1:07 p.m. OK Java 7 TESTS 50 140 0 2700
5856588 IgorKoval D Jan. 31, 2014, 1:05 p.m. OK Java 7 TESTS 50 140 0 2700
5845123 uwi D Jan. 30, 2014, 4:15 p.m. OK Java 7 TESTS 50 140 0 2700
5845187 kraskevich D Jan. 30, 2014, 4:16 p.m. OK Java 7 TESTS 50 186 0 2700
5895039 White_Bear D Feb. 4, 2014, 12:36 p.m. OK Java 7 TESTS 50 187 102400 2700
5845810 qwerty787788 D Jan. 30, 2014, 4:23 p.m. OK Java 7 TESTS 50 187 102400 2700
5845452 FattyPenguin D Jan. 30, 2014, 4:19 p.m. OK Java 7 TESTS 50 248 0 2700
10183626 niyaznigmatul D March 6, 2015, 10:09 p.m. OK Java 8 TESTS 50 155 0 2700
22802342 donli D Dec. 8, 2016, 5:42 a.m. OK Java 8 TESTS 50 156 20582400 2700
22802230 donli D Dec. 8, 2016, 5:34 a.m. OK Java 8 TESTS 50 156 20582400 2700
34184543 Dukkha D Jan. 14, 2018, 8:54 p.m. OK Java 8 TESTS 50 218 20787200 2700
20625229 Dukkha D Sept. 14, 2016, 6:24 p.m. OK Java 8 TESTS 50 233 0 2700
34184519 Dukkha D Jan. 14, 2018, 8:52 p.m. OK Java 8 TESTS 50 265 20787200 2700
8839701 uskovm D Nov. 24, 2014, 7:05 p.m. OK Java 8 TESTS 50 404 2252800 2700
6586591 antofik D May 11, 2014, 10:49 a.m. OK MS C# TESTS 50 93 5222400 2700
9726663 azukun D Feb. 5, 2015, 11:56 a.m. OK MS C# TESTS 50 124 73113600 2700
5874072 koenxzheng D Feb. 3, 2014, 2:06 p.m. OK MS C++ TESTS 50 31 0 2700
8851248 Med-ved D Nov. 25, 2014, 10:41 p.m. OK MS C++ TESTS 50 31 102400 2700
7116922 grisha239 D July 16, 2014, 2:16 p.m. OK MS C++ TESTS 50 31 102400 2700
5862553 BlackStar D Feb. 1, 2014, 12:19 p.m. OK MS C++ TESTS 50 31 102400 2700
5854131 pavellevap D Jan. 31, 2014, 5:46 a.m. OK MS C++ TESTS 50 31 102400 2700
6158142 L_Ecry D March 27, 2014, 2:17 a.m. OK MS C++ TESTS 50 31 921600 2700
6158695 blueseen D March 27, 2014, 5:51 a.m. OK MS C++ TESTS 50 31 1331200 2700
6005117 Mosyagin D March 12, 2014, 6:45 p.m. OK MS C++ TESTS 50 46 0 2700
5874277 BIT_silence D Feb. 3, 2014, 2:37 p.m. OK MS C++ TESTS 50 46 0 2700
13719843 TempuX D Oct. 18, 2015, 9:56 p.m. OK MS C++ TESTS 50 46 102400 2700

remove filters

Back to search problems