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.
Problems
B'This is an unusual problem in an unusual contest, here is the announcement: http://codeforces.com/blog/entry/73543 You are given an array A of length n , initially filled with zeros. You need to process q queries to the array, each of one of the following types: The first line contains an integer T ( 1 <= q T <= q 10^5 ) -- the number of test cases. Each test case description starts with two integers n, q ( 1 <= q n, q <= q 10^5 ) -- the length of the array and the number of queries. The following q lines contain the description of queries: 1~x~y ( 1 <= q x <= q n , 0 <= q y <= q 10^9 ) for queries of the first type and 2~l~r ( 1 <= q l <= q r <= q n ) for queries of the second type. It is guaranteed that the sum of n as well as the sum of q does not exceed 10^6 . For each query of the second type print its result on a separate line. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
70177820 |
pengin_2000 |
C |
Feb. 3, 2020, 7:03 p.m. |
OK |
GNU C11 |
TESTS |
12 |
2417 |
1638400 |
|
|
70172736 |
DFTMR ChthollyNotaSeniorious |
C |
Feb. 3, 2020, 5:46 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
233 |
3174400 |
|
|
70198613 |
WZYYN |
C |
Feb. 4, 2020, 2:37 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
529 |
1228800 |
|
|
70521286 |
henanliu |
C |
Feb. 7, 2020, 5:58 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
529 |
1638400 |
|
|
70169561 |
Noureldin |
C |
Feb. 3, 2020, 5:07 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
561 |
12595200 |
|
|
70202885 |
YHHxBULIATANIA |
C |
Feb. 4, 2020, 5:07 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
577 |
1638400 |
|
|
70167968 |
XLor |
C |
Feb. 3, 2020, 4:49 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
608 |
1228800 |
|
|
70176091 |
cugel |
C |
Feb. 3, 2020, 6:33 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
608 |
1433600 |
|
|
70166549 |
BigBag Mustang98 shanin |
C |
Feb. 3, 2020, 4:34 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
701 |
3174400 |
|
|
70168094 |
ivandasfs |
C |
Feb. 3, 2020, 4:51 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
716 |
3993600 |
|
|
70169887 |
18380120126 |
C |
Feb. 3, 2020, 5:11 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
717 |
32051200 |
|
|
70170559 |
tokitsukaze winterzz1 |
C |
Feb. 3, 2020, 5:18 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
514 |
22937600 |
|
|
70166148 |
pikmike |
C |
Feb. 3, 2020, 4:30 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
639 |
2457600 |
|
|
70171098 |
snest21 |
C |
Feb. 3, 2020, 5:25 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
686 |
1638400 |
|
|
70843692 |
Tudor67 |
C |
Feb. 12, 2020, 12:50 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
701 |
819200 |
|
|
70166381 |
Nson |
C |
Feb. 3, 2020, 4:32 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
701 |
819200 |
|
|
70171485 |
PinkRabbit sys. |
C |
Feb. 3, 2020, 5:30 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
701 |
1228800 |
|
|
70170821 |
snest21 |
C |
Feb. 3, 2020, 5:22 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
701 |
1638400 |
|
|
70169423 |
ActorBlack |
C |
Feb. 3, 2020, 5:05 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
763 |
3174400 |
|
|
70730163 |
nick2004 |
C |
Feb. 10, 2020, 1:03 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
763 |
20070400 |
|
|
70168120 |
noneTP |
C |
Feb. 3, 2020, 4:51 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
779 |
7987200 |
|
|
70166913 |
huzecong |
C |
Feb. 3, 2020, 4:38 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
670 |
1228800 |
|
|
70539532 |
fakhoury |
C |
Feb. 8, 2020, 5:18 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
685 |
1228800 |
|
|
70169157 |
Ekler Um_nik KAN |
C |
Feb. 3, 2020, 5:02 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
685 |
1638400 |
|
|
70307678 |
Prateek |
C |
Feb. 4, 2020, 6:16 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
686 |
819200 |
|
|
70539461 |
fakhoury |
C |
Feb. 8, 2020, 5:17 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
701 |
1228800 |
|
|
70168163 |
xlk |
C |
Feb. 3, 2020, 4:52 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
701 |
1638400 |
|
|
70188713 |
Chinchila |
C |
Feb. 4, 2020, 12:17 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
701 |
3174400 |
|
|
70172268 |
Mizuhara |
C |
Feb. 3, 2020, 5:40 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
702 |
819200 |
|
|
70167693 |
Roundgod |
C |
Feb. 3, 2020, 4:46 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
716 |
819200 |
|
|
70168064 |
RsEnts |
C |
Feb. 3, 2020, 4:50 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
717 |
1638400 |
|
|
70168835 |
eatmore |
C |
Feb. 3, 2020, 4:59 p.m. |
OK |
Java 11 |
TESTS |
12 |
873 |
7065600 |
|
|
70169225 |
MagentaCobra qlf9 Tlatoani |
C |
Feb. 3, 2020, 5:03 p.m. |
OK |
Java 8 |
TESTS |
12 |
748 |
0 |
|
|
70199101 |
AnandOza |
C |
Feb. 4, 2020, 2:56 a.m. |
OK |
Java 8 |
TESTS |
12 |
919 |
0 |
|
|
70177152 |
martins |
C |
Feb. 3, 2020, 6:51 p.m. |
OK |
Java 8 |
TESTS |
12 |
1138 |
0 |
|
|
70172372 |
Vaibhav_Domadia |
C |
Feb. 3, 2020, 5:41 p.m. |
OK |
Java 8 |
TESTS |
12 |
1279 |
62566400 |
|
|
70197369 |
Spheniscine |
C |
Feb. 4, 2020, 1:35 a.m. |
OK |
Kotlin |
TESTS |
12 |
670 |
0 |
|
|
70197298 |
Spheniscine |
C |
Feb. 4, 2020, 1:31 a.m. |
OK |
Kotlin |
TESTS |
12 |
702 |
0 |
|
|
70172237 |
CrashMaster |
C |
Feb. 3, 2020, 5:40 p.m. |
OK |
MS C++ 2017 |
TESTS |
12 |
951 |
1638400 |
|
|
70168959 |
pajenegod |
C |
Feb. 3, 2020, 5 p.m. |
OK |
PyPy 2 |
TESTS |
12 |
1387 |
220262400 |
|
|
remove filters
Back to search problems