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 |
---|---|---|---|---|---|---|
1109 | Codeforces Round 539 (Div. 1) | FINISHED | False | 9000 | 187190723 | Feb. 16, 2019, 4:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 558 ) | E | Sasha and a Very Easy Test | PROGRAMMING | data structures number theory | 2700 |
B"Egor likes math, and not so long ago he got the highest degree of recognition in the math community -- Egor became a red mathematician. In this regard, Sasha decided to congratulate Egor and give him a math test as a present. This test contains an array a of integers of length n and exactly q queries. Queries were of three types: The sum can be big, so Sasha asked Egor to calculate the sum modulo some integer mod . But since Egor is a red mathematician, he doesn't have enough time to solve such easy tasks, at the same time he doesn't want to anger Sasha, that's why he asked you to help and to find answers for all queries of the 3 -rd type. The first line contains two integers n and mod ( 1 <= n <= 10^5 , 2 <= mod <= 10^9 + 9 ) -- the size of the array and the number mod . The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^5 ) -- the array itself. The third line contains one integer q ( 1 <= q <= 10^5 ) -- the number of queries. Next q lines satisfy one of the following formats: It is guaranteed that there is at least one query of the 3 -rd type. For each query of the 3 -rd type print the answer on a new line modulo mod . The first example: Inital array is [4, 1, 2, 3, 5] The second example: Inital array is [4, 1, 2, 3, 5] "... |
Codeforces Round #539 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
50025978 | rainboy | E | Feb. 16, 2019, 6:16 p.m. | OK | GNU C11 | TESTS | 74 | 577 | 6553600 | 2700 | |
50264549 | xielinhan | E | Feb. 21, 2019, 3:41 a.m. | OK | GNU C++11 | TESTS | 74 | 265 | 10342400 | 2700 | |
50088164 | GuessYCB | E | Feb. 18, 2019, 8:44 a.m. | OK | GNU C++11 | TESTS | 74 | 296 | 61132800 | 2700 | |
50088202 | GuessYCB | E | Feb. 18, 2019, 8:46 a.m. | OK | GNU C++11 | TESTS | 74 | 296 | 61132800 | 2700 | |
51110442 | Jessie01 | E | March 10, 2019, 3:55 a.m. | OK | GNU C++11 | TESTS | 74 | 311 | 24473600 | 2700 | |
52156692 | Durant_Lee | E | April 1, 2019, 1:40 p.m. | OK | GNU C++11 | TESTS | 74 | 327 | 24473600 | 2700 | |
68742595 | Genius_Z | E | Jan. 14, 2020, 2:23 a.m. | OK | GNU C++11 | TESTS | 74 | 327 | 40038400 | 2700 | |
54386740 | Master_Yi | E | May 19, 2019, 1:48 p.m. | OK | GNU C++11 | TESTS | 74 | 343 | 10854400 | 2700 | |
54366825 | vjudge5 | E | May 19, 2019, 3:41 a.m. | OK | GNU C++11 | TESTS | 74 | 343 | 14848000 | 2700 | |
69054084 | geneanlyz | E | Jan. 18, 2020, 1:47 p.m. | OK | GNU C++11 | TESTS | 74 | 343 | 30208000 | 2700 | |
52012758 | code_struck | E | March 30, 2019, 9:17 a.m. | OK | GNU C++11 | TESTS | 74 | 358 | 13004800 | 2700 | |
50151552 | liouzhou_101 | E | Feb. 19, 2019, 7:41 a.m. | OK | GNU C++14 | TESTS | 74 | 280 | 10240000 | 2700 | |
50151427 | liouzhou_101 | E | Feb. 19, 2019, 7:37 a.m. | OK | GNU C++14 | TESTS | 74 | 296 | 10240000 | 2700 | |
50262905 | piscium | E | Feb. 21, 2019, 2:41 a.m. | OK | GNU C++14 | TESTS | 74 | 390 | 12083200 | 2700 | |
50056350 | mayaohua2003 | E | Feb. 17, 2019, 10:32 a.m. | OK | GNU C++14 | TESTS | 74 | 421 | 21606400 | 2700 | |
50152291 | mobu233 | E | Feb. 19, 2019, 8:04 a.m. | OK | GNU C++14 | TESTS | 74 | 436 | 10854400 | 2700 | |
52299175 | RNS_CUS | E | April 4, 2019, 8:02 a.m. | OK | GNU C++14 | TESTS | 74 | 436 | 26521600 | 2700 | |
50021323 | chemthan | E | Feb. 16, 2019, 5:51 p.m. | OK | GNU C++14 | TESTS | 74 | 452 | 11673600 | 2700 | |
62626961 | NotNight | E | Oct. 15, 2019, 2:20 p.m. | OK | GNU C++14 | TESTS | 74 | 452 | 19865600 | 2700 | |
50069366 | Quang | E | Feb. 17, 2019, 4:43 p.m. | OK | GNU C++14 | TESTS | 74 | 483 | 19865600 | 2700 | |
50979503 | danya.smelskiy | E | March 7, 2019, 5:34 p.m. | OK | GNU C++14 | TESTS | 74 | 483 | 25702400 | 2700 | |
50276233 | libra8z | E | Feb. 21, 2019, 10:10 a.m. | OK | GNU C++17 | TESTS | 74 | 312 | 6553600 | 2700 | |
50275972 | vjudge2 | E | Feb. 21, 2019, 10:02 a.m. | OK | GNU C++17 | TESTS | 74 | 374 | 6451200 | 2700 | |
50276068 | libra8z | E | Feb. 21, 2019, 10:05 a.m. | OK | GNU C++17 | TESTS | 74 | 389 | 6451200 | 2700 | |
50276053 | libra8z | E | Feb. 21, 2019, 10:04 a.m. | OK | GNU C++17 | TESTS | 74 | 389 | 6451200 | 2700 | |
50275995 | libra8z | E | Feb. 21, 2019, 10:02 a.m. | OK | GNU C++17 | TESTS | 74 | 390 | 6451200 | 2700 | |
50275932 | vjudge2 | E | Feb. 21, 2019, 10 a.m. | OK | GNU C++17 | TESTS | 74 | 405 | 6451200 | 2700 | |
54148763 | KrK | E | May 14, 2019, 9:26 p.m. | OK | GNU C++17 | TESTS | 74 | 405 | 31129600 | 2700 | |
51804525 | markotee | E | March 24, 2019, 8:24 p.m. | OK | GNU C++17 | TESTS | 74 | 420 | 13619200 | 2700 | |
50036899 | matthew99 | E | Feb. 16, 2019, 9:24 p.m. | OK | GNU C++17 | TESTS | 74 | 421 | 18022400 | 2700 | |
50061932 | tEMMIE.w. | E | Feb. 17, 2019, 1:03 p.m. | OK | GNU C++17 | TESTS | 74 | 467 | 15667200 | 2700 | |
50331341 | Dukkha | E | Feb. 22, 2019, 6:40 p.m. | OK | Java 8 | TESTS | 74 | 701 | 3891200 | 2700 | |
50028457 | niyaznigmatul | E | Feb. 16, 2019, 6:32 p.m. | OK | Java 8 | TESTS | 74 | 811 | 5529600 | 2700 |
Back to search problems