Codeforces Round 261 (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
459 Codeforces Round 261 (Div. 2) FINISHED False 7200 323706599 Aug. 15, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5540 ) E Pashmak and Graph PROGRAMMING dp sortings 2100

B"Pashmak's homework is a problem about graphs. Although he always tries to do his homework completely, he can't solve this problem. As you know, he's really weak at graph theory; so try to help him in solving the problem. You are given a weighted directed graph with n vertices and m edges. You need to find a path (perhaps, non-simple) with maximum number of edges, such that the weights of the edges increase along the path. In other words, each edge of the path must have strictly greater weight than the previous edge in the path. Help Pashmak, print the number of edges in the required path. The first line contains two integers n, m (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89min(n xc2 xb7(n xe2 x80 x89- xe2 x80 x891), xe2 x80 x893 xc2 xb7105)). Then, m lines follows. The i-th line contains three space separated integers: ui, vi, wi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ui, xe2 x80 x89vi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89wi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) which indicates that there's a directed edge with weight wi from vertex ui to vertex vi. It's guaranteed that the graph doesn't contain self-loops and multiple edges. Print a single integer -- the answer to the problem. In the first sample the maximum trail can be any of this trails: . In the second sample the maximum trail is . In the third sample the maximum trail is ."...

Tutorials

