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 |
---|---|---|---|---|---|---|
1163 | Codeforces Round 558 (Div. 2) | FINISHED | False | 7200 | 174408899 | May 9, 2019, 3:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3677 ) | C2 | Power Transmission (Hard Edition) | PROGRAMMING | data structures geometry implementation math | 2000 |
B'This problem is same as the previous one, but has larger constraints. It was a Sunday morning when the three friends Selena, Shiro and Katie decided to have a trip to the nearby power station (do not try this at home). After arriving at the power station, the cats got impressed with a large power transmission system consisting of many chimneys, electric poles, and wires. Since they are cats, they found those things gigantic. At the entrance of the station, there is a map describing the complicated wiring system. Selena is the best at math among three friends. He decided to draw the map on the Cartesian plane. Each pole is now a point at some coordinates (x_i, y_i) . Since every pole is different, all of the points representing these poles are distinct. Also, every two poles are connected with each other by wires. A wire is a straight line on the plane infinite in both directions. If there are more than two poles lying on the same line, they are connected by a single common wire. Selena thinks, that whenever two different electric wires intersect, they may interfere with each other and cause damage. So he wonders, how many pairs are intersecting? Could you help him with this problem? The first line contains a single integer n ( 2 <= n <= 1000 ) -- the number of electric poles. Each of the following n lines contains two integers x_i , y_i ( -10^4 <= x_i, y_i <= 10^4 ) -- the coordinates of the poles. It is guaranteed that all of these n points are distinct. Print a single integer -- the number of pairs of wires that are intersecting. In the first example: In the second example: Note that the three poles (0, 0) , (0, 2) and (0, 4) are connected by a single wire. In the third example: '... |
66943 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
53950865 | yshui | C2 | May 10, 2019, 9:27 a.m. | OK | D | TESTS | 62 | 654 | 123904000 | 2000 | |
54020829 | Denor | C2 | May 12, 2019, 9:37 a.m. | OK | Delphi | TESTS | 62 | 124 | 32051200 | 2000 | |
53985808 | Denor | C2 | May 11, 2019, 9:38 a.m. | OK | Delphi | TESTS | 62 | 124 | 32051200 | 2000 | |
53961578 | ruban | C2 | May 10, 2019, 2:31 p.m. | OK | Delphi | TESTS | 62 | 499 | 181760000 | 2000 | |
55686476 | rainboy | C2 | June 17, 2019, 3:45 p.m. | OK | GNU C11 | TESTS | 62 | 186 | 7987200 | 2000 | |
53933610 | about | C2 | May 9, 2019, 7:59 p.m. | OK | GNU C11 | TESTS | 62 | 327 | 22323200 | 2000 | |
55610902 | ReaLNero1 | C2 | June 16, 2019, 5:39 a.m. | OK | GNU C++11 | TESTS | 62 | 77 | 12492800 | 2000 | |
53926783 | GabiTulba | C2 | May 9, 2019, 4:42 p.m. | OK | GNU C++11 | TESTS | 62 | 77 | 14745600 | 2000 | |
64628002 | vectormap | C2 | Nov. 10, 2019, 9:11 a.m. | OK | GNU C++11 | TESTS | 62 | 77 | 16179200 | 2000 | |
53941726 | XMU_CXx | C2 | May 10, 2019, 3:35 a.m. | OK | GNU C++11 | TESTS | 62 | 78 | 8192000 | 2000 | |
53941822 | lyh | C2 | May 10, 2019, 3:40 a.m. | OK | GNU C++11 | TESTS | 62 | 78 | 8192000 | 2000 | |
53918744 | masterlxy | C2 | May 9, 2019, 3:51 p.m. | OK | GNU C++11 | TESTS | 62 | 78 | 12492800 | 2000 | |
54059971 | Ark_ | C2 | May 13, 2019, 10:40 a.m. | OK | GNU C++11 | TESTS | 62 | 78 | 16076800 | 2000 | |
53940615 | CQUzbx | C2 | May 10, 2019, 2:42 a.m. | OK | GNU C++11 | TESTS | 62 | 78 | 16179200 | 2000 | |
53950391 | ddytxdy | C2 | May 10, 2019, 9:13 a.m. | OK | GNU C++11 | TESTS | 62 | 78 | 20480000 | 2000 | |
66038391 | Sodaine | C2 | Nov. 30, 2019, 12:38 p.m. | OK | GNU C++11 | TESTS | 62 | 93 | 10240000 | 2000 | |
55833731 | tanmay2625 | C2 | June 20, 2019, 2:21 p.m. | OK | GNU C++14 | TESTS | 62 | 78 | 6348800 | 2000 | |
56543204 | loc12345 | C2 | July 5, 2019, 6:24 a.m. | OK | GNU C++14 | TESTS | 62 | 78 | 12800000 | 2000 | |
53958134 | xyq0220 | C2 | May 10, 2019, 12:49 p.m. | OK | GNU C++14 | TESTS | 62 | 78 | 14745600 | 2000 | |
59849926 | janurban | C2 | Sept. 1, 2019, 11:04 a.m. | OK | GNU C++14 | TESTS | 62 | 78 | 14745600 | 2000 | |
56396844 | ataekOnOrigin | C2 | July 1, 2019, 2:59 p.m. | OK | GNU C++14 | TESTS | 62 | 78 | 16076800 | 2000 | |
53946919 | marios.avraamides | C2 | May 10, 2019, 7:16 a.m. | OK | GNU C++14 | TESTS | 62 | 93 | 12697600 | 2000 | |
53937065 | espr1t | C2 | May 9, 2019, 10:43 p.m. | OK | GNU C++14 | TESTS | 62 | 93 | 13209600 | 2000 | |
53933735 | ramisa.alam | C2 | May 9, 2019, 8:03 p.m. | OK | GNU C++14 | TESTS | 62 | 93 | 14950400 | 2000 | |
54406049 | alpha_q2 | C2 | May 20, 2019, 6:21 a.m. | OK | GNU C++14 | TESTS | 62 | 93 | 15974400 | 2000 | |
53936241 | shusuke_fuji | C2 | May 9, 2019, 9:59 p.m. | OK | GNU C++14 | TESTS | 62 | 93 | 21094400 | 2000 | |
53924916 | lugo | C2 | May 9, 2019, 4:30 p.m. | OK | GNU C++17 | TESTS | 62 | 78 | 13209600 | 2000 | |
54025594 | sys. | C2 | May 12, 2019, 12:23 p.m. | OK | GNU C++17 | TESTS | 62 | 78 | 20377600 | 2000 | |
61762074 | 3015218054 | C2 | Oct. 3, 2019, 7:25 a.m. | OK | GNU C++17 | TESTS | 62 | 78 | 32051200 | 2000 | |
53922653 | one1one1 | C2 | May 9, 2019, 4:15 p.m. | OK | GNU C++17 | TESTS | 62 | 78 | 36044800 | 2000 | |
53923837 | mr.stefan | C2 | May 9, 2019, 4:23 p.m. | OK | GNU C++17 | TESTS | 62 | 93 | 9318400 | 2000 | |
54072754 | coffee_machine | C2 | May 13, 2019, 5:25 p.m. | OK | GNU C++17 | TESTS | 62 | 93 | 12800000 | 2000 | |
54175317 | kvutxdy | C2 | May 15, 2019, 1:39 p.m. | OK | GNU C++17 | TESTS | 62 | 93 | 12800000 | 2000 | |
58409593 | The_Crazy_Engineer | C2 | Aug. 7, 2019, 12:34 a.m. | OK | GNU C++17 | TESTS | 62 | 93 | 13209600 | 2000 | |
58397961 | The_Crazy_Engineer | C2 | Aug. 6, 2019, 4:26 p.m. | OK | GNU C++17 | TESTS | 62 | 93 | 13209600 | 2000 | |
54086025 | Umalaka | C2 | May 14, 2019, 7:26 a.m. | OK | GNU C++17 | TESTS | 62 | 93 | 16281600 | 2000 | |
60731953 | sighduck | C2 | Sept. 17, 2019, 4:02 p.m. | OK | Go | TESTS | 62 | 607 | 122470400 | 2000 | |
53953726 | Lancern | C2 | May 10, 2019, 10:54 a.m. | OK | Go | TESTS | 62 | 2745 | 49868800 | 2000 | |
64679249 | IslamTalipovTop | C2 | Nov. 11, 2019, 9:19 a.m. | OK | Java 11 | TESTS | 62 | 2510 | 79360000 | 2000 | |
53951435 | scorzh | C2 | May 10, 2019, 9:43 a.m. | OK | Java 8 | TESTS | 62 | 405 | 11059200 | 2000 | |
55686477 | Dukkha | C2 | June 17, 2019, 3:45 p.m. | OK | Java 8 | TESTS | 62 | 405 | 16486400 | 2000 | |
58137036 | MubtasimShahriar | C2 | Aug. 1, 2019, 4:32 p.m. | OK | Java 8 | TESTS | 62 | 421 | 10956800 | 2000 | |
53929748 | akshat_21 | C2 | May 9, 2019, 5:01 p.m. | OK | Java 8 | TESTS | 62 | 451 | 22425600 | 2000 | |
53931478 | 4mda4mda | C2 | May 9, 2019, 6:03 p.m. | OK | Java 8 | TESTS | 62 | 685 | 36352000 | 2000 | |
53970523 | wadissimo | C2 | May 10, 2019, 8:39 p.m. | OK | Java 8 | TESTS | 62 | 686 | 89497600 | 2000 | |
56667844 | nagabhushan | C2 | July 7, 2019, 11:45 a.m. | OK | Java 8 | TESTS | 62 | 701 | 58572800 | 2000 | |
58384350 | Hamza_Hassan | C2 | Aug. 6, 2019, 11:19 a.m. | OK | Java 8 | TESTS | 62 | 716 | 39014400 | 2000 | |
56667604 | nagabhushan | C2 | July 7, 2019, 11:38 a.m. | OK | Java 8 | TESTS | 62 | 732 | 58675200 | 2000 | |
56668004 | nagabhushan | C2 | July 7, 2019, 11:49 a.m. | OK | Java 8 | TESTS | 62 | 764 | 58777600 | 2000 | |
59697466 | Spheniscine | C2 | Aug. 30, 2019, 9:10 a.m. | OK | Kotlin | TESTS | 62 | 1216 | 123084800 | 2000 | |
59837722 | Spheniscine | C2 | Sept. 1, 2019, 5:28 a.m. | OK | Kotlin | TESTS | 62 | 1231 | 122368000 | 2000 | |
53965502 | omikad | C2 | May 10, 2019, 4:42 p.m. | OK | Mono C# | TESTS | 62 | 514 | 98918400 | 2000 | |
53930781 | mircea85 | C2 | May 9, 2019, 5:47 p.m. | OK | Mono C# | TESTS | 62 | 608 | 38912000 | 2000 | |
54413960 | TrabajoNocturno | C2 | May 20, 2019, 11:34 a.m. | OK | Mono C# | TESTS | 62 | 623 | 142745600 | 2000 | |
53930948 | mircea85 | C2 | May 9, 2019, 5:48 p.m. | OK | Mono C# | TESTS | 62 | 639 | 38912000 | 2000 | |
53934690 | sergmel | C2 | May 9, 2019, 8:44 p.m. | OK | Mono C# | TESTS | 62 | 764 | 70758400 | 2000 | |
54272407 | gaozqxin | C2 | May 17, 2019, 9:25 a.m. | OK | Mono C# | TESTS | 62 | 920 | 67891200 | 2000 | |
54174468 | eki | C2 | May 15, 2019, 1:10 p.m. | OK | Mono C# | TESTS | 62 | 1185 | 98816000 | 2000 | |
53992349 | vjudge2 | C2 | May 11, 2019, 12:53 p.m. | OK | MS C++ | TESTS | 62 | 312 | 16076800 | 2000 | |
54009645 | Gleb_Dubosarskii | C2 | May 12, 2019, 12:28 a.m. | OK | MS C++ | TESTS | 62 | 639 | 56115200 | 2000 | |
53928741 | Birdy_C | C2 | May 9, 2019, 4:55 p.m. | OK | MS C++ 2017 | TESTS | 62 | 405 | 52121600 | 2000 | |
55598440 | ItsNikolor | C2 | June 15, 2019, 4:33 p.m. | OK | MS C++ 2017 | TESTS | 62 | 436 | 20172800 | 2000 | |
53966508 | CtrlAlt | C2 | May 10, 2019, 5:25 p.m. | OK | MS C++ 2017 | TESTS | 62 | 529 | 36147200 | 2000 | |
54002576 | codeshaker | C2 | May 11, 2019, 5:23 p.m. | OK | MS C++ 2017 | TESTS | 62 | 561 | 52121600 | 2000 | |
53951638 | Extraordinary_ | C2 | May 10, 2019, 9:49 a.m. | OK | MS C++ 2017 | TESTS | 62 | 577 | 40038400 | 2000 | |
53988466 | st1vdy | C2 | May 11, 2019, 11:03 a.m. | OK | MS C++ 2017 | TESTS | 62 | 638 | 56012800 | 2000 | |
53961705 | minhminh69 | C2 | May 10, 2019, 2:35 p.m. | OK | MS C++ 2017 | TESTS | 62 | 670 | 52019200 | 2000 | |
54025849 | R99 | C2 | May 12, 2019, 12:31 p.m. | OK | MS C++ 2017 | TESTS | 62 | 670 | 56012800 | 2000 | |
53917339 | ialakhtin | C2 | May 9, 2019, 3:43 p.m. | OK | MS C++ 2017 | TESTS | 62 | 701 | 20070400 | 2000 | |
54993125 | Atlasmoth | C2 | June 2, 2019, 8:23 p.m. | OK | MS C++ 2017 | TESTS | 62 | 748 | 19968000 | 2000 | |
53967165 | old_boo | C2 | May 10, 2019, 5:52 p.m. | OK | Node.js | TESTS | 62 | 1326 | 88576000 | 2000 | |
53931716 | pajenegod | C2 | May 9, 2019, 6:15 p.m. | OK | PyPy 2 | TESTS | 62 | 780 | 123187200 | 2000 | |
56031115 | bcollet | C2 | June 25, 2019, 9:35 a.m. | OK | PyPy 2 | TESTS | 62 | 826 | 123699200 | 2000 | |
53977105 | cherry_su | C2 | May 11, 2019, 4:59 a.m. | OK | PyPy 2 | TESTS | 62 | 904 | 120012800 | 2000 | |
54526009 | raj1307 | C2 | May 23, 2019, 2:32 p.m. | OK | PyPy 2 | TESTS | 62 | 920 | 60825600 | 2000 | |
53943467 | allonsy_kim | C2 | May 10, 2019, 4:59 a.m. | OK | PyPy 2 | TESTS | 62 | 1060 | 78950400 | 2000 | |
54023599 | shehebe | C2 | May 12, 2019, 11:14 a.m. | OK | PyPy 2 | TESTS | 62 | 1123 | 78438400 | 2000 | |
53918182 | Jonte_98 | C2 | May 9, 2019, 3:48 p.m. | OK | PyPy 2 | TESTS | 62 | 1154 | 96665600 | 2000 | |
55391357 | shafwanur010 | C2 | June 10, 2019, 9:53 a.m. | OK | PyPy 2 | TESTS | 62 | 1169 | 133427200 | 2000 | |
53926248 | c1729 | C2 | May 9, 2019, 4:39 p.m. | OK | PyPy 2 | TESTS | 62 | 1201 | 135577600 | 2000 | |
53931913 | ManasG | C2 | May 9, 2019, 6:26 p.m. | OK | PyPy 2 | TESTS | 62 | 1247 | 137318400 | 2000 | |
53970256 | pajenegod | C2 | May 10, 2019, 8:26 p.m. | OK | PyPy 3 | TESTS | 62 | 841 | 119193600 | 2000 | |
55880910 | nexus.chebykin | C2 | June 21, 2019, 5:21 p.m. | OK | PyPy 3 | TESTS | 62 | 935 | 97075200 | 2000 | |
53916393 | artifexbm | C2 | May 9, 2019, 3:38 p.m. | OK | PyPy 3 | TESTS | 62 | 982 | 150118400 | 2000 | |
55879940 | nexus.chebykin | C2 | June 21, 2019, 5:18 p.m. | OK | PyPy 3 | TESTS | 62 | 998 | 108441600 | 2000 | |
53929266 | Pedantic | C2 | May 9, 2019, 4:58 p.m. | OK | PyPy 3 | TESTS | 62 | 1044 | 114278400 | 2000 | |
53953477 | sanvi_kiit | C2 | May 10, 2019, 10:47 a.m. | OK | PyPy 3 | TESTS | 62 | 1045 | 94822400 | 2000 | |
65825695 | SMMaster | C2 | Nov. 27, 2019, 12:27 p.m. | OK | PyPy 3 | TESTS | 62 | 1122 | 124108800 | 2000 | |
54000232 | dandersonw | C2 | May 11, 2019, 4:11 p.m. | OK | PyPy 3 | TESTS | 62 | 1185 | 108339200 | 2000 | |
53962147 | Lisanaaa | C2 | May 10, 2019, 2:47 p.m. | OK | PyPy 3 | TESTS | 62 | 1216 | 77516800 | 2000 | |
53952263 | drd93 | C2 | May 10, 2019, 10:10 a.m. | OK | PyPy 3 | TESTS | 62 | 1310 | 101785600 | 2000 | |
53945459 | supachai_pay | C2 | May 10, 2019, 6:23 a.m. | OK | Python 2 | TESTS | 62 | 1621 | 84377600 | 2000 | |
53944165 | pa.n.ik | C2 | May 10, 2019, 5:30 a.m. | OK | Python 2 | TESTS | 62 | 2245 | 94105600 | 2000 | |
54414603 | vjudge1 | C2 | May 20, 2019, 11:52 a.m. | OK | Python 3 | TESTS | 62 | 1107 | 25497600 | 2000 | |
54414532 | vjudge3 | C2 | May 20, 2019, 11:50 a.m. | OK | Python 3 | TESTS | 62 | 1122 | 25497600 | 2000 | |
54704512 | Billyshuai | C2 | May 27, 2019, 3:49 a.m. | OK | Python 3 | TESTS | 62 | 1138 | 25497600 | 2000 | |
54025135 | ulyss | C2 | May 12, 2019, 12:07 p.m. | OK | Python 3 | TESTS | 62 | 1200 | 98099200 | 2000 | |
60213783 | tushartyagi8750 | C2 | Sept. 7, 2019, 11:05 a.m. | OK | Python 3 | TESTS | 62 | 1216 | 97894400 | 2000 | |
53937299 | Darshit_99 | C2 | May 9, 2019, 10:57 p.m. | OK | Python 3 | TESTS | 62 | 1232 | 97996800 | 2000 | |
53996104 | arti.orlov | C2 | May 11, 2019, 2:42 p.m. | OK | Python 3 | TESTS | 62 | 1310 | 64512000 | 2000 | |
55635339 | sdhd | C2 | June 16, 2019, 10:44 a.m. | OK | Python 3 | TESTS | 62 | 1325 | 64512000 | 2000 | |
54025317 | the_white_devil | C2 | May 12, 2019, 12:14 p.m. | OK | Python 3 | TESTS | 62 | 1326 | 120115200 | 2000 | |
53957090 | coproizvedenie | C2 | May 10, 2019, 12:22 p.m. | OK | Python 3 | TESTS | 62 | 1590 | 111513600 | 2000 | |
53953482 | old_boo | C2 | May 10, 2019, 10:47 a.m. | OK | Ruby | TESTS | 62 | 1777 | 109260800 | 2000 | |
59192478 | sansen | C2 | Aug. 20, 2019, 10:24 p.m. | OK | Rust | TESTS | 62 | 499 | 73625600 | 2000 | |
53924736 | yakamoto | C2 | May 9, 2019, 4:29 p.m. | OK | Scala | TESTS | 62 | 1294 | 67379200 | 2000 |
Back to search problems