質問編集履歴
1
ごじら
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,9 +124,7 @@
|
|
124
124
|
|
125
125
|
sum -= A[i];
|
126
126
|
|
127
|
-
sum %
|
127
|
+
ans += (A[i] * sum) % (1000000000 + 7);
|
128
|
-
|
129
|
-
ans += A[i] * sum;
|
130
128
|
|
131
129
|
ans %= (1000000000 + 7);
|
132
130
|
|