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 |
---|---|---|---|---|---|---|
1912 | 2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 29370299 | Dec. 13, 2023, 7:35 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1085 ) | B | Blueprint for Seating | PROGRAMMING | combinatorics divide and conquer fft math | 2000 |
B"An aircraft manufacturing company wants to optimize their products for passenger airlines. The company's latest research shows that most of the delays happen because of slow boarding. Most of the medium-sized aircraft are designed with 3-3 seat layout, meaning each row has 6 seats: 3 seats on the left side, a single aisle, and 3 seats on the right side. At each of the left and right sides there is a window seat, a middle seat, and an aisle seat. A passenger that boards an aircraft assigned to an aisle seat takes significantly less time than a passenger assigned to a window seat even when there is no one else in the aircraft. The company decided to compute an inconvenience of a layout as the total sum of distances from each of the seats of a single row to the closest aisle. The distance from a seat to an aisle is the number of seats between them. For a 3-3 layout, a window seat has a distance of 2, a middle seat -- 1, and an aisle seat -- 0. The inconvenience of a 3-3 layout is (2+1+0)+(0+1+2)=6 . The inconvenience of a 3-5-3 layout is (2+1+0)+(0+1+2+1+0)+(0+1+2)=10 . Formally, a layout is a sequence of positive integers a_1, a_2, ldots, a_{k+1} -- group i having a_i seats, with k aisles between groups, the i -th aisle being between groups i and i+1 . This means that in a layout each aisle must always be between two seats, so no aisle can be next to a window, and no two aisles can be next to each other. The company decided to design a layout with a row of n seats, k aisles and having the minimum inconvenience possible. Help them find the minimum inconvenience among all layouts of n seats and k aisles, and count the number of such layouts modulo 998 ,244 ,353 . The first line contains an integer t -- the number of test cases you need to solve ( 1 <= t <= 10^5 ). For each of the test cases, there is a single line containing n and k -- the number o"... |
Tutorials (PDF) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
237107250 | liuhengxi | B | Dec. 14, 2023, 12:18 a.m. | OK | GNU C++14 | TESTS | 46 | 124 | 1536000 | 2000 | |
236995476 | ieeMeowCon YunQian zhaohaikun | B | Dec. 13, 2023, 8:46 a.m. | OK | GNU C++14 | TESTS | 46 | 124 | 1638400 | 2000 | |
236998987 | Nyanya_ clfzs ljr1234 | B | Dec. 13, 2023, 9:06 a.m. | OK | GNU C++14 | TESTS | 46 | 124 | 3174400 | 2000 | |
237014035 | _Fake4Fun | B | Dec. 13, 2023, 10:28 a.m. | OK | GNU C++14 | TESTS | 46 | 139 | 819200 | 2000 | |
236995004 | paul2008 jucason_xu pp_orange | B | Dec. 13, 2023, 8:42 a.m. | OK | GNU C++14 | TESTS | 46 | 155 | 7987200 | 2000 | |
237030389 | KevinYao | B | Dec. 13, 2023, 11:42 a.m. | OK | GNU C++14 | TESTS | 46 | 156 | 819200 | 2000 | |
237114141 | surajcodeforce | B | Dec. 14, 2023, 3:29 a.m. | OK | GNU C++14 | TESTS | 46 | 171 | 1638400 | 2000 | |
236999861 | Survivor_winner superyijin CALLSIGN_NULL_ | B | Dec. 13, 2023, 9:13 a.m. | OK | GNU C++14 | TESTS | 46 | 171 | 3174400 | 2000 | |
237039376 | rensiyuan honey liqixian | B | Dec. 13, 2023, 12:20 p.m. | OK | GNU C++14 | TESTS | 46 | 171 | 15974400 | 2000 | |
237018053 | OIerGuge1030 3_CelL t0LJR1st | B | Dec. 13, 2023, 10:48 a.m. | OK | GNU C++14 | TESTS | 46 | 186 | 1638400 | 2000 | |
237121176 | pretodf | B | Dec. 14, 2023, 5:30 a.m. | OK | GNU C++17 | TESTS | 46 | 124 | 1638400 | 2000 | |
236990846 | dorijanlendvaj ppavic keko37 | B | Dec. 13, 2023, 8:23 a.m. | OK | GNU C++17 | TESTS | 46 | 139 | 1638400 | 2000 | |
237020786 | yyf_0404 | B | Dec. 13, 2023, 10:54 a.m. | OK | GNU C++17 | TESTS | 46 | 140 | 1228800 | 2000 | |
237121350 | pretodf | B | Dec. 14, 2023, 5:32 a.m. | OK | GNU C++17 | TESTS | 46 | 155 | 1638400 | 2000 | |
236995387 | Na2a SimB4 Temirulan | B | Dec. 13, 2023, 8:46 a.m. | OK | GNU C++17 | TESTS | 46 | 171 | 8294400 | 2000 | |
237110706 | PKFR4ever | B | Dec. 14, 2023, 2:10 a.m. | OK | GNU C++17 | TESTS | 46 | 234 | 32051200 | 2000 | |
236999035 | _Rise | B | Dec. 13, 2023, 9:06 a.m. | OK | GNU C++17 | TESTS | 46 | 560 | 16076800 | 2000 | |
237009368 | ShJ armoking limage | B | Dec. 13, 2023, 10 a.m. | OK | GNU C++17 | TESTS | 46 | 592 | 16076800 | 2000 | |
237006710 | pertifiedcobra shubhamgrg1000 Chimpanzee | B | Dec. 13, 2023, 9:51 a.m. | OK | GNU C++17 | TESTS | 46 | 654 | 16384000 | 2000 | |
237088106 | ashler66 | B | Dec. 13, 2023, 6:32 p.m. | OK | GNU C++17 | TESTS | 46 | 717 | 24064000 | 2000 | |
236996133 | cyb1010 LXH-cat cmk666 | B | Dec. 13, 2023, 8:52 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 77 | 819200 | 2000 | |
236996070 | jhdonghj112 | B | Dec. 13, 2023, 8:51 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 78 | 1843200 | 2000 | |
237002201 | arnold518 YeongTree Karuna | B | Dec. 13, 2023, 9:23 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 93 | 1638400 | 2000 | |
236998457 | Melacau bzzzz zzpcd | B | Dec. 13, 2023, 9:01 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 93 | 1638400 | 2000 | |
236996200 | wzc_IOI_czw | B | Dec. 13, 2023, 8:52 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 93 | 1638400 | 2000 | |
236994987 | painsacrifice locsey __chtholly__ | B | Dec. 13, 2023, 8:42 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 93 | 2457600 | 2000 | |
237004037 | fs20091003 | B | Dec. 13, 2023, 9:39 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 93 | 4812800 | 2000 | |
237008934 | Irmuun.Ch | B | Dec. 13, 2023, 9:57 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 109 | 16076800 | 2000 | |
237029192 | Tx_Lcy Mine_King Wmic. | B | Dec. 13, 2023, 11:32 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 124 | 1740800 | 2000 | |
236995000 | 244mhq 353cerega 998batrr | B | Dec. 13, 2023, 8:42 a.m. | OK | GNU C++17 (64) | TESTS | 46 | 124 | 24064000 | 2000 | |
237030864 | ub33 luckyanthonyan nella17 | B | Dec. 13, 2023, 11:45 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 62 | 1638400 | 2000 | |
237017087 | Apachee | B | Dec. 13, 2023, 10:39 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 62 | 2457600 | 2000 | |
237112675 | Angriliset | B | Dec. 14, 2023, 2:55 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 62 | 3174400 | 2000 | |
237016470 | inhibitor_81 AbhishekAnand rahulagr172018 | B | Dec. 13, 2023, 10:33 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 62 | 3174400 | 2000 | |
237091268 | ganeid | B | Dec. 13, 2023, 7:09 p.m. | OK | GNU C++20 (64) | TESTS | 46 | 62 | 3276800 | 2000 | |
237013336 | euoao | B | Dec. 13, 2023, 10:21 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 77 | 2150400 | 2000 | |
237021106 | LeXuanBeo | B | Dec. 13, 2023, 10:57 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 77 | 3174400 | 2000 | |
237008961 | Dola_ Hagry Gondozu | B | Dec. 13, 2023, 9:57 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 77 | 3174400 | 2000 | |
237030099 | yuki_keshiki cpchenpi | B | Dec. 13, 2023, 11:39 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 78 | 819200 | 2000 | |
236998486 | AI_COre | B | Dec. 13, 2023, 9:02 a.m. | OK | GNU C++20 (64) | TESTS | 46 | 78 | 1638400 | 2000 | |
237086192 | GR1ZLER | B | Dec. 13, 2023, 6:14 p.m. | OK | Java 11 | TESTS | 46 | 1060 | 716800 | 2000 | |
237009603 | yvbf | B | Dec. 13, 2023, 10:03 a.m. | OK | Java 8 | TESTS | 46 | 545 | 1331200 | 2000 | |
236993059 | arvindf232 | B | Dec. 13, 2023, 8:34 a.m. | OK | Kotlin 1.9 | TESTS | 46 | 2027 | 142438400 | 2000 | |
236995143 | huangxw | B | Dec. 13, 2023, 8:43 a.m. | OK | PyPy 3-64 | TESTS | 46 | 1716 | 23040000 | 2000 | |
237080928 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080715 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080634 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080622 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080614 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080595 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080572 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080532 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080495 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 | ||
237080457 | B | Dec. 13, 2023, 5:25 p.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2000 |
Back to search problems