Educational Codeforces Round 1

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
598 Educational Codeforces Round 1 FINISHED False 7200 290185204 Nov. 13, 2015, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 386 ) F Cut Length PROGRAMMING geometry 2900

B"Given simple (without self-intersections) n-gon. It is not necessary convex. Also you are given m lines. For each line find the length of common part of the line and the n-gon. The boundary of n-gon belongs to polygon. It is possible that n-gon contains 180-degree angles. The first line contains integers n and m (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000;1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). The following n lines contain coordinates of polygon vertices (in clockwise or counterclockwise direction). All vertices are distinct. The following m lines contain line descriptions. Each of them contains two distict points of a line by their coordinates. All given in the input coordinates are real numbers, given with at most two digits after decimal point. They do not exceed 105 by absolute values. Print m lines, the i-th line should contain the length of common part of the given n-gon and the i-th line. The answer will be considered correct if the absolute or relative error doesn't exceed 10 xe2 x80 x89- xe2 x80 x896."...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
67613151 Ricky_pon F Dec. 25, 2019, 4:09 p.m. OK Clang++17 Diagnostics TESTS 38 155 10444800 2900
21954126 orailly F Nov. 1, 2016, 1:39 a.m. OK GNU C TESTS 38 31 102400 2900
19519709 arts F July 30, 2016, 2:46 p.m. OK GNU C TESTS 38 46 102400 2900
19519624 arts F July 30, 2016, 2:42 p.m. OK GNU C TESTS 38 46 102400 2900
19468424 arts F July 28, 2016, 9:09 p.m. OK GNU C TESTS 38 46 102400 2900
29633306 dhuacm6 F Aug. 21, 2017, 2:24 a.m. OK GNU C++ TESTS 38 15 0 2900
27721744 vjudge3 F June 11, 2017, 1:36 p.m. OK GNU C++ TESTS 38 15 0 2900
27721153 vjudge2 F June 11, 2017, 12:51 p.m. OK GNU C++ TESTS 38 15 0 2900
27716469 vjudge5 F June 11, 2017, 7:09 a.m. OK GNU C++ TESTS 38 15 0 2900
27708807 nodgd F June 10, 2017, 3:32 p.m. OK GNU C++ TESTS 38 15 0 2900
27721616 vjudge5 F June 11, 2017, 1:25 p.m. OK GNU C++ TESTS 38 15 102400 2900
27720396 vjudge2 F June 11, 2017, 11:56 a.m. OK GNU C++ TESTS 38 15 102400 2900
27725262 vjudge3 F June 11, 2017, 5:57 p.m. OK GNU C++ TESTS 38 15 819200 2900
28641178 dhuacm7 F July 17, 2017, 1:40 p.m. OK GNU C++ TESTS 38 15 2150400 2900
28641129 dhuacm1 F July 17, 2017, 1:38 p.m. OK GNU C++ TESTS 38 15 2150400 2900
21954102 orailly F Nov. 1, 2016, 1:37 a.m. OK GNU C11 TESTS 38 30 102400 2900
21954162 orailly F Nov. 1, 2016, 1:42 a.m. OK GNU C++11 TESTS 38 15 0 2900
19434312 zjhl2 F July 27, 2016, 6:03 a.m. OK GNU C++11 TESTS 38 15 0 2900
27721255 vjudge5 F June 11, 2017, 12:59 p.m. OK GNU C++11 TESTS 38 15 0 2900
27713845 vjudge1 F June 11, 2017, 2:48 a.m. OK GNU C++11 TESTS 38 15 102400 2900
28582829 tckwok0 F July 15, 2017, 10:17 p.m. OK GNU C++11 TESTS 38 15 1945600 2900
28636764 Osmanthus F July 17, 2017, 10:43 a.m. OK GNU C++11 TESTS 38 15 2150400 2900
27997125 spawn95th F June 24, 2017, 4:40 a.m. OK GNU C++11 TESTS 38 15 2150400 2900
34001930 r3.14 F Jan. 8, 2018, 11:12 a.m. OK GNU C++11 TESTS 38 15 2150400 2900
28082694 PhantomXX F June 27, 2017, 2:56 p.m. OK GNU C++11 TESTS 38 15 3686400 2900
27721288 vjudge2 F June 11, 2017, 1:02 p.m. OK GNU C++11 TESTS 38 30 0 2900
22517208 Al.Cash F Nov. 26, 2016, 9:05 p.m. OK GNU C++14 TESTS 38 15 0 2900
27721297 vjudge3 F June 11, 2017, 1:02 p.m. OK GNU C++14 TESTS 38 15 102400 2900
27721140 zhysora F June 11, 2017, 12:50 p.m. OK GNU C++14 TESTS 38 15 102400 2900
27721231 vjudge5 F June 11, 2017, 12:57 p.m. OK GNU C++14 TESTS 38 15 102400 2900
30772688 zjhl2 F Sept. 27, 2017, 9:25 a.m. OK GNU C++14 TESTS 38 15 102400 2900
27698927 vjudge3 F June 10, 2017, 2:38 a.m. OK GNU C++14 TESTS 38 15 102400 2900
27720754 zlc1114 F June 11, 2017, 12:22 p.m. OK GNU C++14 TESTS 38 15 102400 2900
27720823 zlc1114 F June 11, 2017, 12:27 p.m. OK GNU C++14 TESTS 38 15 102400 2900
23526462 Al.Cash F Jan. 4, 2017, 1:37 a.m. OK GNU C++14 TESTS 38 15 1945600 2900
30767186 zjhl2 F Sept. 27, 2017, 4:06 a.m. OK GNU C++14 TESTS 38 30 0 2900
67951154 ruo F Dec. 30, 2019, 7:43 a.m. OK GNU C++17 TESTS 38 30 102400 2900
65295214 TillEnd F Nov. 18, 2019, 11:12 a.m. OK GNU C++17 TESTS 38 31 0 2900
57824240 Benq F July 27, 2019, 1:58 a.m. OK GNU C++17 TESTS 38 31 102400 2900
41286829 Jmokut F Aug. 6, 2018, 8:50 p.m. OK GNU C++17 TESTS 38 31 102400 2900
56713370 YarikBochokPotik F July 8, 2019, 1:34 p.m. OK GNU C++17 TESTS 38 31 102400 2900
42772103 Trote_w F Sept. 11, 2018, 3:57 p.m. OK GNU C++17 TESTS 38 31 204800 2900
49221613 ACraider F Jan. 30, 2019, 7:29 p.m. OK GNU C++17 TESTS 38 31 204800 2900
60182412 Anachor F Sept. 6, 2019, 4:55 p.m. OK GNU C++17 TESTS 38 31 204800 2900
66982655 asd111 F Dec. 15, 2019, 4:58 p.m. OK GNU C++17 TESTS 38 31 307200 2900
45285269 MightyMax F Nov. 4, 2018, 4:13 p.m. OK GNU C++17 TESTS 38 31 512000 2900
19110344 pavel.rosputko F July 14, 2016, 2:56 p.m. OK Haskell TESTS 38 218 8499200 2900
19111163 pavel.rosputko F July 14, 2016, 3:45 p.m. OK Haskell TESTS 38 218 8499200 2900
19111117 pavel.rosputko F July 14, 2016, 3:42 p.m. OK Haskell TESTS 38 218 8499200 2900
19111071 pavel.rosputko F July 14, 2016, 3:40 p.m. OK Haskell TESTS 38 218 8499200 2900
19110986 pavel.rosputko F July 14, 2016, 3:35 p.m. OK Haskell TESTS 38 218 8499200 2900
19111051 pavel.rosputko F July 14, 2016, 3:39 p.m. OK Haskell TESTS 38 233 8499200 2900
19110291 pavel.rosputko F July 14, 2016, 2:54 p.m. OK Haskell TESTS 38 234 8499200 2900
27359025 fetetriste F May 26, 2017, 3:34 p.m. OK Java 8 TESTS 38 171 0 2900
27359129 fetetriste F May 26, 2017, 3:39 p.m. OK Java 8 TESTS 38 186 0 2900
28168459 mualanhlung017 F June 30, 2017, 9:15 a.m. OK Java 8 TESTS 38 186 21504000 2900
27359049 fetetriste F May 26, 2017, 3:35 p.m. OK Java 8 TESTS 38 187 0 2900
28363916 mualanhlung017 F July 8, 2017, 8:07 a.m. OK Java 8 TESTS 38 233 22528000 2900
21954182 orailly F Nov. 1, 2016, 1:44 a.m. OK MS C++ TESTS 38 15 102400 2900
52477331 ivanilos F April 8, 2019, 1:07 a.m. OK MS C++ 2017 TESTS 38 31 102400 2900
52477370 ivanilos F April 8, 2019, 1:10 a.m. OK MS C++ 2017 TESTS 38 31 102400 2900
38326646 malreynolds F May 16, 2018, 4:11 p.m. OK PyPy 3 TESTS 38 249 24473600 2900
21984157 orailly F Nov. 2, 2016, 7:13 a.m. OK Python 3 TESTS 38 139 307200 2900
35894822 ______u______ F March 3, 2018, 4:30 p.m. OK Python 3 TESTS 38 171 5734400 2900
35894908 ______n______ F March 3, 2018, 4:31 p.m. OK Python 3 TESTS 38 171 5734400 2900
35895554 _____k_____ F March 3, 2018, 4:47 p.m. OK Python 3 TESTS 38 171 5734400 2900
35882878 ______M______ F March 3, 2018, 12:45 p.m. OK Python 3 TESTS 38 171 5734400 2900
35884961 ______i______ F March 3, 2018, 1:21 p.m. OK Python 3 TESTS 38 171 5734400 2900
35886279 ______h______ F March 3, 2018, 1:43 p.m. OK Python 3 TESTS 38 171 5734400 2900
35894599 _____i_____ F March 3, 2018, 4:25 p.m. OK Python 3 TESTS 38 171 5734400 2900
58705769 soloSquad1999 F Aug. 13, 2019, 9:29 a.m. OK Python 3 TESTS 38 186 409600 2900

remove filters

Back to search problems