2023-2024 ICPC, Asia Jakarta Regional Contest (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
1906 2023-2024 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 30245099 Dec. 3, 2023, 4:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 124 ) D Spaceship Exploration PROGRAMMING binary search geometry

B'In The ICPC Galaxy, there exists a zone filled with asteroids that is unsafe to enter. The map of the galaxy is represented in a 2D Cartesian coordinate system. The zone is in the shape of an N -sided convex polygon. Each corner is numbered from 1 to N ; corner i is located at (X_i, Y_i) . At any moment, you should not be inside this polygon; however, it is safe to touch the side of the polygon. There are Q scenarios (numbered from 1 to Q ). In scenario j , you want to go from a starting point at (A_j, B_j) to an ending point at (C_j, D_j) . You will be riding on a special spaceship that can only travel in a straight line. First, you set the direction of the spaceship, then the spaceship will start traveling in that direction. During the travel, you are only allowed to change direction at most once. Changing direction means you stop the spaceship, set a new direction, and then start traveling again in the new direction. For each scenario, determine the minimum distance required to travel without being inside of the zone at any moment, or report if it is impossible to reach the ending point. The first line consists of an integer N ( 3 <= q N <= q 100 ,000 ). Each of the next N lines consists of two integers X_i Y_i ( -10^9 <= q X_i, Y_i <= q 10^9 ). The points form a convex polygon in counterclockwise order. There are no three points which are collinear. The following line consists of an integer Q ( 1 <= q Q <= q 100 ,000 ). Each of the next Q lines consists of four integers A_j B_j C_j D_j ( -10^9 <= q A_j, B_j, C_j, D_j <= q 10^9 ). There are no starting points and ending points inside the zone. However, it is possible for the starting point and the ending point to be at the side of the zone. All the coordinates in the input are integers. For each scenario, output the answer in a single line. If it is possible to reach th'...

Tutorials

problem_analysis.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
235524491 subhasravani D Dec. 3, 2023, 1:13 p.m. OK GNU C++17 TESTS 35 717 1945600
235506326 lunilay2002 D Dec. 3, 2023, 10:37 a.m. OK GNU C++17 TESTS 35 717 1945600
235645269 N_z__ D Dec. 4, 2023, 1:27 a.m. OK GNU C++17 (64) TESTS 35 249 5734400
235645322 N_z__ D Dec. 4, 2023, 1:28 a.m. OK GNU C++17 (64) TESTS 35 249 8192000
235650214 chk_is_sandhome D Dec. 4, 2023, 3:02 a.m. OK GNU C++20 (64) TESTS 35 124 3276800
235649159 chk_is_sandhome D Dec. 4, 2023, 2:41 a.m. OK GNU C++20 (64) TESTS 35 140 3276800
235647822 chk_is_sandhome D Dec. 4, 2023, 2:16 a.m. OK GNU C++20 (64) TESTS 35 140 4096000
235650436 chk_is_sandhome D Dec. 4, 2023, 3:06 a.m. OK GNU C++20 (64) TESTS 35 155 3276800
235649006 chk_is_sandhome D Dec. 4, 2023, 2:38 a.m. OK GNU C++20 (64) TESTS 35 155 4096000
235647720 chk_is_sandhome D Dec. 4, 2023, 2:13 a.m. OK GNU C++20 (64) TESTS 35 358 3993600
235646730 chk_is_sandhome D Dec. 4, 2023, 1:55 a.m. OK GNU C++20 (64) TESTS 35 373 3993600
235641569 chk_is_sandhome D Dec. 3, 2023, 11:59 p.m. OK GNU C++20 (64) TESTS 35 390 3993600
235641427 User_Carrot D Dec. 3, 2023, 11:55 p.m. OK GNU C++20 (64) TESTS 35 405 3993600
235496444 baluteshih icube D Dec. 3, 2023, 9:17 a.m. OK GNU C++20 (64) TESTS 35 452 8089600

remove filters

Back to search problems