Codeforces Round 340 (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
617 Codeforces Round 340 (Div. 2) FINISHED False 7200 284048704 Jan. 23, 2016, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4241 ) D Polyline PROGRAMMING constructive algorithms implementation 1700

B'There are three points marked on the coordinate plane. The goal is to make a simple polyline, without self-intersections and self-touches, such that it passes through all these points. Also, the polyline must consist of only segments parallel to the coordinate axes. You are to find the minimum number of segments this polyline may consist of. Each of the three lines of the input contains two integers. The i-th line contains integers xi and yi ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi, xe2 x80 x89yi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the coordinates of the i-th point. It is guaranteed that all points are distinct. Print a single number -- the minimum possible number of segments of the polyline. The variant of the polyline in the first sample: The variant of the polyline in the second sample: The variant of the polyline in the third sample: '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56183474 gaudar D June 28, 2019, 2:34 a.m. OK Clang++17 Diagnostics TESTS 54 46 0 1700
56183562 gaudar D June 28, 2019, 2:40 a.m. OK Clang++17 Diagnostics TESTS 54 46 0 1700
45477123 vjudge2 D Nov. 9, 2018, 12:59 p.m. OK Clang++17 Diagnostics TESTS 54 46 307200 1700
48896284 binarmo D Jan. 24, 2019, 4:02 p.m. OK FPC TESTS 54 31 0 1700
47846865 NewbieMisis D Jan. 2, 2019, 3:12 p.m. OK FPC TESTS 54 31 102400 1700
55857095 chaorenhaha D June 21, 2019, 7:33 a.m. OK FPC TESTS 54 46 0 1700
35669943 vjudge4 D Feb. 25, 2018, 6:31 a.m. OK GNU C++ TESTS 54 15 1843200 1700
35948977 BL7A. D March 4, 2018, 7:51 p.m. OK GNU C++ TESTS 54 15 2048000 1700
35672908 vjudge5 D Feb. 25, 2018, 8:41 a.m. OK GNU C++ TESTS 54 15 2048000 1700
35669205 vjudge1 D Feb. 25, 2018, 5:54 a.m. OK GNU C++ TESTS 54 15 2048000 1700
35669098 vjudge5 D Feb. 25, 2018, 5:49 a.m. OK GNU C++ TESTS 54 15 2048000 1700
35668047 vjudge1 D Feb. 25, 2018, 4:45 a.m. OK GNU C++ TESTS 54 15 2048000 1700
35612788 Paniago D Feb. 24, 2018, 1:23 a.m. OK GNU C++ TESTS 54 15 2048000 1700
35668416 vjudge4 D Feb. 25, 2018, 5:08 a.m. OK GNU C++ TESTS 54 30 2048000 1700
41669703 vjudge3 D Aug. 17, 2018, 3:46 a.m. OK GNU C++ TESTS 54 31 0 1700
40732189 Z1154990071 D July 25, 2018, 8:08 a.m. OK GNU C++ TESTS 54 31 0 1700
56987235 rainboy D July 13, 2019, 4:21 p.m. OK GNU C11 TESTS 54 31 0 1700
53717511 about D May 3, 2019, 7:49 p.m. OK GNU C11 TESTS 54 31 14438400 1700
35810157 JustAnotherUser D March 1, 2018, 11:42 a.m. OK GNU C++11 TESTS 54 15 2048000 1700
35793904 aloomya D Feb. 28, 2018, 6:42 p.m. OK GNU C++11 TESTS 54 15 2048000 1700
35669191 gfws D Feb. 25, 2018, 5:53 a.m. OK GNU C++11 TESTS 54 15 2048000 1700
35443215 muht D Feb. 18, 2018, 10:39 a.m. OK GNU C++11 TESTS 54 15 2048000 1700
34981124 Boxer D Feb. 6, 2018, 7:31 p.m. OK GNU C++11 TESTS 54 15 2048000 1700
36207048 curly_braces D March 11, 2018, 5:38 p.m. OK GNU C++11 TESTS 54 15 2048000 1700
36296307 doncjc D March 15, 2018, 10:54 a.m. OK GNU C++11 TESTS 54 15 2048000 1700
52791200 DovydasVad D April 15, 2019, 5:31 p.m. OK GNU C++11 TESTS 54 30 0 1700
41576506 fadi57 D Aug. 14, 2018, 5:17 a.m. OK GNU C++11 TESTS 54 30 0 1700
37143040 DeaphetS D April 10, 2018, 11:50 a.m. OK GNU C++11 TESTS 54 30 3481600 1700
39086524 dpkun D June 10, 2018, 8:01 a.m. OK GNU C++14 TESTS 54 15 0 1700
35807572 Lucifer_07 D March 1, 2018, 9:47 a.m. OK GNU C++14 TESTS 54 15 1945600 1700
35766152 nimom D Feb. 27, 2018, 2:47 p.m. OK GNU C++14 TESTS 54 15 1945600 1700
36270185 Bilguunzen D March 14, 2018, 9:42 a.m. OK GNU C++14 TESTS 54 15 1945600 1700
36310639 thebes D March 15, 2018, 7:05 p.m. OK GNU C++14 TESTS 54 15 1945600 1700
35754951 zuzhiang D Feb. 27, 2018, 8:01 a.m. OK GNU C++14 TESTS 54 15 2048000 1700
35977928 philologist D March 5, 2018, 10:19 p.m. OK GNU C++14 TESTS 54 15 2048000 1700
35958563 scottish_wanna_fly D March 5, 2018, 7:47 a.m. OK GNU C++14 TESTS 54 15 2048000 1700
36591780 r17v1 D March 24, 2018, 4:47 p.m. OK GNU C++14 TESTS 54 15 3379200 1700
38916067 amangupta87 D June 3, 2018, 9:13 a.m. OK GNU C++14 TESTS 54 15 3379200 1700
57911840 vjudge1 D July 28, 2019, 8:49 p.m. OK GNU C++17 TESTS 54 30 0 1700
57140741 Mr.Robot_28 D July 16, 2019, 10:56 a.m. OK GNU C++17 TESTS 54 30 0 1700
53426808 AhmedEzzatG D April 27, 2019, 2:03 p.m. OK GNU C++17 TESTS 54 30 0 1700
52466243 dimazilla123 D April 7, 2019, 3:50 p.m. OK GNU C++17 TESTS 54 30 0 1700
51300320 vjudge5 D March 14, 2019, 2:08 p.m. OK GNU C++17 TESTS 54 30 0 1700
46686331 dmkozyrev D Dec. 6, 2018, 2:11 p.m. OK GNU C++17 TESTS 54 30 0 1700
43688047 Rakhman D Oct. 2, 2018, 1:10 p.m. OK GNU C++17 TESTS 54 30 0 1700
41206203 vjudge4 D Aug. 4, 2018, 7:58 a.m. OK GNU C++17 TESTS 54 30 0 1700
67512633 AhooraBozorgManesh D Dec. 24, 2019, 9:44 a.m. OK GNU C++17 TESTS 54 30 0 1700
67939734 Yakudza D Dec. 29, 2019, 11:12 p.m. OK GNU C++17 TESTS 54 30 0 1700
56551688 mennafadali D July 5, 2019, 10:05 a.m. OK Java 8 TESTS 54 109 0 1700
45453430 StayAwayFromBitches D Nov. 8, 2018, 5:27 p.m. OK Java 8 TESTS 54 109 0 1700
66572908 mTvTm D Dec. 10, 2019, 5:38 a.m. OK Java 8 TESTS 54 124 0 1700
56397979 Ahmed.Shawky D July 1, 2019, 3:29 p.m. OK Java 8 TESTS 54 124 0 1700
37308860 KulikAlex D April 14, 2018, 5:45 a.m. OK Java 8 TESTS 54 124 20684800 1700
56987236 Dukkha D July 13, 2019, 4:21 p.m. OK Java 8 TESTS 54 155 0 1700
36520387 amitgupta.amitg847 D March 23, 2018, 4:48 a.m. OK Java 8 TESTS 54 155 20992000 1700
36430817 NotNight D March 20, 2018, 11:18 a.m. OK Java 8 TESTS 54 155 20992000 1700
36430834 NotNight D March 20, 2018, 11:19 a.m. OK Java 8 TESTS 54 170 21094400 1700
42112791 ypa D Aug. 26, 2018, 7:24 a.m. OK Java 8 TESTS 54 171 0 1700
41148267 Grigor01 D Aug. 3, 2018, 7:36 a.m. OK MS C++ TESTS 54 31 409600 1700
36730915 samarjamjom D March 29, 2018, 6:59 p.m. OK MS C++ TESTS 54 31 3788800 1700
65262257 areo D Nov. 17, 2019, 3:27 p.m. OK MS C++ 2017 TESTS 54 31 307200 1700
48891515 BB2211 D Jan. 24, 2019, 2:13 p.m. OK PyPy 3 TESTS 54 140 0 1700
57932323 jpSwing D July 29, 2019, 9:11 a.m. OK PyPy 3 TESTS 54 156 0 1700
35895922 ______u______ D March 3, 2018, 4:57 p.m. OK Python 2 TESTS 54 61 4608000 1700
35888003 ______h______ D March 3, 2018, 2:14 p.m. OK Python 2 TESTS 54 61 4608000 1700
35887561 ______k______ D March 3, 2018, 2:06 p.m. OK Python 2 TESTS 54 61 4608000 1700
35886618 ______i______ D March 3, 2018, 1:50 p.m. OK Python 2 TESTS 54 61 4608000 1700
35884719 ______M______ D March 3, 2018, 1:15 p.m. OK Python 2 TESTS 54 61 4608000 1700
36147207 petiteteaparty D March 10, 2018, 10:39 a.m. OK Python 3 TESTS 54 62 5632000 1700
40829968 kl738 D July 27, 2018, 5:19 a.m. OK Python 3 TESTS 54 124 0 1700
69288318 tushartyagi8750 D Jan. 22, 2020, 9:09 a.m. OK Python 3 TESTS 54 124 307200 1700

remove filters

Back to search problems