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 |
---|---|---|---|---|---|---|
1254 | Codeforces Round 601 (Div. 1) | FINISHED | False | 7200 | 157649099 | Nov. 19, 2019, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1441 ) | C | Point Ordering | PROGRAMMING | constructive algorithms geometry interactive math | 2300 |
B"This is an interactive problem. Khanh has n points on the Cartesian plane, denoted by a_1, a_2, ldots, a_n . All points' coordinates are integers between -10^9 and 10^9 , inclusive. No three points are collinear. He says that these points are vertices of a convex polygon; in other words, there exists a permutation p_1, p_2, ldots, p_n of integers from 1 to n such that the polygon a_{p_1} a_{p_2} ldots a_{p_n} is convex and vertices are listed in counter-clockwise order. Khanh gives you the number n , but hides the coordinates of his points. Your task is to guess the above permutation by asking multiple queries. In each query, you give Khanh 4 integers t , i , j , k ; where either t = 1 or t = 2 ; and i , j , k are three distinct indices from 1 to n , inclusive. In response, Khanh tells you: Recall that the cross product of vector overrightarrow{a} = (x_a, y_a) and vector overrightarrow{b} = (x_b, y_b) is the integer x_a cdot y_b - x_b cdot y_a . The sign of a number is 1 it it is positive, and -1 otherwise. It can be proven that the cross product obtained in the above queries can not be 0 . You can ask at most 3 cdot n queries. Please note that Khanh fixes the coordinates of his points and does not change it while answering your queries. You do not need to guess the coordinates. In your permutation a_{p_1}a_{p_2} ldots a_{p_n} , p_1 should be equal to 1 and the indices of vertices should be listed in counter-clockwise order. You start the interaction by reading n ( 3 <= q n <= q 1 ,000 ) -- the number of vertices. To ask a query, write 4 integers t , i , j , k ( 1 <= q t <= q 2 , 1 <= q i, j, k <= q n ) in a separate line. i , j and k should be distinct. Then read a single integer to get the answer to this query, as"... |
Codeforces Round #601 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
65764891 | Jester | C | Nov. 26, 2019, 5:27 p.m. | OK | Clang++17 Diagnostics | TESTS | 93 | 171 | 14745600 | 2300 | |
65366397 | hos.lyric | C | Nov. 19, 2019, 3:15 p.m. | OK | D | TESTS | 93 | 92 | 4198400 | 2300 | |
65375276 | Gassa | C | Nov. 19, 2019, 3:45 p.m. | OK | D | TESTS | 93 | 93 | 4198400 | 2300 | |
65487746 | iica | C | Nov. 21, 2019, 1:40 p.m. | OK | D | TESTS | 93 | 93 | 4300800 | 2300 | |
65598555 | ruban | C | Nov. 23, 2019, 4:56 p.m. | OK | Delphi | TESTS | 93 | 46 | 39731200 | 2300 | |
65378844 | physics0523 | C | Nov. 19, 2019, 4 p.m. | OK | GNU C11 | TESTS | 93 | 46 | 0 | 2300 | |
65381095 | lamnhh | C | Nov. 19, 2019, 4:08 p.m. | OK | GNU C++11 | TESTS | 93 | 31 | 0 | 2300 | |
65364742 | 1919810 | C | Nov. 19, 2019, 3:10 p.m. | OK | GNU C++11 | TESTS | 93 | 31 | 102400 | 2300 | |
69647747 | Frame233 | C | Jan. 28, 2020, 2:54 a.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
66596824 | CQUzbx | C | Dec. 10, 2019, 2:59 p.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
66500231 | yurzhang | C | Dec. 8, 2019, 12:13 p.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
66379537 | suncongbo | C | Dec. 6, 2019, 4:54 a.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
66293166 | daifucong | C | Dec. 5, 2019, 1:19 a.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
65853526 | alexandra_udristoiu | C | Nov. 27, 2019, 2:55 p.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
65825899 | medk | C | Nov. 27, 2019, 12:31 p.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
69722207 | cuizhuyefei | C | Jan. 29, 2020, 11:05 a.m. | OK | GNU C++11 | TESTS | 93 | 46 | 0 | 2300 | |
65392347 | Lius | C | Nov. 19, 2019, 5:52 p.m. | OK | GNU C++14 | TESTS | 93 | 46 | 0 | 2300 | |
65387413 | Four-leafClover | C | Nov. 19, 2019, 4:30 p.m. | OK | GNU C++14 | TESTS | 93 | 46 | 0 | 2300 | |
65519345 | Sciorz | C | Nov. 22, 2019, 7:32 a.m. | OK | GNU C++14 | TESTS | 93 | 46 | 0 | 2300 | |
65448424 | AndreiCotor | C | Nov. 20, 2019, 4:57 p.m. | OK | GNU C++14 | TESTS | 93 | 46 | 102400 | 2300 | |
65388282 | Marckess | C | Nov. 19, 2019, 4:32 p.m. | OK | GNU C++14 | TESTS | 93 | 46 | 102400 | 2300 | |
65382379 | balakrishnan | C | Nov. 19, 2019, 4:13 p.m. | OK | GNU C++14 | TESTS | 93 | 46 | 102400 | 2300 | |
65494050 | lollihunter | C | Nov. 21, 2019, 3:51 p.m. | OK | GNU C++14 | TESTS | 93 | 46 | 102400 | 2300 | |
65435990 | theodor.moroianu | C | Nov. 20, 2019, 1:25 p.m. | OK | GNU C++14 | TESTS | 93 | 46 | 204800 | 2300 | |
65422832 | deepdark-coldstars-light | C | Nov. 20, 2019, 9:35 a.m. | OK | GNU C++14 | TESTS | 93 | 46 | 204800 | 2300 | |
65558754 | daniel071292 | C | Nov. 23, 2019, 1:18 a.m. | OK | GNU C++14 | TESTS | 93 | 46 | 204800 | 2300 | |
65376934 | alex9801 | C | Nov. 19, 2019, 3:52 p.m. | OK | GNU C++17 | TESTS | 93 | 46 | 0 | 2300 | |
65381739 | StepMommy | C | Nov. 19, 2019, 4:10 p.m. | OK | GNU C++17 | TESTS | 93 | 46 | 102400 | 2300 | |
65958682 | keko37 | C | Nov. 29, 2019, 1:50 p.m. | OK | GNU C++17 | TESTS | 93 | 46 | 102400 | 2300 | |
65553863 | Geothermal | C | Nov. 22, 2019, 8:15 p.m. | OK | GNU C++17 | TESTS | 93 | 46 | 102400 | 2300 | |
65402546 | ksun48 | C | Nov. 20, 2019, 12:02 a.m. | OK | GNU C++17 | TESTS | 93 | 46 | 102400 | 2300 | |
65379803 | LowR | C | Nov. 19, 2019, 4:03 p.m. | OK | GNU C++17 | TESTS | 93 | 46 | 204800 | 2300 | |
65372944 | _h_ | C | Nov. 19, 2019, 3:36 p.m. | OK | GNU C++17 | TESTS | 93 | 46 | 204800 | 2300 | |
65403341 | ltf0501 | C | Nov. 20, 2019, 12:56 a.m. | OK | GNU C++17 | TESTS | 93 | 46 | 204800 | 2300 | |
67672893 | popashka | C | Dec. 26, 2019, 9:52 p.m. | OK | GNU C++17 | TESTS | 93 | 46 | 204800 | 2300 | |
68882525 | Phortox | C | Jan. 15, 2020, 7:27 p.m. | OK | GNU C++17 | TESTS | 93 | 61 | 0 | 2300 | |
65504038 | icpc_loser | C | Nov. 21, 2019, 8:46 p.m. | OK | Java 8 | TESTS | 93 | 234 | 0 | 2300 | |
65392430 | DarLam | C | Nov. 19, 2019, 5:53 p.m. | OK | Java 8 | TESTS | 93 | 280 | 0 | 2300 | |
65384688 | iakovlev.zakhar | C | Nov. 19, 2019, 4:21 p.m. | OK | Java 8 | TESTS | 93 | 280 | 0 | 2300 | |
65386863 | AkshajK | C | Nov. 19, 2019, 4:28 p.m. | OK | Java 8 | TESTS | 93 | 296 | 0 | 2300 | |
65378547 | Harpae | C | Nov. 19, 2019, 3:59 p.m. | OK | Java 8 | TESTS | 93 | 296 | 0 | 2300 | |
67183897 | Xylenox | C | Dec. 19, 2019, 2:52 a.m. | OK | Java 8 | TESTS | 93 | 311 | 0 | 2300 | |
65395845 | barakraganosungam | C | Nov. 19, 2019, 7:03 p.m. | OK | Java 8 | TESTS | 93 | 327 | 0 | 2300 | |
65561228 | Sharon | C | Nov. 23, 2019, 3:01 a.m. | OK | Java 8 | TESTS | 93 | 327 | 0 | 2300 | |
65446039 | 142 | C | Nov. 20, 2019, 4:02 p.m. | OK | Java 8 | TESTS | 93 | 327 | 0 | 2300 | |
65388967 | jdurie | C | Nov. 19, 2019, 4:34 p.m. | OK | Java 8 | TESTS | 93 | 327 | 0 | 2300 | |
65401690 | Tlatoani | C | Nov. 19, 2019, 10:54 p.m. | OK | Kotlin | TESTS | 93 | 358 | 716800 | 2300 | |
65417839 | r57shell | C | Nov. 20, 2019, 7:42 a.m. | OK | MS C++ | TESTS | 93 | 61 | 0 | 2300 | |
65381991 | pichulia | C | Nov. 19, 2019, 4:11 p.m. | OK | MS C++ 2017 | TESTS | 93 | 62 | 0 | 2300 | |
65402734 | AlexanderL | C | Nov. 20, 2019, 12:15 a.m. | OK | MS C++ 2017 | TESTS | 93 | 62 | 307200 | 2300 | |
65388639 | neterukun | C | Nov. 19, 2019, 4:33 p.m. | OK | PyPy 3 | TESTS | 93 | 343 | 3379200 | 2300 | |
66541389 | Aita_Venkata_Rishmitha | C | Dec. 9, 2019, 11:38 a.m. | OK | Python 2 | TESTS | 93 | 265 | 307200 | 2300 | |
66488644 | bnaninaidu9949 | C | Dec. 8, 2019, 7:37 a.m. | OK | Python 2 | TESTS | 93 | 265 | 307200 | 2300 | |
65380787 | nwi | C | Nov. 19, 2019, 4:07 p.m. | OK | Python 2 | TESTS | 93 | 265 | 307200 | 2300 | |
66855236 | sritha | C | Dec. 14, 2019, 12:12 p.m. | OK | Python 3 | TESTS | 93 | 217 | 409600 | 2300 | |
66935439 | K.Samyukta | C | Dec. 15, 2019, 8:21 a.m. | OK | Python 3 | TESTS | 93 | 218 | 409600 | 2300 | |
65402575 | Kiri8128 | C | Nov. 20, 2019, 12:04 a.m. | OK | Python 3 | TESTS | 93 | 234 | 409600 | 2300 | |
65380490 | sansen | C | Nov. 19, 2019, 4:06 p.m. | OK | Rust | TESTS | 93 | 108 | 0 | 2300 |
Back to search problems