Codeforces Round 468 (Div. 1, based on Technocup 2018 Final Round)

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
930 Codeforces Round 468 (Div. 1, based on Technocup 2018 Final Round) FINISHED False 7200 256227923 March 4, 2018, 3:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 444 ) D Game with Tokens PROGRAMMING data structures games implementation 2600

Consider the following game for two players. There is one white token and some number of black tokens. Each token is placed on a plane in a point with integer coordinates x and y . The players take turn making moves, white starts. On each turn, a player moves all tokens of their color by 1 to up, down, left or right. Black player can choose directions for each token independently. After a turn of the white player the white token can not be in a point where a black token is located. There are no other constraints on locations of the tokens: positions of black tokens can coincide, after a turn of the black player and initially the white token can be in the same point with some black point. If at some moment the white player can't make a move, he loses. If the white player makes 10 100500 moves, he wins. You are to solve the following problem. You are given initial positions of all black tokens. It is guaranteed that initially all these positions are distinct. In how many places can the white token be located initially so that if both players play optimally, the black player wins? The first line contains a single integer n ( 1 ≤ n ≤ 10 5 ) — the number of black points. The ( i + 1 )-th line contains two integers x i , y i ( - 10 5 ≤ x i , y i , ≤ 10 5 ) — the coordinates of the point where the i -th black token is initially located. It is guaranteed that initial positions of black tokens are distinct. Print the number of points where the white token can be located initially, such that if both players play optimally, the black player wins. In the first and second examples initial positions of black tokens are shown with black points, possible positions of the white token (such that the black player wins) are shown with white points. The first example: The second example: In the third example the white tokens should be located in the inner square 2 × 2 , to make the black player win.

Tutorials