Codeforces Round #261 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
46054924 luogu_bot5 E Nov. 22, 2018, 10:20 a.m. OK FPC TESTS 69 218 20377600 2100
46055015 vjudge1 E Nov. 22, 2018, 10:23 a.m. OK FPC TESTS 69 218 20377600 2100
41388267 vjudge5 E Aug. 9, 2018, 7:09 a.m. OK GNU C++ TESTS 69 78 6041600 2100
41396527 vjudge3 E Aug. 9, 2018, 11:27 a.m. OK GNU C++ TESTS 69 78 6348800 2100
40263962 Scut82 E July 13, 2018, 2:11 p.m. OK GNU C++ TESTS 69 109 10137600 2100
40113446 Scut82 E July 9, 2018, 1:09 p.m. OK GNU C++ TESTS 69 124 9625600 2100
34995323 vjudge2 E Feb. 7, 2018, 10:40 a.m. OK GNU C++ TESTS 69 140 9318400 2100
41388384 vjudge2 E Aug. 9, 2018, 7:12 a.m. OK GNU C++ TESTS 69 155 6041600 2100
34298562 zdj199583 E Jan. 19, 2018, 9:59 a.m. OK GNU C++ TESTS 69 155 8089600 2100
38090035 vjudge4 E May 10, 2018, 11:27 a.m. OK GNU C++ TESTS 69 155 10137600 2100
41388300 luogu_bot4 E Aug. 9, 2018, 7:10 a.m. OK GNU C++ TESTS 69 156 6348800 2100
38089837 vjudge3 E May 10, 2018, 11:18 a.m. OK GNU C++ TESTS 69 156 10137600 2100
58357501 rainboy E Aug. 5, 2019, 8:35 p.m. OK GNU C11 TESTS 69 187 6041600 2100
63190758 jikee1999 E Oct. 22, 2019, 5:10 p.m. OK GNU C++11 TESTS 69 61 12800000 2100
63191076 vjudge3 E Oct. 22, 2019, 5:14 p.m. OK GNU C++11 TESTS 69 61 12800000 2100
40988105 ReaLNero1 E July 30, 2018, 9:44 p.m. OK GNU C++11 TESTS 69 61 15462400 2100
44986635 luogu_bot5 E Oct. 28, 2018, 10:46 a.m. OK GNU C++11 TESTS 69 62 6041600 2100
44989053 luogu_bot5 E Oct. 28, 2018, 11:55 a.m. OK GNU C++11 TESTS 69 62 6041600 2100
54407855 zyt1253679098 E May 20, 2019, 7:39 a.m. OK GNU C++11 TESTS 69 62 8294400 2100
39918221 dxymaster2002 E July 3, 2018, 3:52 p.m. OK GNU C++11 TESTS 69 77 6041600 2100
69718804 luogu_bot1 E Jan. 29, 2020, 9:55 a.m. OK GNU C++11 TESTS 69 77 6041600 2100
43944750 luogu_bot4 E Oct. 7, 2018, 1:10 p.m. OK GNU C++11 TESTS 69 77 6246400 2100
43944758 luogu_bot1 E Oct. 7, 2018, 1:10 p.m. OK GNU C++11 TESTS 69 77 6246400 2100
44769792 Reventon E Oct. 24, 2018, 11:48 a.m. OK GNU C++14 TESTS 69 156 6041600 2100
46311179 T.V_N E Nov. 28, 2018, 1:16 p.m. OK GNU C++14 TESTS 69 186 8396800 2100
44929610 hazensocetri E Oct. 26, 2018, 11:11 p.m. OK GNU C++14 TESTS 69 186 9830400 2100
44836846 lanpang E Oct. 25, 2018, 11:16 a.m. OK GNU C++14 TESTS 69 186 20070400 2100
68013338 romi_sm E Dec. 31, 2019, 5:01 p.m. OK GNU C++14 TESTS 69 187 6041600 2100
63086455 vjudge5 E Oct. 21, 2019, 4:44 p.m. OK GNU C++14 TESTS 69 187 6041600 2100
53740773 strawberrry E May 4, 2019, 1:41 p.m. OK GNU C++14 TESTS 69 187 8396800 2100
66397036 ElangBondol E Dec. 6, 2019, 11:09 a.m. OK GNU C++14 TESTS 69 187 9830400 2100
56068986 tejasp919 E June 26, 2019, 9:25 a.m. OK GNU C++14 TESTS 69 187 9830400 2100
65300207 vjudge5 E Nov. 18, 2019, 12:58 p.m. OK GNU C++14 TESTS 69 202 6041600 2100
41577203 vjudge4 E Aug. 14, 2018, 5:52 a.m. OK GNU C++17 TESTS 69 93 12390400 2100
63190020 jikee1999 E Oct. 22, 2019, 5:02 p.m. OK GNU C++17 TESTS 69 171 12800000 2100
63107465 A_root_A E Oct. 22, 2019, 5:42 a.m. OK GNU C++17 TESTS 69 187 6041600 2100
47027798 WildWesam E Dec. 15, 2018, 8:01 a.m. OK GNU C++17 TESTS 69 187 14336000 2100
46274533 nthoang E Nov. 27, 2018, 10:41 a.m. OK GNU C++17 TESTS 69 202 6041600 2100
65299794 zhangwen123 E Nov. 18, 2019, 12:50 p.m. OK GNU C++17 TESTS 69 202 6041600 2100
60077901 huxiaotaostasy E Sept. 5, 2019, 1:06 p.m. OK GNU C++17 TESTS 69 202 6041600 2100
41677169 tang666 E Aug. 17, 2018, 8:41 a.m. OK GNU C++17 TESTS 69 202 6041600 2100
53709398 vjudge5 E May 3, 2019, 2:48 p.m. OK GNU C++17 TESTS 69 202 7270400 2100
61416800 ArshiaDadras E Sept. 28, 2019, 10:31 a.m. OK GNU C++17 TESTS 69 202 7270400 2100
64893042 its_aks_ulure E Nov. 14, 2019, 3:27 p.m. OK Java 11 TESTS 69 670 27648000 2100
58357535 Dukkha E Aug. 5, 2019, 8:36 p.m. OK Java 8 TESTS 69 280 6041600 2100
45994119 ViciousCoder E Nov. 20, 2018, 11:32 a.m. OK Java 8 TESTS 69 295 17920000 2100
47607048 xodiac E Dec. 28, 2018, 5:57 a.m. OK Java 8 TESTS 69 295 19558400 2100
55510545 caoash E June 12, 2019, 9:54 p.m. OK Java 8 TESTS 69 311 31232000 2100
53202193 jenish9599 E April 23, 2019, 6:35 p.m. OK Java 8 TESTS 69 311 39014400 2100
58829092 Akshita_Maheshwari E Aug. 14, 2019, 5:08 p.m. OK Java 8 TESTS 69 326 39116800 2100
45776415 prathmesh_01 E Nov. 15, 2018, 5:20 p.m. OK Java 8 TESTS 69 342 33792000 2100
61440278 saurabh0611 E Sept. 28, 2019, 6:25 p.m. OK Java 8 TESTS 69 342 38707200 2100
37849660 parth_15 E May 2, 2018, 9:24 p.m. OK Java 8 TESTS 69 343 49561600 2100
50215153 Verdusk E Feb. 20, 2019, 3:54 a.m. OK Java 8 TESTS 69 358 4300800 2100
64874715 melikano2000 E Nov. 14, 2019, 9:24 a.m. OK Mono C# TESTS 69 639 31846400 2100
45906207 vjudge5 E Nov. 18, 2018, 8:33 a.m. OK MS C++ TESTS 69 156 8704000 2100
45907654 vjudge5 E Nov. 18, 2018, 9:20 a.m. OK MS C++ TESTS 69 265 7577600 2100
55509859 antofik E June 12, 2019, 9:05 p.m. OK MS C++ 2017 TESTS 69 140 10854400 2100
59350002 yorky E Aug. 23, 2019, 11:24 a.m. OK MS C++ 2017 TESTS 69 702 11980800 2100
35861690 ______M______ E March 2, 2018, 10:09 p.m. OK PyPy 2 TESTS 69 482 81100800 2100
35863689 ______h______ E March 2, 2018, 10:52 p.m. OK PyPy 2 TESTS 69 483 81100800 2100
35863189 ______i______ E March 2, 2018, 10:41 p.m. OK PyPy 2 TESTS 69 483 81100800 2100
35873363 ______n______ E March 3, 2018, 7:29 a.m. OK PyPy 2 TESTS 69 483 81100800 2100
35873617 ______u______ E March 3, 2018, 7:34 a.m. OK PyPy 2 TESTS 69 483 81100800 2100
35872774 _____k_____ E March 3, 2018, 7:16 a.m. OK PyPy 2 TESTS 69 483 81100800 2100
35872741 _____i_____ E March 3, 2018, 7:16 a.m. OK PyPy 2 TESTS 69 483 81100800 2100
35863710 ______k______ E March 2, 2018, 10:52 p.m. OK PyPy 2 TESTS 69 483 81100800 2100
39946333 pavankatta E July 4, 2018, 7:38 a.m. OK PyPy 2 TESTS 69 998 37068800 2100

remove filters

Back to search problems