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 |
266
|
Codeforces Round 163 (Div. 2) |
FINISHED |
False |
7200 |
372954599 |
Jan. 22, 2013, 3:30 p.m. |
Problems
B"You've got an array, consisting of n integers: a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. Your task is to quickly run the queries of two types: The first line contains two integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), showing, how many numbers are in the array and the number of queries, correspondingly. The second line contains n integers: a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the initial values of the array elements. Then m queries follow, one per line: All numbers in the input are integers. For each query to calculate the sum print an integer -- the required sum modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897)."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
40990275 |
ReaLNero1 |
E |
July 30, 2018, 11:46 p.m. |
OK |
GNU C++ |
TESTS |
24 |
1028 |
15872000 |
|
2600 |
41557651 |
xymtxdy |
E |
Aug. 13, 2018, 12:19 p.m. |
OK |
GNU C++ |
TESTS |
24 |
2402 |
28057600 |
|
2600 |
62866525 |
luogu_bot1 |
E |
Oct. 18, 2019, 12:24 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
746 |
23449600 |
|
2600 |
62866673 |
luogu_bot2 |
E |
Oct. 18, 2019, 12:27 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
780 |
23654400 |
|
2600 |
66633163 |
vjudge5 |
E |
Dec. 11, 2019, 11:56 a.m. |
OK |
GNU C++11 |
TESTS |
24 |
840 |
13619200 |
|
2600 |
57821545 |
py_ultron |
E |
July 26, 2019, 11:45 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
842 |
16588800 |
|
2600 |
57897701 |
lopare |
E |
July 28, 2019, 2:17 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
904 |
16588800 |
|
2600 |
42821269 |
PinkEx |
E |
Sept. 13, 2018, 6:42 a.m. |
OK |
GNU C++11 |
TESTS |
24 |
998 |
14336000 |
|
2600 |
46440228 |
vjudge5 |
E |
Dec. 1, 2018, 11:30 a.m. |
OK |
GNU C++11 |
TESTS |
24 |
1028 |
28057600 |
|
2600 |
61087527 |
Lonely666 |
E |
Sept. 22, 2019, 7 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
1248 |
15462400 |
|
2600 |
43638704 |
DeadPillow |
E |
Oct. 1, 2018, 10:06 a.m. |
OK |
GNU C++11 |
TESTS |
24 |
1310 |
13619200 |
|
2600 |
54915567 |
Dilute |
E |
June 1, 2019, 1:35 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
1310 |
53350400 |
|
2600 |
66632823 |
tzxydby |
E |
Dec. 11, 2019, 11:49 a.m. |
OK |
GNU C++14 |
TESTS |
24 |
872 |
13619200 |
|
2600 |
62537166 |
aviroop123 |
E |
Oct. 13, 2019, 11:52 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
1184 |
16486400 |
|
2600 |
44058721 |
I_love_Y_UME |
E |
Oct. 10, 2018, 3:47 a.m. |
OK |
GNU C++14 |
TESTS |
24 |
1308 |
14131200 |
|
2600 |
66186315 |
zhugezy |
E |
Dec. 2, 2019, 2:38 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
1434 |
28057600 |
|
2600 |
54326625 |
NotNight |
E |
May 18, 2019, 3:11 a.m. |
OK |
GNU C++14 |
TESTS |
24 |
1464 |
22016000 |
|
2600 |
69420446 |
farmerboy |
E |
Jan. 23, 2020, 2:15 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
1964 |
50073600 |
|
2600 |
59104405 |
stefdasca |
E |
Aug. 19, 2019, 5:23 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
2338 |
25702400 |
|
2600 |
59104540 |
stefdasca |
E |
Aug. 19, 2019, 5:26 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
2400 |
25702400 |
|
2600 |
62535441 |
phibrain |
E |
Oct. 13, 2019, 10:01 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
2774 |
73523200 |
|
2600 |
66129386 |
Shayan |
E |
Dec. 1, 2019, 10:47 a.m. |
OK |
GNU C++14 |
TESTS |
24 |
3462 |
16076800 |
|
2600 |
61706639 |
hjk1030 |
E |
Oct. 2, 2019, 10:18 a.m. |
OK |
GNU C++17 |
TESTS |
24 |
934 |
14028800 |
|
2600 |
66191688 |
Navick |
E |
Dec. 2, 2019, 4:41 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
1184 |
14028800 |
|
2600 |
66545035 |
interestingLSY |
E |
Dec. 9, 2019, 12:55 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
1434 |
23654400 |
|
2600 |
66545086 |
HatsuneMikuo |
E |
Dec. 9, 2019, 12:56 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
1528 |
23654400 |
|
2600 |
63644554 |
Roundgod |
E |
Oct. 28, 2019, 9:14 a.m. |
OK |
GNU C++17 |
TESTS |
24 |
2868 |
18124800 |
|
2600 |
66785185 |
luogu_bot1 |
E |
Dec. 13, 2019, 1:25 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
3056 |
15564800 |
|
2600 |
51679033 |
ruo |
E |
March 22, 2019, 11:52 a.m. |
OK |
GNU C++17 |
TESTS |
24 |
3306 |
36044800 |
|
2600 |
68657078 |
segmentfault |
E |
Jan. 12, 2020, 12:33 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
4024 |
43110400 |
|
2600 |
52602056 |
AhemJi |
E |
April 11, 2019, 12:22 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
4210 |
48947200 |
|
2600 |
42799575 |
vjudge2 |
E |
Sept. 12, 2018, 1:34 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
4992 |
26726400 |
|
2600 |
61263942 |
Garett |
E |
Sept. 25, 2019, 12:17 p.m. |
OK |
Java 8 |
TESTS |
24 |
2370 |
37068800 |
|
2600 |
61263769 |
Garett |
E |
Sept. 25, 2019, 12:14 p.m. |
OK |
Java 8 |
TESTS |
24 |
2618 |
37068800 |
|
2600 |
50638728 |
vjudge4 |
E |
March 1, 2019, 12:58 p.m. |
OK |
MS C++ |
TESTS |
24 |
2870 |
80998400 |
|
2600 |
remove filters
Back to search problems