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 |
---|---|---|---|---|---|---|
1744 | Codeforces Round 828 (Div. 3) | FINISHED | False | 8100 | 65892299 | Oct. 16, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 23601 ) | B | Even-Odd Increments | PROGRAMMING | implementation math |
B"You are given n of integers a_1, a_2, ldots, a_n . Process q queries of two types: Note that when processing the query, we look specifically at the odd/even value of a_i , not its index. After processing each query, print the sum of the elements of the array a . Please note that the answer for some test cases won't fit into 32-bit integer type, so you should use at least 64-bit integer type in your programming language (like long long for C++). The first line of the input contains an integer t (1 <= q t <= q 10^4 ) -- the number of test cases. The descriptions of the test cases follow. The first line of each test case contains two integers n and q ( 1 <= q n , q <= q 10^5 ) -- the length of array a and the number of queries. The second line of each test case contains exactly n integers: a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 10^9 ) -- elements of the array a . The following q lines contain queries as two integers type_j and x_j (0 <= q type_j <= q 1 , 1 <= q x_j <= q 10^4 ). It is guaranteed that the sum of values n over all test cases in a test does not exceed 10^5 . Similarly, the sum of values q over all test cases does not exceed 10^5 . For each test case, print q numbers: the sum of the elements of the array a after processing a query. In the first test case, the array a = [2] after the first query. In the third test case, the array a is modified as follows: [1, 3, 2, 4, 10, 48] rightarrow [7, 9, 2, 4, 10, 48] rightarrow [7, 9, 7, 9, 15, 53] rightarrow [7, 9, 7, 9, 15, 53] rightarrow [10, 12, 10, 12, 18, 56] rightarrow [22, 24, 22, 24, 30, 68] rightarrow [23, 25, 23, 25, 31, 69] . "... |
Codeforces Round #828 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
176630792 | 1548717649 | B | Oct. 17, 2022, 2:41 a.m. | OK | Clang++20 Diagnostics | TESTS | 10 | 155 | 0 | ||
176592497 | lalitha_devi | B | Oct. 16, 2022, 4:49 p.m. | OK | GNU C11 | TESTS | 10 | 498 | 4505600 | ||
176590209 | vijaya2003 | B | Oct. 16, 2022, 4:46 p.m. | OK | GNU C11 | TESTS | 10 | 499 | 4505600 | ||
176592502 | sriyachavva | B | Oct. 16, 2022, 4:49 p.m. | OK | GNU C11 | TESTS | 10 | 514 | 3686400 | ||
176593655 | Abhishek_Tewatia | B | Oct. 16, 2022, 4:53 p.m. | OK | GNU C11 | TESTS | 10 | 514 | 4505600 | ||
176590896 | Dankderpachu | B | Oct. 16, 2022, 4:47 p.m. | OK | GNU C11 | TESTS | 10 | 873 | 4505600 | ||
176631677 | 18079602575 | B | Oct. 17, 2022, 2:57 a.m. | OK | GNU C++14 | TESTS | 10 | 93 | 0 | ||
176633255 | haris_ahmed | B | Oct. 17, 2022, 3:28 a.m. | OK | GNU C++14 | TESTS | 10 | 93 | 819200 | ||
176597311 | Bnahmad15 | B | Oct. 16, 2022, 5:12 p.m. | OK | GNU C++14 | TESTS | 10 | 93 | 1024000 | ||
176606506 | dmenezes | B | Oct. 16, 2022, 6:30 p.m. | OK | GNU C++14 | TESTS | 10 | 93 | 1024000 | ||
176608325 | conexposys | B | Oct. 16, 2022, 6:49 p.m. | OK | GNU C++14 | TESTS | 10 | 93 | 1228800 | ||
176629378 | fytftyf | B | Oct. 17, 2022, 2:12 a.m. | OK | GNU C++14 | TESTS | 10 | 108 | 409600 | ||
176606938 | AbdAlhadi_AbuAlshamat | B | Oct. 16, 2022, 6:34 p.m. | OK | GNU C++14 | TESTS | 10 | 108 | 1024000 | ||
176594933 | N.H.Fahim | B | Oct. 16, 2022, 4:59 p.m. | OK | GNU C++14 | TESTS | 10 | 108 | 1433600 | ||
176626612 | THHZ | B | Oct. 17, 2022, 1:01 a.m. | OK | GNU C++14 | TESTS | 10 | 108 | 1843200 | ||
176634471 | luorro | B | Oct. 17, 2022, 3:51 a.m. | OK | GNU C++14 | TESTS | 10 | 109 | 0 | ||
176627108 | love147love | B | Oct. 17, 2022, 1:15 a.m. | OK | GNU C++17 | TESTS | 10 | 78 | 1433600 | ||
176635989 | lqmm | B | Oct. 17, 2022, 4:20 a.m. | OK | GNU C++17 | TESTS | 10 | 93 | 0 | ||
176620866 | picture123 | B | Oct. 16, 2022, 9:47 p.m. | OK | GNU C++17 | TESTS | 10 | 93 | 1024000 | ||
176600010 | Kilo_5723 | B | Oct. 16, 2022, 5:31 p.m. | OK | GNU C++17 | TESTS | 10 | 93 | 1024000 | ||
176640038 | devanshd | B | Oct. 17, 2022, 5:36 a.m. | OK | GNU C++17 | TESTS | 10 | 93 | 1638400 | ||
176621169 | nase7faraj | B | Oct. 16, 2022, 9:53 p.m. | OK | GNU C++17 | TESTS | 10 | 93 | 1843200 | ||
176602065 | mahmud_183 | B | Oct. 16, 2022, 5:49 p.m. | OK | GNU C++17 | TESTS | 10 | 93 | 1843200 | ||
176609030 | OmarDarwich | B | Oct. 16, 2022, 6:56 p.m. | OK | GNU C++17 | TESTS | 10 | 108 | 1024000 | ||
176591218 | HurryUp1 | B | Oct. 16, 2022, 4:48 p.m. | OK | GNU C++17 | TESTS | 10 | 108 | 1024000 | ||
176623949 | Assem99 | B | Oct. 16, 2022, 11:36 p.m. | OK | GNU C++17 | TESTS | 10 | 108 | 1126400 | ||
176638097 | Freedom__King | B | Oct. 17, 2022, 4:58 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 30 | 2150400 | ||
176606145 | osamaBelal | B | Oct. 16, 2022, 6:26 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 62 | 409600 | ||
176633175 | your_lie_in_april | B | Oct. 17, 2022, 3:26 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 62 | 819200 | ||
176623758 | 6host | B | Oct. 16, 2022, 11:29 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 62 | 1228800 | ||
176613487 | Azmee | B | Oct. 16, 2022, 7:48 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 62 | 2048000 | ||
176633326 | your_lie_in_april | B | Oct. 17, 2022, 3:29 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 77 | 0 | ||
176636868 | Diegogrc | B | Oct. 17, 2022, 4:36 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 77 | 0 | ||
176634917 | Rick_GT | B | Oct. 17, 2022, 3:58 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 77 | 0 | ||
176601343 | Bullet | B | Oct. 16, 2022, 5:43 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 77 | 0 | ||
176602985 | SANKI | B | Oct. 16, 2022, 5:57 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 77 | 409600 | ||
176627369 | tahmidarefin | B | Oct. 17, 2022, 1:22 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
176640368 | UtTaRaN | B | Oct. 17, 2022, 5:40 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
176634811 | SuperNova74 | B | Oct. 17, 2022, 3:56 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 0 | ||
176593187 | mdolchik | B | Oct. 16, 2022, 4:52 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 819200 | ||
176625372 | richardkyu | B | Oct. 17, 2022, 12:26 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 819200 | ||
176601086 | MuhammadHassan | B | Oct. 16, 2022, 5:40 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 1228800 | ||
176602132 | MuhammadHassan | B | Oct. 16, 2022, 5:50 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 1228800 | ||
176607380 | Saytara | B | Oct. 16, 2022, 6:38 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 1228800 | ||
176609473 | tolbi | B | Oct. 16, 2022, 7 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 1228800 | ||
176614901 | Enigma06 | B | Oct. 16, 2022, 8:06 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 46 | 1228800 | ||
176616929 | deepaksach | B | Oct. 16, 2022, 8:36 p.m. | OK | Java 11 | TESTS | 10 | 218 | 24985600 | ||
176640830 | T_PAVAN_NAGARAJU | B | Oct. 17, 2022, 5:47 a.m. | OK | Java 11 | TESTS | 10 | 249 | 0 | ||
176641284 | praduman14 | B | Oct. 17, 2022, 5:54 a.m. | OK | Java 11 | TESTS | 10 | 264 | 0 | ||
176634702 | NithinBharathi | B | Oct. 17, 2022, 3:54 a.m. | OK | Java 11 | TESTS | 10 | 265 | 0 | ||
176627059 | enuguru_2002 | B | Oct. 17, 2022, 1:13 a.m. | OK | Java 11 | TESTS | 10 | 296 | 24780800 | ||
176633754 | Subhankar752 | B | Oct. 17, 2022, 3:37 a.m. | OK | Java 11 | TESTS | 10 | 529 | 0 | ||
176610849 | ilasiawo | B | Oct. 16, 2022, 7:17 p.m. | OK | Java 11 | TESTS | 10 | 592 | 0 | ||
176597066 | SAY_NO_TO_EDITORIAL | B | Oct. 16, 2022, 5:11 p.m. | OK | Java 11 | TESTS | 10 | 873 | 24780800 | ||
176592919 | 19ucs164 | B | Oct. 16, 2022, 4:51 p.m. | OK | Java 11 | TESTS | 10 | 919 | 24678400 | ||
176629279 | priyanshu__ | B | Oct. 17, 2022, 2:09 a.m. | OK | Java 11 | TESTS | 10 | 1154 | 25190400 | ||
176625137 | Mamimi | B | Oct. 17, 2022, 12:19 a.m. | OK | Java 17 | TESTS | 10 | 326 | 40448000 | ||
176603851 | sarbananda | B | Oct. 16, 2022, 6:05 p.m. | OK | Java 17 | TESTS | 10 | 358 | 40243200 | ||
176599491 | harsh.bhandari.v | B | Oct. 16, 2022, 5:27 p.m. | OK | Java 17 | TESTS | 10 | 576 | 40550400 | ||
176624137 | a_dev | B | Oct. 16, 2022, 11:43 p.m. | OK | Java 17 | TESTS | 10 | 592 | 40140800 | ||
176603713 | Dukkha | B | Oct. 16, 2022, 6:04 p.m. | OK | Java 17 | TESTS | 10 | 623 | 40550400 | ||
176606806 | bakdauletabdumuminov | B | Oct. 16, 2022, 6:33 p.m. | OK | Java 17 | TESTS | 10 | 920 | 40652800 | ||
176590239 | mayankshrivast | B | Oct. 16, 2022, 4:47 p.m. | OK | Java 17 | TESTS | 10 | 982 | 40550400 | ||
176599933 | Sanskar0407 | B | Oct. 16, 2022, 5:31 p.m. | OK | Java 17 | TESTS | 10 | 982 | 40652800 | ||
176591006 | aditisaxena | B | Oct. 16, 2022, 4:48 p.m. | OK | Java 17 | TESTS | 10 | 1013 | 40140800 | ||
176592295 | saran33 | B | Oct. 16, 2022, 4:49 p.m. | OK | Java 17 | TESTS | 10 | 1028 | 40448000 | ||
176618563 | Rayhan_07 | B | Oct. 16, 2022, 9:02 p.m. | OK | Java 8 | TESTS | 10 | 140 | 18944000 | ||
176622330 | Karakurik | B | Oct. 16, 2022, 10:24 p.m. | OK | Java 8 | TESTS | 10 | 171 | 18944000 | ||
176620745 | Mohamed_A7med | B | Oct. 16, 2022, 9:44 p.m. | OK | Java 8 | TESTS | 10 | 171 | 18944000 | ||
176609855 | guinnod | B | Oct. 16, 2022, 7:05 p.m. | OK | Java 8 | TESTS | 10 | 171 | 18944000 | ||
176641831 | kumarankit1041999 | B | Oct. 17, 2022, 6:01 a.m. | OK | Java 8 | TESTS | 10 | 217 | 0 | ||
176600365 | Juhaied_nabid | B | Oct. 16, 2022, 5:34 p.m. | OK | Java 8 | TESTS | 10 | 499 | 19660800 | ||
176598970 | toufique_husein | B | Oct. 16, 2022, 5:24 p.m. | OK | Java 8 | TESTS | 10 | 623 | 19660800 | ||
176632663 | descifrador_hm | B | Oct. 17, 2022, 3:17 a.m. | OK | Java 8 | TESTS | 10 | 779 | 0 | ||
176634930 | chillsk8ter | B | Oct. 17, 2022, 3:59 a.m. | OK | Java 8 | TESTS | 10 | 795 | 307200 | ||
176618841 | Lucky3495 | B | Oct. 16, 2022, 9:06 p.m. | OK | Java 8 | TESTS | 10 | 1076 | 19660800 | ||
176641683 | eneskayiklik | B | Oct. 17, 2022, 5:59 a.m. | OK | Kotlin 1.6 | TESTS | 10 | 982 | 2662400 | ||
176635135 | merzgling | B | Oct. 17, 2022, 4:02 a.m. | OK | MS C++ 2017 | TESTS | 10 | 576 | 409600 | ||
176595394 | Januxor | B | Oct. 16, 2022, 5:02 p.m. | OK | MS C++ 2017 | TESTS | 10 | 577 | 2150400 | ||
176635052 | ishybee | B | Oct. 17, 2022, 4:01 a.m. | OK | MS C++ 2017 | TESTS | 10 | 607 | 512000 | ||
176616822 | Ehab_AL677 | B | Oct. 16, 2022, 8:34 p.m. | OK | MS C++ 2017 | TESTS | 10 | 608 | 1126400 | ||
176589648 | Dream_Y.ocean | B | Oct. 16, 2022, 4:46 p.m. | OK | MS C++ 2017 | TESTS | 10 | 639 | 1228800 | ||
176609382 | rsFalse | B | Oct. 16, 2022, 7 p.m. | OK | Perl | TESTS | 10 | 218 | 10547200 | ||
176606604 | rsFalse | B | Oct. 16, 2022, 6:31 p.m. | OK | Perl | TESTS | 10 | 249 | 14643200 | ||
176612718 | macieekk | B | Oct. 16, 2022, 7:38 p.m. | OK | PyPy 3 | TESTS | 10 | 358 | 31539200 | ||
176597597 | MohamedHamed123 | B | Oct. 16, 2022, 5:14 p.m. | OK | PyPy 3 | TESTS | 10 | 592 | 30412800 | ||
176637483 | andrey.starodubtsev | B | Oct. 17, 2022, 4:48 a.m. | OK | PyPy 3 | TESTS | 10 | 1731 | 12083200 | ||
176597219 | konstruktor | B | Oct. 16, 2022, 5:12 p.m. | OK | PyPy 3 | TESTS | 10 | 1778 | 28364800 | ||
176598998 | zenith_007 | B | Oct. 16, 2022, 5:24 p.m. | OK | PyPy 3 | TESTS | 10 | 1808 | 29491200 | ||
176617430 | vishu.ut | B | Oct. 16, 2022, 8:44 p.m. | OK | PyPy 3 | TESTS | 10 | 1825 | 31129600 | ||
176596686 | kuangren777 | B | Oct. 16, 2022, 5:09 p.m. | OK | PyPy 3 | TESTS | 10 | 1856 | 11980800 | ||
176589081 | akshat11 | B | Oct. 16, 2022, 4:45 p.m. | OK | PyPy 3 | TESTS | 10 | 1933 | 28262400 | ||
176589858 | heat_007 | B | Oct. 16, 2022, 4:46 p.m. | OK | PyPy 3 | TESTS | 10 | 1996 | 29798400 | ||
176599650 | crapcode | B | Oct. 16, 2022, 5:28 p.m. | OK | PyPy 3-64 | TESTS | 10 | 202 | 43315200 | ||
176630385 | bokunopicolo | B | Oct. 17, 2022, 2:32 a.m. | OK | PyPy 3-64 | TESTS | 10 | 218 | 13619200 | ||
176589465 | Girniiiii | B | Oct. 16, 2022, 4:45 p.m. | OK | PyPy 3-64 | TESTS | 10 | 218 | 40038400 | ||
176592988 | Yansou | B | Oct. 16, 2022, 4:51 p.m. | OK | PyPy 3-64 | TESTS | 10 | 233 | 19353600 | ||
176611666 | deepaklaksman | B | Oct. 16, 2022, 7:26 p.m. | OK | PyPy 3-64 | TESTS | 10 | 233 | 42291200 | ||
176621754 | omar.gawdat | B | Oct. 16, 2022, 10:08 p.m. | OK | PyPy 3-64 | TESTS | 10 | 265 | 40550400 | ||
176595938 | hatti | B | Oct. 16, 2022, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 10 | 265 | 43724800 | ||
176608120 | vim1729 | B | Oct. 16, 2022, 6:46 p.m. | OK | PyPy 3-64 | TESTS | 10 | 265 | 47411200 | ||
176626150 | nealzane | B | Oct. 17, 2022, 12:49 a.m. | OK | PyPy 3-64 | TESTS | 10 | 280 | 28876800 | ||
176611593 | gesuta | B | Oct. 16, 2022, 7:25 p.m. | OK | PyPy 3-64 | TESTS | 10 | 280 | 42803200 | ||
176636349 | dezhong_li | B | Oct. 17, 2022, 4:27 a.m. | OK | Python 3 | TESTS | 10 | 483 | 8499200 | ||
176599044 | vardaan | B | Oct. 16, 2022, 5:24 p.m. | OK | Python 3 | TESTS | 10 | 577 | 10547200 | ||
176600527 | 20951a1260 | B | Oct. 16, 2022, 5:36 p.m. | OK | Python 3 | TESTS | 10 | 592 | 10240000 | ||
176628506 | kkzyr | B | Oct. 17, 2022, 1:50 a.m. | OK | Python 3 | TESTS | 10 | 935 | 6860800 | ||
176634268 | zhengdongrong | B | Oct. 17, 2022, 3:47 a.m. | OK | Python 3 | TESTS | 10 | 951 | 8089600 | ||
176590842 | monkey_d_viper | B | Oct. 16, 2022, 4:47 p.m. | OK | Python 3 | TESTS | 10 | 951 | 8089600 | ||
176634922 | zhengdongrong | B | Oct. 17, 2022, 3:58 a.m. | OK | Python 3 | TESTS | 10 | 966 | 8089600 | ||
176619854 | suraj_kp_79 | B | Oct. 16, 2022, 9:25 p.m. | OK | Python 3 | TESTS | 10 | 967 | 8089600 | ||
176607328 | ShaadyEmad | B | Oct. 16, 2022, 6:38 p.m. | OK | Python 3 | TESTS | 10 | 997 | 8089600 | ||
176596425 | NarzullayevSaidmurod | B | Oct. 16, 2022, 5:07 p.m. | OK | Python 3 | TESTS | 10 | 997 | 13209600 |
Back to search problems