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 |
---|---|---|---|---|---|---|
1928 | Codeforces Round 924 (Div. 2) | FINISHED | False | 7200 | 24179099 | Feb. 11, 2024, 9:35 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 244 ) | F | Digital Patterns | PROGRAMMING | combinatorics data structures implementation math |
B'Anya is engaged in needlework. Today she decided to knit a scarf from semi-transparent threads. Each thread is characterized by a single integer -- the transparency coefficient. The scarf is made according to the following scheme: horizontal threads with transparency coefficients a_1, a_2, ldots, a_n and vertical threads with transparency coefficients b_1, b_2, ldots, b_m are selected. Then they are interwoven as shown in the picture below, forming a piece of fabric of size n x m , consisting of exactly nm nodes: After the interweaving tightens and there are no gaps between the threads, each node formed by a horizontal thread with number i and a vertical thread with number j will turn into a cell, which we will denote as (i, j) . Cell (i, j) will have a transparency coefficient of a_i + b_j . The interestingness of the resulting scarf will be the number of its sub-squares ^{ dagger} in which there are no pairs of neighboring ^{ dagger dagger} cells with the same transparency coefficients. Anya has not yet decided which threads to use for the scarf, so you will also be given q queries to increase/decrease the coefficients for the threads on some ranges. After each query of which you need to output the interestingness of the resulting scarf. ^{ dagger} A sub-square of a piece of fabric is defined as the set of all its cells (i, j) , such that x_0 <= i <= x_0 + d and y_0 <= j <= y_0 + d for some integers x_0 , y_0 , and d ( 1 <= x_0 <= n - d , 1 <= y_0 <= m - d , d ge 0 ). ^{ dagger dagger} . Cells (i_1, j_1) and (i_2, j_2) are neighboring if and only if |i_1 - i_2| + |j_1 - j_2| = 1 . The first line contains three integers n , m , and q ( 1 <= n, m <= 3 cdot 10^5 , 0 <= q <= 3 cdot 10^5 ) -- the number of horizontal threads, the number of vertical threads, and the numb'... |
Codeforces Round 924 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
245865011 | Kilani | F | Feb. 11, 2024, 1:34 p.m. | OK | GNU C++17 | TESTS | 51 | 998 | 34508800 | ||
245898384 | theygottoseeme | F | Feb. 11, 2024, 5:37 p.m. | OK | GNU C++17 | TESTS | 51 | 1170 | 34201600 | ||
245896668 | mlxon | F | Feb. 11, 2024, 5:23 p.m. | OK | GNU C++17 | TESTS | 51 | 1170 | 34201600 | ||
245914421 | anuraag0507 | F | Feb. 11, 2024, 8:11 p.m. | OK | GNU C++17 | TESTS | 51 | 1715 | 45875200 | ||
245935375 | N_z__ | F | Feb. 12, 2024, 3:53 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 499 | 56320000 | ||
245873439 | KellyWLJ | F | Feb. 11, 2024, 2:38 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 545 | 55398400 | ||
245854822 | chappy1 | F | Feb. 11, 2024, 12:16 p.m. | OK | GNU C++17 (64) | TESTS | 50 | 654 | 36454400 | ||
245884286 | xianghe | F | Feb. 11, 2024, 3:51 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 1029 | 61337600 | ||
245900094 | beiyuli | F | Feb. 11, 2024, 5:50 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 1388 | 98611200 | ||
245933691 | PEIMUDA | F | Feb. 12, 2024, 3:19 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 1435 | 38502400 | ||
245921033 | rainboy | F | Feb. 11, 2024, 9:51 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 1497 | 103833600 | ||
245928370 | lichenghan | F | Feb. 12, 2024, 1 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 1559 | 43315200 | ||
245935569 | N_z__ | F | Feb. 12, 2024, 3:56 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 1590 | 62566400 | ||
245860391 | complexor | F | Feb. 11, 2024, 1:01 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 1621 | 132300800 | ||
245935472 | N_z__ | F | Feb. 12, 2024, 3:54 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 514 | 62668800 | ||
245850904 | paula | F | Feb. 11, 2024, 11:52 a.m. | OK | GNU C++20 (64) | TESTS | 50 | 623 | 45363200 | ||
245931081 | DiegoGarcia | F | Feb. 12, 2024, 2:17 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 655 | 40652800 | ||
245941870 | jiangly | F | Feb. 12, 2024, 5:43 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 716 | 38502400 | ||
245874863 | A_G | F | Feb. 11, 2024, 2:48 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 717 | 38502400 | ||
245901400 | saigumma | F | Feb. 11, 2024, 6:01 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 733 | 38502400 | ||
245919423 | amirhoseinfar1385 | F | Feb. 11, 2024, 9:23 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 748 | 57753600 | ||
245871005 | Xueyi | F | Feb. 11, 2024, 2:19 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 764 | 40960000 | ||
245901139 | MridulAhi | F | Feb. 11, 2024, 5:59 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 810 | 67379200 | ||
245893029 | ashu_1491981 | F | Feb. 11, 2024, 4:54 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 857 | 61337600 |
Back to search problems