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 |
---|---|---|---|---|---|---|
1227 | Technocup 2020 - Elimination Round 3 | FINISHED | False | 7200 | 157240499 | Nov. 24, 2019, 8:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1529 ) | F2 | Wrong Answer on test 233 (Hard Version) | PROGRAMMING | combinatorics math | 2400 |
B"This is the harder version of the problem. In this version, 1 <= n <= 2 cdot10^5 . You can hack this problem if you locked it. But you can hack the previous problem only if you locked both problems. The problem is to finish n one-choice-questions. Each of the questions contains k options, and only one of them is correct. The answer to the i -th question is h_{i} , and if your answer of the question i is h_{i} , you earn 1 point, otherwise, you earn 0 points for this question. The values h_1, h_2, ... , h_n are known to you in this problem. However, you have a mistake in your program. It moves the answer clockwise! Consider all the n answers are written in a circle. Due to the mistake in your program, they are shifted by one cyclically. Formally, the mistake moves the answer for the question i to the question i bmod n + 1 . So it moves the answer for the question 1 to question 2 , the answer for the question 2 to the question 3 , ..., the answer for the question n to the question 1 . We call all the n answers together an answer suit. There are k^n possible answer suits in total. You're wondering, how many answer suits satisfy the following condition: after moving clockwise by 1 , the total number of points of the new answer suit is strictly larger than the number of points of the old one. You need to find the answer modulo 998 ,244 ,353 . For example, if n = 5 , and your answer suit is a=[1,2,3,4,5] , it will submitted as a'=[5,1,2,3,4] because of a mistake. If the correct answer suit is h=[5,2,2,3,4] , the answer suit a earns 1 point and the answer suite a' earns 4 points. Since 4 > 1 , the answer suit a=[1,2,3,4,5] should be counted. The first line contains two integers n , k ( 1 <= n <= 2 cdot10^5 , 1 <= k <= 10^9 ) -- the number of questions a"... |
Разбор задач №2 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
65698709 | pufanyi | F2 | Nov. 25, 2019, 9:41 a.m. | OK | GNU C++11 | TESTS | 22 | 46 | 3481600 | 2400 | |
69162516 | yasugongshang | F2 | Jan. 20, 2020, 1:18 a.m. | OK | GNU C++11 | TESTS | 22 | 46 | 5632000 | 2400 | |
69455708 | wasa855 | F2 | Jan. 24, 2020, 8:32 a.m. | OK | GNU C++11 | TESTS | 22 | 61 | 4812800 | 2400 | |
65729986 | Dancepted | F2 | Nov. 26, 2019, 4:15 a.m. | OK | GNU C++11 | TESTS | 22 | 62 | 3993600 | 2400 | |
66162046 | 3.141592653 | F2 | Dec. 2, 2019, 5:12 a.m. | OK | GNU C++11 | TESTS | 22 | 62 | 4300800 | 2400 | |
66575738 | yuzhechuan | F2 | Dec. 10, 2019, 7:14 a.m. | OK | GNU C++11 | TESTS | 22 | 62 | 6451200 | 2400 | |
66875475 | luogu_bot2 | F2 | Dec. 14, 2019, 2:48 p.m. | OK | GNU C++11 | TESTS | 22 | 93 | 3993600 | 2400 | |
66248558 | medk | F2 | Dec. 3, 2019, 10:39 p.m. | OK | GNU C++11 | TESTS | 22 | 139 | 4403200 | 2400 | |
66966080 | _Ikun_ | F2 | Dec. 15, 2019, 11:39 a.m. | OK | GNU C++11 | TESTS | 22 | 140 | 24268800 | 2400 | |
65939844 | daifucong | F2 | Nov. 29, 2019, 5:29 a.m. | OK | GNU C++11 | TESTS | 22 | 155 | 2457600 | 2400 | |
66165906 | NoTeamName | F2 | Dec. 2, 2019, 7:35 a.m. | OK | GNU C++14 | TESTS | 22 | 93 | 1638400 | 2400 | |
65687795 | jiangly | F2 | Nov. 25, 2019, 2:01 a.m. | OK | GNU C++14 | TESTS | 22 | 109 | 2457600 | 2400 | |
65706829 | Purple_wzy | F2 | Nov. 25, 2019, 12:55 p.m. | OK | GNU C++14 | TESTS | 22 | 109 | 8089600 | 2400 | |
65725589 | x20 | F2 | Nov. 25, 2019, 10:35 p.m. | OK | GNU C++14 | TESTS | 22 | 124 | 3993600 | 2400 | |
65725524 | x20 | F2 | Nov. 25, 2019, 10:29 p.m. | OK | GNU C++14 | TESTS | 22 | 124 | 3993600 | 2400 | |
66272153 | oliver_124 | F2 | Dec. 4, 2019, 12:40 p.m. | OK | GNU C++14 | TESTS | 22 | 124 | 4812800 | 2400 | |
65644119 | Nybik | F2 | Nov. 24, 2019, 9:12 a.m. | OK | GNU C++14 | TESTS | 22 | 124 | 6041600 | 2400 | |
65678437 | RUDENKO.ONE.LOVE | F2 | Nov. 24, 2019, 6:42 p.m. | OK | GNU C++14 | TESTS | 22 | 124 | 15257600 | 2400 | |
69049261 | MegaOwIer | F2 | Jan. 18, 2020, 12:05 p.m. | OK | GNU C++14 | TESTS | 22 | 171 | 2457600 | 2400 | |
65764474 | VladProg | F2 | Nov. 26, 2019, 5:16 p.m. | OK | GNU C++14 | TESTS | 22 | 187 | 3174400 | 2400 | |
65687069 | HatsuneMikuo | F2 | Nov. 25, 2019, 1:06 a.m. | OK | GNU C++17 | TESTS | 22 | 77 | 18944000 | 2400 | |
65916638 | bibibibi | F2 | Nov. 28, 2019, 2:50 p.m. | OK | GNU C++17 | TESTS | 22 | 93 | 2457600 | 2400 | |
65725379 | krijgertje | F2 | Nov. 25, 2019, 10:19 p.m. | OK | GNU C++17 | TESTS | 22 | 93 | 5632000 | 2400 | |
65697119 | pootis | F2 | Nov. 25, 2019, 8:51 a.m. | OK | GNU C++17 | TESTS | 22 | 124 | 2662400 | 2400 | |
68562093 | toi333 | F2 | Jan. 10, 2020, 7:19 p.m. | OK | GNU C++17 | TESTS | 22 | 124 | 3174400 | 2400 | |
66294751 | LightInShadow | F2 | Dec. 5, 2019, 3:12 a.m. | OK | GNU C++17 | TESTS | 22 | 124 | 7987200 | 2400 | |
66145780 | wzz-huchi | F2 | Dec. 1, 2019, 4:29 p.m. | OK | GNU C++17 | TESTS | 22 | 139 | 3993600 | 2400 | |
66074394 | VodkaInTheJar | F2 | Nov. 30, 2019, 9:47 p.m. | OK | GNU C++17 | TESTS | 22 | 139 | 5632000 | 2400 | |
69189353 | bash | F2 | Jan. 20, 2020, 1:01 p.m. | OK | GNU C++17 | TESTS | 22 | 140 | 5632000 | 2400 | |
68868548 | Phortox | F2 | Jan. 15, 2020, 2:23 p.m. | OK | GNU C++17 | TESTS | 22 | 155 | 6451200 | 2400 | |
65765904 | IslamTalipovTop | F2 | Nov. 26, 2019, 5:56 p.m. | OK | Java 11 | TESTS | 22 | 748 | 0 | 2400 | |
66258049 | satya26 | F2 | Dec. 4, 2019, 7:04 a.m. | OK | Java 8 | TESTS | 22 | 702 | 15155200 | 2400 | |
65726584 | 4mda4mda | F2 | Nov. 26, 2019, 12:05 a.m. | OK | Java 8 | TESTS | 22 | 717 | 2867200 | 2400 | |
66463307 | darkkcyan | F2 | Dec. 7, 2019, 3:36 p.m. | OK | Kotlin | TESTS | 22 | 686 | 11571200 | 2400 |
Back to search problems