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 |
---|---|---|---|---|---|---|
1662 | SWERC 2021-2022 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 86381663 | April 24, 2022, 11:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 805 ) | N | Drone Photo | PROGRAMMING | math sortings |
B'Today, like every year at SWERC, the n^2 contestants have gathered outside the venue to take a drone photo. Jennifer, the social media manager for the event, has arranged them into an n x n square. Being very good at her job, she knows that the contestant standing on the intersection of the i -th row with the j -th column is a_{i,j} years old. Coincidentally, she notices that no two contestants have the same age, and that everyone is between 1 and n^2 years old. Jennifer is planning to have some contestants hold a banner with the ICPC logo parallel to the ground, so that it is clearly visible in the aerial picture. Here are the steps that she is going to follow in order to take the perfect SWERC drone photo. Being very indecisive, Jennifer would like to try out all possible arrangements for the banner, but she is worried that this may cause the contestants to be late for the competition. How many different ways are there to choose the four contestants holding the poles in order to take a perfect photo? Two choices are considered different if at least one contestant is included in one but not the other. The first line contains a single integer n ( 2 <= n <= 1500 ). The next n lines describe the ages of the contestants. Specifically, the i -th line contains the integers a_{i,1},a_{i,2}, ldots,a_{i,n} ( 1 <= a_{i,j} <= n^2 ). It is guaranteed that a_{i,j} neq a_{k,l} if i neq k or j neq l . Print the number of ways for Jennifer to choose the four contestants holding the poles. In the first sample, there are 4 contestants, arranged as follows. There is only one way to choose four contestants, with one pole held by contestants aged 1 and 2 and the other one by contestants aged 3 and 4 . But then, as we can see in the picture, the poles cross. Since there is no valid way to choose four contestants, the answer is 0 . In the second sampl'... |
102042 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
154851454 | djq_cpp hehezhou MiracleFaFa | N | April 24, 2022, 12:40 p.m. | OK | GNU C++14 | TESTS | 12 | 545 | 45260800 | ||
154846584 | YMlx WGYHMFkZyA02 wheneveright | N | April 24, 2022, 11:56 a.m. | OK | GNU C++14 | TESTS | 12 | 577 | 47308800 | ||
154865455 | Potassium | N | April 24, 2022, 3:02 p.m. | OK | GNU C++14 | TESTS | 12 | 655 | 28364800 | ||
154862974 | lucifer1004 Milesian liouzhou_101 | N | April 24, 2022, 2:35 p.m. | OK | GNU C++14 | TESTS | 12 | 826 | 165990400 | ||
154878438 | zihouzhong | N | April 24, 2022, 5:35 p.m. | OK | GNU C++14 | TESTS | 12 | 1356 | 54784000 | ||
154860867 | lucifer1004 Milesian liouzhou_101 | N | April 24, 2022, 2:11 p.m. | OK | GNU C++14 | TESTS | 12 | 1419 | 165990400 | ||
154849814 | Merkurev KAN Um_nik | N | April 24, 2022, 12:24 p.m. | OK | GNU C++17 | TESTS | 12 | 546 | 18227200 | ||
154892990 | Aging1986 | N | April 24, 2022, 9:59 p.m. | OK | GNU C++17 | TESTS | 12 | 576 | 18022400 | ||
154858806 | Golovanov399 amethyst0 AndreySergunin | N | April 24, 2022, 1:51 p.m. | OK | GNU C++17 | TESTS | 12 | 577 | 18329600 | ||
154885830 | _LeMur_ | N | April 24, 2022, 7:39 p.m. | OK | GNU C++17 | TESTS | 12 | 577 | 27238400 | ||
154863731 | hloya_ygrt Mediocrity PuRpLe_FoReVeR | N | April 24, 2022, 2:43 p.m. | OK | GNU C++17 | TESTS | 12 | 592 | 18636800 | ||
154850104 | BilyHurington gzchenben zhouziheng | N | April 24, 2022, 12:27 p.m. | OK | GNU C++17 | TESTS | 12 | 608 | 60108800 | ||
154891383 | paula | N | April 24, 2022, 9:25 p.m. | OK | GNU C++17 | TESTS | 12 | 623 | 28364800 | ||
154850707 | Hanriver qzhwlzy rsj | N | April 24, 2022, 12:33 p.m. | OK | GNU C++17 | TESTS | 12 | 686 | 72396800 | ||
154864152 | mango_lassi please_delete_account YaoBIG | N | April 24, 2022, 2:47 p.m. | OK | GNU C++17 | TESTS | 12 | 811 | 27545600 | ||
154857397 | hieplpvip ta4p _SS | N | April 24, 2022, 1:38 p.m. | OK | GNU C++17 | TESTS | 12 | 904 | 45670400 | ||
154859036 | zhangguangxuan99 nvmdava Maripium | N | April 24, 2022, 1:53 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 358 | 18022400 | ||
154851205 | gs18115 Retro3014 Gom | N | April 24, 2022, 12:37 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 358 | 27136000 | ||
154853026 | kostia244 KostasKostil VladProg | N | April 24, 2022, 12:55 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 389 | 36556800 | ||
154881470 | Egor.Lifar cookiedoth rqi | N | April 24, 2022, 6:22 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 545 | 27238400 | ||
154864046 | gisp_zjz Roundgod | N | April 24, 2022, 2:47 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 1528 | 27238400 | ||
154858044 | Endagorion | N | April 24, 2022, 1:44 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 295 | 18022400 | ||
154855050 | khuepr123 thenymphsofdelphi HollwoQ_Pelw | N | April 24, 2022, 1:15 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 295 | 27238400 | ||
154860146 | fmota tfg WeakestTopology | N | April 24, 2022, 2:04 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 296 | 18022400 | ||
154849426 | tourist ksun48 | N | April 24, 2022, 12:21 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 296 | 18022400 | ||
154865668 | AriaH Koosha_Mv | N | April 24, 2022, 3:04 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 311 | 27443200 | ||
154861856 | Heltion | N | April 24, 2022, 2:22 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 327 | 27545600 | ||
154889181 | Kotoblepass | N | April 24, 2022, 8:41 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 327 | 36044800 | ||
154889087 | Kotoblepass | N | April 24, 2022, 8:40 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 327 | 36044800 | ||
154851651 | jiangly | N | April 24, 2022, 12:42 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 342 | 37068800 | ||
154887849 | Kotoblepass | N | April 24, 2022, 8:18 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 342 | 54067200 | ||
154906892 | Gilwall conqueror_of_tourist | N | April 25, 2022, 5:46 a.m. | OK | PyPy 3-64 | TESTS | 12 | 1653 | 72294400 |
Back to search problems