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 |
---|---|---|---|---|---|---|
1477 | Codeforces Round 698 (Div. 1) | FINISHED | False | 8100 | 119978699 | Jan. 28, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2345 ) | C | Nezzar and Nice Beatmap | PROGRAMMING | constructive algorithms geometry greedy sortings | 2200 |
B'Nezzar loves the game osu!. osu! is played on beatmaps, which can be seen as an array consisting of distinct points on a plane. A beatmap is called nice if for any three consecutive points A,B,C listed in order, the angle between these three points, centered at B , is strictly less than 90 degrees. Now Nezzar has a beatmap of n distinct points A_1,A_2, ldots,A_n . Nezzar would like to reorder these n points so that the resulting beatmap is nice. Formally, you are required to find a permutation p_1,p_2, ldots,p_n of integers from 1 to n , such that beatmap A_{p_1},A_{p_2}, ldots,A_{p_n} is nice. If it is impossible, you should determine it. The first line contains a single integer n ( 3 <= n <= 5000 ). Then n lines follow, i -th of them contains two integers x_i , y_i ( -10^9 <= x_i, y_i <= 10^9 ) -- coordinates of point A_i . It is guaranteed that all points are distinct. If there is no solution, print -1 . Otherwise, print n integers, representing a valid permutation p . If there are multiple possible answers, you can print any. Here is the illustration for the first test: Please note that the angle between A_1 , A_2 and A_5 , centered at A_2 , is treated as 0 degrees. However, angle between A_1 , A_5 and A_2 , centered at A_5 , is treated as 180 degrees. '... |
87294 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
105781965 | Gassa | C | Jan. 28, 2021, 7:23 p.m. | OK | D | TESTS | 119 | 171 | 0 | 2200 | |
105747407 | kkktl01 | C | Jan. 28, 2021, 3:59 p.m. | OK | GNU C++11 | TESTS | 118 | 30 | 0 | 2200 | |
105741280 | OMG_link | C | Jan. 28, 2021, 3:45 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 0 | 2200 | |
105800953 | l_h_j | C | Jan. 29, 2021, 4:05 a.m. | OK | GNU C++11 | TESTS | 120 | 31 | 102400 | 2200 | |
105754188 | zzctommy | C | Jan. 28, 2021, 4:15 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 102400 | 2200 | |
105750839 | alexbabalau | C | Jan. 28, 2021, 4:07 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 102400 | 2200 | |
105743038 | Yukikaze_ | C | Jan. 28, 2021, 3:49 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 102400 | 2200 | |
105737694 | BigBag | C | Jan. 28, 2021, 3:37 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 102400 | 2200 | |
105741619 | ghj1222 | C | Jan. 28, 2021, 3:46 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 102400 | 2200 | |
105711864 | panole | C | Jan. 28, 2021, 3:11 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 102400 | 2200 | |
105735313 | jzp | C | Jan. 28, 2021, 3:32 p.m. | OK | GNU C++11 | TESTS | 118 | 31 | 102400 | 2200 | |
105748986 | Aleks5d | C | Jan. 28, 2021, 4:02 p.m. | OK | GNU C++14 | TESTS | 118 | 31 | 102400 | 2200 | |
105766669 | Yunlong_Li | C | Jan. 28, 2021, 4:47 p.m. | OK | GNU C++14 | TESTS | 118 | 31 | 102400 | 2200 | |
105741252 | PaiGuLong | C | Jan. 28, 2021, 3:45 p.m. | OK | GNU C++14 | TESTS | 118 | 31 | 102400 | 2200 | |
105796371 | Witcano | C | Jan. 29, 2021, 2:21 a.m. | OK | GNU C++14 | TESTS | 120 | 31 | 102400 | 2200 | |
105795296 | Witcano | C | Jan. 29, 2021, 1:47 a.m. | OK | GNU C++14 | TESTS | 120 | 31 | 307200 | 2200 | |
105780042 | Plasmatic | C | Jan. 28, 2021, 6:56 p.m. | OK | GNU C++14 | TESTS | 119 | 31 | 409600 | 2200 | |
105739457 | Motarack | C | Jan. 28, 2021, 3:41 p.m. | OK | GNU C++14 | TESTS | 118 | 31 | 512000 | 2200 | |
105773175 | AST_TheCoder | C | Jan. 28, 2021, 5:41 p.m. | OK | GNU C++14 | TESTS | 119 | 46 | 102400 | 2200 | |
105796208 | Witcano | C | Jan. 29, 2021, 2:16 a.m. | OK | GNU C++14 | TESTS | 120 | 46 | 102400 | 2200 | |
105796431 | Witcano | C | Jan. 29, 2021, 2:23 a.m. | OK | GNU C++14 | TESTS | 120 | 46 | 102400 | 2200 | |
105739807 | Enchom | C | Jan. 28, 2021, 3:42 p.m. | OK | GNU C++17 | TESTS | 118 | 31 | 102400 | 2200 | |
105718262 | radoslav11 | C | Jan. 28, 2021, 3:16 p.m. | OK | GNU C++17 | TESTS | 118 | 31 | 102400 | 2200 | |
105739554 | Rudy998244353 | C | Jan. 28, 2021, 3:41 p.m. | OK | GNU C++17 | TESTS | 118 | 31 | 102400 | 2200 | |
105804573 | TsReaper | C | Jan. 29, 2021, 5:07 a.m. | OK | GNU C++17 | TESTS | 120 | 31 | 102400 | 2200 | |
105780596 | Perry_Prasad_Platypus | C | Jan. 28, 2021, 7:03 p.m. | OK | GNU C++17 | TESTS | 119 | 31 | 102400 | 2200 | |
105779461 | zyrch | C | Jan. 28, 2021, 6:48 p.m. | OK | GNU C++17 | TESTS | 119 | 31 | 102400 | 2200 | |
105779003 | bro_jogan | C | Jan. 28, 2021, 6:41 p.m. | OK | GNU C++17 | TESTS | 119 | 31 | 102400 | 2200 | |
105764254 | amethyst0 | C | Jan. 28, 2021, 4:41 p.m. | OK | GNU C++17 | TESTS | 118 | 31 | 102400 | 2200 | |
105743547 | nxzhoubz | C | Jan. 28, 2021, 3:50 p.m. | OK | GNU C++17 | TESTS | 118 | 31 | 102400 | 2200 | |
105760039 | 9085934051018 | C | Jan. 28, 2021, 4:30 p.m. | OK | GNU C++17 | TESTS | 118 | 31 | 204800 | 2200 | |
105760336 | Kude | C | Jan. 28, 2021, 4:31 p.m. | OK | GNU C++17 (64) | TESTS | 118 | 31 | 102400 | 2200 | |
105798088 | Arpa | C | Jan. 29, 2021, 3:05 a.m. | OK | GNU C++17 (64) | TESTS | 120 | 31 | 102400 | 2200 | |
105798049 | Arpa | C | Jan. 29, 2021, 3:04 a.m. | OK | GNU C++17 (64) | TESTS | 120 | 31 | 102400 | 2200 | |
105793811 | Normie28 | C | Jan. 29, 2021, 12:56 a.m. | OK | GNU C++17 (64) | TESTS | 120 | 31 | 102400 | 2200 | |
105793229 | .__. | C | Jan. 29, 2021, 12:32 a.m. | OK | GNU C++17 (64) | TESTS | 120 | 31 | 102400 | 2200 | |
105792920 | RiverHamster | C | Jan. 29, 2021, 12:18 a.m. | OK | GNU C++17 (64) | TESTS | 120 | 31 | 102400 | 2200 | |
105787276 | Ra16bit | C | Jan. 28, 2021, 9:06 p.m. | OK | GNU C++17 (64) | TESTS | 119 | 31 | 102400 | 2200 | |
105776998 | mip182 | C | Jan. 28, 2021, 6:17 p.m. | OK | GNU C++17 (64) | TESTS | 119 | 31 | 102400 | 2200 | |
105766745 | nuip | C | Jan. 28, 2021, 4:47 p.m. | OK | GNU C++17 (64) | TESTS | 118 | 31 | 102400 | 2200 | |
105753607 | Binary_Search_Tree | C | Jan. 28, 2021, 4:14 p.m. | OK | GNU C++17 (64) | TESTS | 118 | 31 | 102400 | 2200 | |
105751372 | clyring | C | Jan. 28, 2021, 4:08 p.m. | OK | Haskell | TESTS | 118 | 1091 | 102400 | 2200 | |
105737961 | sarthakmanna | C | Jan. 28, 2021, 3:38 p.m. | OK | Java 11 | TESTS | 118 | 249 | 512000 | 2200 | |
105760385 | Apfeloxid | C | Jan. 28, 2021, 4:31 p.m. | OK | Java 11 | TESTS | 118 | 374 | 0 | 2200 | |
105735983 | uwi | C | Jan. 28, 2021, 3:34 p.m. | OK | Java 11 | TESTS | 118 | 467 | 0 | 2200 | |
105762615 | cirno3153 | C | Jan. 28, 2021, 4:37 p.m. | OK | Java 11 | TESTS | 118 | 686 | 81510400 | 2200 | |
105732459 | SecondThread | C | Jan. 28, 2021, 3:26 p.m. | OK | Java 11 | TESTS | 118 | 997 | 0 | 2200 | |
105766295 | AdhmMohamed | C | Jan. 28, 2021, 4:46 p.m. | OK | Java 8 | TESTS | 118 | 155 | 0 | 2200 | |
105737324 | iakovlev.zakhar | C | Jan. 28, 2021, 3:36 p.m. | OK | Java 8 | TESTS | 118 | 311 | 0 | 2200 | |
105752929 | ElragolEl3enab | C | Jan. 28, 2021, 4:12 p.m. | OK | Java 8 | TESTS | 118 | 342 | 0 | 2200 | |
105773712 | polyakoff | C | Jan. 28, 2021, 5:46 p.m. | OK | Java 8 | TESTS | 119 | 358 | 0 | 2200 | |
105749436 | YahiaSherif | C | Jan. 28, 2021, 4:03 p.m. | OK | Java 8 | TESTS | 118 | 436 | 0 | 2200 | |
105771555 | koboshi | C | Jan. 28, 2021, 5:30 p.m. | OK | Kotlin | TESTS | 118 | 421 | 716800 | 2200 | |
105785779 | Scotty_pwnz | C | Jan. 28, 2021, 8:30 p.m. | OK | Kotlin | TESTS | 119 | 514 | 614400 | 2200 | |
105773476 | wjli | C | Jan. 28, 2021, 5:44 p.m. | OK | MS C++ 2017 | TESTS | 119 | 234 | 409600 | 2200 | |
105762443 | tarattata1 | C | Jan. 28, 2021, 4:37 p.m. | OK | MS C++ 2017 | TESTS | 118 | 265 | 409600 | 2200 | |
105741950 | terry_u16 | C | Jan. 28, 2021, 3:46 p.m. | OK | .NET Core C# | TESTS | 118 | 202 | 1843200 | 2200 | |
105746717 | azukun | C | Jan. 28, 2021, 3:57 p.m. | OK | .NET Core C# | TESTS | 118 | 343 | 2560000 | 2200 | |
105779438 | fairy_lettuce | C | Jan. 28, 2021, 6:48 p.m. | OK | .NET Core C# | TESTS | 119 | 1856 | 10137600 | 2200 | |
105741685 | pineriver | C | Jan. 28, 2021, 3:46 p.m. | OK | PyPy 3 | TESTS | 118 | 186 | 6041600 | 2200 | |
105692547 | asdsasd | C | Jan. 28, 2021, 2:56 p.m. | OK | PyPy 3 | TESTS | 118 | 452 | 9932800 | 2200 | |
105796582 | marroncastle | C | Jan. 29, 2021, 2:28 a.m. | OK | PyPy 3 | TESTS | 120 | 1107 | 4198400 | 2200 | |
105737725 | yuusanlondon | C | Jan. 28, 2021, 3:37 p.m. | OK | PyPy 3 | TESTS | 118 | 1185 | 4198400 | 2200 | |
105796683 | marroncastle | C | Jan. 29, 2021, 2:30 a.m. | OK | PyPy 3 | TESTS | 120 | 1309 | 4710400 | 2200 | |
105796792 | marroncastle | C | Jan. 29, 2021, 2:33 a.m. | OK | PyPy 3 | TESTS | 120 | 1388 | 4505600 | 2200 | |
105742475 | chinerist | C | Jan. 28, 2021, 3:47 p.m. | OK | PyPy 3 | TESTS | 118 | 1434 | 7168000 | 2200 | |
105757841 | kclee2172 | C | Jan. 28, 2021, 4:24 p.m. | OK | PyPy 3 | TESTS | 118 | 1637 | 5324800 | 2200 | |
105753264 | titia | C | Jan. 28, 2021, 4:13 p.m. | OK | PyPy 3 | TESTS | 118 | 1668 | 12697600 | 2200 | |
105756320 | avm | C | Jan. 28, 2021, 4:21 p.m. | OK | Rust | TESTS | 118 | 78 | 1740800 | 2200 |
Back to search problems