Codeforces Round #468 and Technocup 2018 Final Round Analysis

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69467087 hos.lyric D Jan. 24, 2020, 1:16 p.m. OK D TESTS 62 202 22528000 2600
40031001 1668 D July 6, 2018, 1:07 p.m. OK FPC TESTS 62 93 8089600 2600
35941622 cz_xuyixuan D March 4, 2018, 5:02 p.m. OK GNU C++ TESTS 62 31 11673600 2600
35959677 function348 D March 5, 2018, 8:44 a.m. OK GNU C++ TESTS 62 46 5427200 2600
40978212 ReaLNero1 D July 30, 2018, 4:31 p.m. OK GNU C++ TESTS 62 46 9625600 2600
37743491 Scut82 D April 30, 2018, 8:19 a.m. OK GNU C++ TESTS 62 46 11776000 2600
35989862 rainy_season D March 6, 2018, 11:30 a.m. OK GNU C++ TESTS 62 61 4505600 2600
40024294 hankairu D July 6, 2018, 8:37 a.m. OK GNU C++ TESTS 62 62 7577600 2600
40017198 cold_chair D July 6, 2018, 3:29 a.m. OK GNU C++ TESTS 62 62 9420800 2600
40021124 SXnoname D July 6, 2018, 6:48 a.m. OK GNU C++ TESTS 62 62 16896000 2600
40018116 ilnil D July 6, 2018, 4:32 a.m. OK GNU C++ TESTS 62 77 1433600 2600
40021103 jokerwyt D July 6, 2018, 6:48 a.m. OK GNU C++ TESTS 62 77 8294400 2600
35969772 ohweonfire D March 5, 2018, 3:06 p.m. OK GNU C++11 TESTS 62 31 4812800 2600
35985523 vjudge2 D March 6, 2018, 8:37 a.m. OK GNU C++11 TESTS 62 31 6860800 2600
35942145 yancouto D March 4, 2018, 5:06 p.m. OK GNU C++11 TESTS 62 31 9318400 2600
35991248 PupilFop_zz D March 6, 2018, 12:23 p.m. OK GNU C++11 TESTS 62 31 12083200 2600
36036855 zzb111 D March 7, 2018, 8:15 a.m. OK GNU C++11 TESTS 62 31 17305600 2600
50570800 Gloid D Feb. 27, 2019, 3:19 p.m. OK GNU C++11 TESTS 62 46 2457600 2600
54731962 time_interspace D May 28, 2019, 1:16 a.m. OK GNU C++11 TESTS 62 46 3276800 2600
48953002 vjudge3 D Jan. 26, 2019, 1:59 a.m. OK GNU C++11 TESTS 62 46 4812800 2600
35961781 massimodong D March 5, 2018, 10:28 a.m. OK GNU C++11 TESTS 62 46 6963200 2600
35961813 RNS3 D March 5, 2018, 10:30 a.m. OK GNU C++11 TESTS 62 46 7065600 2600
36308849 abeker D March 15, 2018, 5:37 p.m. OK GNU C++14 TESTS 62 61 9113600 2600
35947702 emma D March 4, 2018, 7:05 p.m. OK GNU C++14 TESTS 62 62 3891200 2600
55734949 Scut82 D June 19, 2019, 2:56 a.m. OK GNU C++14 TESTS 62 62 5222400 2600
36060090 consecutivelimit D March 8, 2018, 3:18 a.m. OK GNU C++14 TESTS 62 62 6656000 2600
35992450 JHSN D March 6, 2018, 1:03 p.m. OK GNU C++14 TESTS 62 62 6656000 2600
35992289 JHSN D March 6, 2018, 12:59 p.m. OK GNU C++14 TESTS 62 62 6656000 2600
36206402 triveni D March 11, 2018, 5:07 p.m. OK GNU C++14 TESTS 62 62 6963200 2600
35943816 TangentDay D March 4, 2018, 5:21 p.m. OK GNU C++14 TESTS 62 62 7475200 2600
54493444 NotNight D May 22, 2019, 4:31 p.m. OK GNU C++14 TESTS 62 62 8396800 2600
35940747 natsugiri D March 4, 2018, 4:54 p.m. OK GNU C++14 TESTS 62 62 12083200 2600
35941556 alex9801 D March 4, 2018, 5:01 p.m. OK GNU C++17 TESTS 62 62 5529600 2600
35967949 ftiasch D March 5, 2018, 2:01 p.m. OK GNU C++17 TESTS 62 62 8396800 2600
35967888 ftiasch D March 5, 2018, 1:59 p.m. OK GNU C++17 TESTS 62 62 8396800 2600
35990078 Jakube D March 6, 2018, 11:39 a.m. OK GNU C++17 TESTS 62 78 3891200 2600
69468119 sigma425 D Jan. 24, 2020, 1:38 p.m. OK GNU C++17 TESTS 62 78 4608000 2600
44752079 Chameleon2460 D Oct. 23, 2018, 8:36 p.m. OK GNU C++17 TESTS 62 78 5427200 2600
36030295 ludo D March 7, 2018, 12:31 a.m. OK GNU C++17 TESTS 62 78 7065600 2600
40740431 vjudge3 D July 25, 2018, 12:03 p.m. OK GNU C++17 TESTS 62 78 7270400 2600
65484604 hjk1030 D Nov. 21, 2019, 12:52 p.m. OK GNU C++17 TESTS 62 93 8396800 2600
56624648 square1001 D July 6, 2019, 1:18 p.m. OK GNU C++17 TESTS 62 93 9216000 2600
36355677 tmwilliamlin168 D March 17, 2018, 1:44 p.m. OK Java 8 TESTS 62 171 22732800 2600
36448401 khanhbk D March 21, 2018, 8:02 a.m. OK Java 8 TESTS 62 186 26112000 2600
36443571 alberuniy D March 20, 2018, 11:09 p.m. OK Java 8 TESTS 62 186 26112000 2600
36370003 temp656463 D March 17, 2018, 7:21 p.m. OK Java 8 TESTS 62 186 26112000 2600
37523543 sagar_is_dumb D April 21, 2018, 8:48 p.m. OK Java 8 TESTS 62 186 26214400 2600
35939453 Petr D March 4, 2018, 4:45 p.m. OK Java 8 TESTS 62 202 26214400 2600
35948295 Lewin D March 4, 2018, 7:22 p.m. OK Java 8 TESTS 62 233 21504000 2600
35941181 uwi D March 4, 2018, 4:58 p.m. OK Java 8 TESTS 62 249 38502400 2600
35941391 mmaxio D March 4, 2018, 5 p.m. OK Java 8 TESTS 62 264 30003200 2600
35941954 VArtem D March 4, 2018, 5:04 p.m. OK Java 8 TESTS 62 311 21401600 2600
35942541 swenyoo D March 4, 2018, 5:09 p.m. OK MS C++ TESTS 62 46 10854400 2600
50059422 vjudge3 D Feb. 17, 2019, 11:58 a.m. OK MS C++ TESTS 62 109 9625600 2600
35942789 orz D March 4, 2018, 5:12 p.m. OK MS C++ TESTS 62 171 7680000 2600
40113708 Ali_Pi D July 9, 2018, 1:19 p.m. OK PyPy 2 TESTS 62 280 19251200 2600
35965928 nwi D March 5, 2018, 1:01 p.m. OK Python 2 TESTS 62 826 22528000 2600

remove filters

Back to search problems