European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred)

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
1949 European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 20548799 March 24, 2024, 10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 127 ) H Division Avoidance PROGRAMMING

B'A newly discovered organism can be represented as a set of cells on an infinite grid. There is a coordinate system on the grid such that each cell has two integer coordinates x and y . A cell with coordinates x=a and y=b will be denoted as (a, b) . Initially, the organism consists of a single cell (0, 0) . Then zero or more divisions can happen. In one division, a cell (a, b) is removed and replaced by two cells (a+1, b) and (a, b+1) . For example, after the first division, the organism always consists of two cells (1, 0) and (0, 1) , and after the second division, it is either the three cells (2, 0) , (1, 1) and (0, 1) , or the three cells (1, 0) , (1, 1) and (0, 2) . A division of a cell (a, b) can only happen if the cells (a+1, b) and (a, b+1) are not yet part of the organism. For example, the cell (1, 0) cannot divide if the organism currently consists of the three cells (1, 0) , (1, 1) and (0, 2) , since the cell (1, 1) that would be one of the results of this division is already part of the organism. You are given a set of forbidden cells {(c_i, d_i)} . Is it possible for the organism to contain none of those cells after zero or more divisions? Each test contains multiple test cases. The first line contains an integer t ( 1 <= t <= 10 ,000 ) -- the number of test cases. The descriptions of the t test cases follow. The first line of each test case contains an integer n ( 1 <= n <= 10^6 ) -- the number of forbidden cells. The next n lines contain two integers each. The i -th of such lines contains c_i and d_i ( 0 <= c_i, d_i <= 10^9 ) -- the coordinates of the i -th forbidden cell. It is guaranteed that all forbidden cells are distinct. It is guaranteed that the sum of values of n over all test cases does not exceed 10^6 . For eac'...

Tutorials

European Championship 2024 (EUC) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
253099849 PubabaOnO orzdevinwang jqdai0815 H March 24, 2024, 2:41 p.m. OK C++17 (GCC 7-32) TESTS 56 1903 60723200
253100542 tourist ecnerwala H March 24, 2024, 2:46 p.m. OK C++20 (GCC 13-64) TESTS 56 171 9113600
253099248 tourist ecnerwala H March 24, 2024, 2:37 p.m. OK C++20 (GCC 13-64) TESTS 56 171 9113600
253145889 Ormlis H March 24, 2024, 11:39 p.m. OK C++20 (GCC 13-64) TESTS 56 529 8089600
253082339 Savior-of-Cross Kuroni errorgorn H March 24, 2024, 12:32 p.m. OK C++20 (GCC 13-64) TESTS 56 951 16076800
253100740 Tikhon228 Pechalka Kapt H March 24, 2024, 2:48 p.m. OK C++20 (GCC 13-64) TESTS 56 1668 96153600
253113643 ksun48 H March 24, 2024, 4:43 p.m. OK C++20 (GCC 13-64) TESTS 56 1777 13721600
253113720 ksun48 H March 24, 2024, 4:44 p.m. OK C++20 (GCC 13-64) TESTS 56 1825 13721600
253092498 PavelKunyavskiy pashka Egor H March 24, 2024, 1:47 p.m. OK Rust 2021 TESTS 56 296 24064000

remove filters

Back to search problems