Codeforces Round 487 (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
989 Codeforces Round 487 (Div. 2) FINISHED False 7200 208801523 June 11, 2018, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 253 ) E A Trance of Nightfall PROGRAMMING dp geometry matrices probabilities 2900

B'"Flowing and passing like this, the water isn 't gone ultimately; Waxing and waning like that, the moon doesn 't shrink or grow eventually." "Everything is transient in a way and perennial in another." Kanno doesn 't seem to make much sense out of Mino 's isolated words, but maybe it 's time that they enjoy the gentle breeze and the night sky -- the inexhaustible gifts from nature. Gazing into the sky of stars, Kanno indulges in a night 's tranquil dreams. There is a set S of n points on a coordinate plane. Kanno starts from a point P that can be chosen on the plane. P is not added to S if it doesn 't belong to S . Then the following sequence of operations (altogether called a move) is repeated several times, in the given order: There are q queries each consisting of two integers (t_i, m_i) . For each query, you 're to help Kanno maximize the probability of the stopping position being the t_i -th element in S after m_i moves with a proper selection of P , and output this maximum probability. Note that according to rule 1, P should belong to at least one line that passes through at least two points from S . The first line contains a positive integer n ( 2 <= q n <= q 200 ) -- the number of points in S . The i -th of the following n lines contains two space-separated integers x_i and y_i ( -10^4 <= q x_i, y_i <= q 10^4 ) -- the coordinates of the i -th point in S . The input guarantees that for all 1 <= q i lt j <= q n , (x_i, y_i) neq (x_j, y_j) holds. The next line contains a positive integer q ( 1 <= q q <= q 200 ) -- the number of queries. Each of the following q lines contains two space-separated integers t and m ( 1 <= q t_i <= q n , 1 <= q m_i <= q 10^4 ) -- the index of the target point and the number of moves, respectively. Output q lines each containing a decima'...

Tutorials

Codeforces Round #487 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39193876 redbag E June 12, 2018, 2:11 p.m. OK GNU C++ TESTS 47 93 4198400 2900
39193650 redbag E June 12, 2018, 2:03 p.m. OK GNU C++ TESTS 47 93 4915200 2900
39193729 redbag E June 12, 2018, 2:06 p.m. OK GNU C++ TESTS 47 108 4198400 2900
40931979 ReaLNero1 E July 30, 2018, 1:29 a.m. OK GNU C++ TESTS 47 108 4915200 2900
39204620 SpiritualKhorosho E June 13, 2018, 2:32 a.m. OK GNU C++ TESTS 47 140 7372800 2900
39204520 SpiritualKhorosho E June 13, 2018, 2:24 a.m. OK GNU C++ TESTS 47 140 7372800 2900
39204361 SpiritualKhorosho E June 13, 2018, 2:09 a.m. OK GNU C++ TESTS 47 140 7372800 2900
39204334 SpiritualKhorosho E June 13, 2018, 2:07 a.m. OK GNU C++ TESTS 47 140 7372800 2900
39204251 SpiritualKhorosho E June 13, 2018, 2 a.m. OK GNU C++ TESTS 47 155 6963200 2900
39204194 SpiritualKhorosho E June 13, 2018, 1:55 a.m. OK GNU C++ TESTS 47 155 6963200 2900
68426155 asuldb E Jan. 9, 2020, 3:27 a.m. OK GNU C++11 TESTS 47 140 6041600 2900
62623943 wadewlison E Oct. 15, 2019, 1:34 p.m. OK GNU C++11 TESTS 47 171 7577600 2900
68425616 asuldb E Jan. 9, 2020, 2:58 a.m. OK GNU C++11 TESTS 47 187 6041600 2900
45264581 mysterynoip E Nov. 4, 2018, 5:01 a.m. OK GNU C++11 TESTS 47 187 6656000 2900
44672652 H-C-H E Oct. 21, 2018, 11:09 p.m. OK GNU C++11 TESTS 47 187 9728000 2900
39196641 nhho E June 12, 2018, 4:19 p.m. OK GNU C++11 TESTS 47 202 5836800 2900
39186203 zjp_shadow E June 12, 2018, 9:16 a.m. OK GNU C++11 TESTS 47 202 9728000 2900
45436897 wuyongwei E Nov. 8, 2018, 8:32 a.m. OK GNU C++11 TESTS 47 218 43417600 2900
39173618 danya090699 E June 11, 2018, 7:28 p.m. OK GNU C++11 TESTS 47 234 6041600 2900
39216080 dasinlsb E June 13, 2018, 12:25 p.m. OK GNU C++11 TESTS 47 234 6246400 2900
39193583 laofudacong E June 12, 2018, 2 p.m. OK GNU C++14 TESTS 47 140 13209600 2900
45264561 mysterynoip E Nov. 4, 2018, 5 a.m. OK GNU C++14 TESTS 47 171 6860800 2900
39331070 Ghaffargang E June 17, 2018, 9:32 a.m. OK GNU C++14 TESTS 47 171 21708800 2900
44569224 alan_cty E Oct. 20, 2018, 3:40 a.m. OK GNU C++14 TESTS 47 187 7065600 2900
45432756 zxyoi E Nov. 8, 2018, 5:39 a.m. OK GNU C++14 TESTS 47 187 7270400 2900
47889477 Amorphophallus E Jan. 4, 2019, 4:51 a.m. OK GNU C++14 TESTS 47 187 7987200 2900
39194643 Marco_L_T E June 12, 2018, 2:42 p.m. OK GNU C++14 TESTS 47 187 21708800 2900
39198669 Valiors E June 12, 2018, 6:10 p.m. OK GNU C++14 TESTS 47 202 9932800 2900
39191685 chenyanbo E June 12, 2018, 12:44 p.m. OK GNU C++14 TESTS 47 217 6758400 2900
45166053 Shedneryan E Nov. 1, 2018, 11:10 a.m. OK GNU C++14 TESTS 47 217 7680000 2900
48446457 Trisolaris E Jan. 16, 2019, 7:45 a.m. OK GNU C++17 TESTS 47 218 7168000 2900
54553508 frteen E May 24, 2019, 10:28 a.m. OK GNU C++17 TESTS 47 264 178995200 2900
63544814 includehdhd E Oct. 27, 2019, 10:16 a.m. OK GNU C++17 TESTS 47 265 6758400 2900
39186988 Jakube E June 12, 2018, 9:46 a.m. OK GNU C++17 TESTS 47 280 6144000 2900
63495118 PhantasmDragon E Oct. 26, 2019, 3:21 p.m. OK GNU C++17 TESTS 47 296 6451200 2900
39234963 cjnwq E June 14, 2018, 7:53 a.m. OK GNU C++17 TESTS 47 296 6656000 2900
53816768 vjudge4 E May 6, 2019, 11:01 a.m. OK GNU C++17 TESTS 47 296 9830400 2900
39243409 cjnwq E June 14, 2018, 12:19 p.m. OK GNU C++17 TESTS 47 312 6451200 2900
53816761 halohalo E May 6, 2019, 11:01 a.m. OK GNU C++17 TESTS 47 312 9830400 2900
39243374 cjnwq E June 14, 2018, 12:18 p.m. OK GNU C++17 TESTS 47 327 6348800 2900
44975137 tri E Oct. 28, 2018, 4:48 a.m. OK Java 8 TESTS 47 733 5939200 2900
39333981 wRabbits_AlMag E June 17, 2018, 11:38 a.m. OK MS C++ TESTS 47 342 7577600 2900
53977090 vjudge5 E May 11, 2019, 4:59 a.m. OK MS C++ TESTS 47 467 6041600 2900

remove filters

Back to search problems