You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solution/0900-0999/0985.Sum of Even Numbers After Queries/README_EN.md
+126-21
Original file line number
Diff line number
Diff line change
@@ -6,28 +6,16 @@
6
6
7
7
<p>We have an array <code>A</code> of integers, and an array <code>queries</code> of queries.</p>
8
8
9
-
10
-
11
9
<p>For the <code>i</code>-th query <code>val = queries[i][0], index = queries[i][1]</code>, we add <fontface="monospace">val</font> to <code>A[index]</code>. Then, the answer to the <code>i</code>-th query is the sum of the even values of <code>A</code>.</p>
12
10
13
-
14
-
15
11
<p><em>(Here, the given <code>index = queries[i][1]</code> is a 0-based index, and each query permanently modifies the array <code>A</code>.)</em></p>
16
12
17
-
18
-
19
13
<p>Return the answer to all queries. Your <code>answer</code> array should have <code>answer[i]</code> as the answer to the <code>i</code>-th query.</p>
0 commit comments