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 |
---|---|---|---|---|---|---|
1188 | Codeforces Round 572 (Div. 1) | FINISHED | False | 7200 | 169484099 | July 5, 2019, 3:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 237 ) | E | Problem from Red Panda | PROGRAMMING | combinatorics | 3200 |
B"At Moscow Workshops ICPC team gets a balloon for each problem they solved first. Team MSU Red Panda got so many balloons that they didn't know how to spend them. So they came up with a problem with them. There are several balloons, not more than 10^6 in total, each one is colored in one of k colors. We can perform the following operation: choose k-1 balloons such that they are of k-1 different colors, and recolor them all into remaining color. We can perform this operation any finite number of times (for example, we can only perform the operation if there are at least k-1 different colors among current balls). How many different balloon configurations can we get? Only number of balloons of each color matters, configurations differing only by the order of balloons are counted as equal. As this number can be very large, output it modulo 998244353 . The first line contains a single integer k ( 2 <= k <= 10^5 ) --the number of colors. The second line contains k integers a_1, a_2, ldots, a_k ( 0 <= a_i ) --initial configuration of balloons. a_i is number of balloons of color i . The total number of balloons doesn't exceed 10^6 . In other words, a_1 + a_2 + a_3 + ldots + a_k <= 10^6 . Output number of possible configurations modulo 998244353 . In the first example, there are 3 configurations we can get: [0, 1, 2] , [2, 0, 1] , [1, 2, 0] . In the second example, we can apply the operation not more than once, and possible configurations are: [1, 1, 1, 1] , [0, 0, 0, 4] , [0, 0, 4, 0] , [0, 4, 0, 0] , [4, 0, 0, 0] . In the third example, we can't apply any operations, so the only achievable configuration is the starting one. "... |
Editorial of Codeforces Round #572 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
56584734 | hos.lyric | E | July 5, 2019, 4:30 p.m. | OK | D | TESTS | 57 | 311 | 118169600 | 3200 | |
61271759 | C20193515_LYX | E | Sept. 25, 2019, 2:15 p.m. | OK | GNU C++11 | TESTS | 57 | 46 | 16281600 | 3200 | |
64908969 | duality | E | Nov. 15, 2019, 1:22 a.m. | OK | GNU C++11 | TESTS | 57 | 61 | 8806400 | 3200 | |
57486097 | Hazyknight | E | July 22, 2019, 5:23 a.m. | OK | GNU C++11 | TESTS | 57 | 61 | 26419200 | 3200 | |
57451618 | yyf0309 | E | July 21, 2019, 9:56 a.m. | OK | GNU C++11 | TESTS | 57 | 62 | 16793600 | 3200 | |
56642394 | mmmod_lqs | E | July 7, 2019, 3:09 a.m. | OK | GNU C++11 | TESTS | 57 | 62 | 22835200 | 3200 | |
57744223 | luogu_bot1 | E | July 25, 2019, 12:27 p.m. | OK | GNU C++11 | TESTS | 57 | 77 | 48128000 | 3200 | |
58108855 | HIR180 | E | Aug. 1, 2019, 6:04 a.m. | OK | GNU C++11 | TESTS | 57 | 78 | 20889600 | 3200 | |
62105842 | cuizhuyefei | E | Oct. 8, 2019, 10:44 a.m. | OK | GNU C++11 | TESTS | 57 | 78 | 32051200 | 3200 | |
68034954 | luogu_bot3 | E | Jan. 1, 2020, 11:30 a.m. | OK | GNU C++11 | TESTS | 57 | 78 | 40038400 | 3200 | |
57742156 | memset0c | E | July 25, 2019, 11:47 a.m. | OK | GNU C++11 | TESTS | 57 | 78 | 48128000 | 3200 | |
58873463 | yan-zp | E | Aug. 15, 2019, 4:33 p.m. | OK | GNU C++14 | TESTS | 57 | 46 | 6041600 | 3200 | |
59426357 | cz_xuyixuan | E | Aug. 25, 2019, 2:51 a.m. | OK | GNU C++14 | TESTS | 57 | 46 | 40038400 | 3200 | |
56856314 | erogame | E | July 11, 2019, 6:38 p.m. | OK | GNU C++14 | TESTS | 57 | 62 | 8396800 | 3200 | |
56616226 | krijgertje | E | July 6, 2019, 9:46 a.m. | OK | GNU C++14 | TESTS | 57 | 77 | 12800000 | 3200 | |
56589474 | ugly2333 | E | July 5, 2019, 4:58 p.m. | OK | GNU C++14 | TESTS | 57 | 77 | 17100800 | 3200 | |
59426322 | cz_xuyixuan | E | Aug. 25, 2019, 2:49 a.m. | OK | GNU C++14 | TESTS | 57 | 78 | 40038400 | 3200 | |
57742565 | cruel_world | E | July 25, 2019, 11:55 a.m. | OK | GNU C++14 | TESTS | 57 | 78 | 48128000 | 3200 | |
59933052 | mayaohua2003 | E | Sept. 3, 2019, 8:13 a.m. | OK | GNU C++14 | TESTS | 57 | 93 | 22016000 | 3200 | |
56689747 | BSBandme | E | July 8, 2019, 2:49 a.m. | OK | GNU C++14 | TESTS | 57 | 109 | 27340800 | 3200 | |
56603070 | MiFaFaOvO | E | July 6, 2019, 2:22 a.m. | OK | GNU C++14 | TESTS | 57 | 109 | 32358400 | 3200 | |
58155519 | CMXRYNP | E | Aug. 2, 2019, 5:25 a.m. | OK | GNU C++17 | TESTS | 57 | 61 | 9216000 | 3200 | |
56632815 | Shayan.P | E | July 6, 2019, 5:29 p.m. | OK | GNU C++17 | TESTS | 57 | 62 | 16076800 | 3200 | |
61329470 | hjk1030 | E | Sept. 26, 2019, 2:35 p.m. | OK | GNU C++17 | TESTS | 57 | 62 | 17203200 | 3200 | |
64151270 | Tneluccus | E | Nov. 3, 2019, 11:28 a.m. | OK | GNU C++17 | TESTS | 57 | 77 | 17612800 | 3200 | |
58152019 | RNS_CUS | E | Aug. 2, 2019, 3:10 a.m. | OK | GNU C++17 | TESTS | 57 | 78 | 20070400 | 3200 | |
58877623 | voidmax | E | Aug. 15, 2019, 6:47 p.m. | OK | GNU C++17 | TESTS | 57 | 78 | 32460800 | 3200 | |
56629570 | 89264270823 | E | July 6, 2019, 3:34 p.m. | OK | GNU C++17 | TESTS | 57 | 78 | 48947200 | 3200 | |
56608809 | maroonrk | E | July 6, 2019, 6:17 a.m. | OK | GNU C++17 | TESTS | 57 | 93 | 26009600 | 3200 | |
62408437 | disposrestfuIly | E | Oct. 12, 2019, 9:41 a.m. | OK | GNU C++17 | TESTS | 57 | 93 | 48537600 | 3200 | |
56582671 | Um_nik | E | July 5, 2019, 4:18 p.m. | OK | GNU C++17 | TESTS | 57 | 124 | 48128000 | 3200 | |
56603080 | Dukkha | E | July 6, 2019, 2:23 a.m. | OK | Java 8 | TESTS | 57 | 577 | 75571200 | 3200 | |
56604584 | Dukkha | E | July 6, 2019, 3:29 a.m. | OK | Java 8 | TESTS | 57 | 607 | 79257600 | 3200 |
Back to search problems