Task: | Pizzeria |
Sender: | |
Submission time: | 2015-10-11 22:09:37 +0300 |
Language: | C++ |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | WRONG ANSWER | 0 |
#3 | WRONG ANSWER | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | WRONG ANSWER | 0.06 s | 1 | details |
#2 | WRONG ANSWER | 0.05 s | 1 | details |
#3 | WRONG ANSWER | 0.06 s | 1 | details |
#4 | WRONG ANSWER | 0.05 s | 1 | details |
#5 | WRONG ANSWER | 0.06 s | 1 | details |
#6 | WRONG ANSWER | 0.05 s | 2 | details |
#7 | WRONG ANSWER | 0.06 s | 2 | details |
#8 | WRONG ANSWER | 0.06 s | 2 | details |
#9 | WRONG ANSWER | 0.06 s | 2 | details |
#10 | WRONG ANSWER | 0.06 s | 2 | details |
#11 | WRONG ANSWER | 0.06 s | 3 | details |
#12 | WRONG ANSWER | 0.07 s | 3 | details |
#13 | WRONG ANSWER | 0.07 s | 3 | details |
#14 | WRONG ANSWER | 0.07 s | 3 | details |
#15 | WRONG ANSWER | 0.06 s | 3 | details |
Code
#include <iostream> using namespace std; #define M 1000000007 int main() { cin.sync_with_stdio(false); long long sum = 0; long long n; cin >> n; for (int i = 0; i < n; i++) { long long t; cin >> t; long long k = ((n+1)%M * t%M) % M; sum = (sum%M + k%M) % M; } cout << sum << endl; }
Test details
Test 1
Group: 1
Verdict: WRONG ANSWER
input |
---|
10 14 15 98 62 44 94 18 81 23 20 |
correct output |
---|
240128 |
user output |
---|
5159 |
Test 2
Group: 1
Verdict: WRONG ANSWER
input |
---|
10 10 58 20 84 87 47 54 23 6 1 |
correct output |
---|
199680 |
user output |
---|
4290 |
Test 3
Group: 1
Verdict: WRONG ANSWER
input |
---|
10 80 83 53 72 20 34 86 59 3 60 |
correct output |
---|
281600 |
user output |
---|
6050 |
Test 4
Group: 1
Verdict: WRONG ANSWER
input |
---|
10 51 21 94 65 25 14 54 26 98 80 |
correct output |
---|
270336 |
user output |
---|
5808 |
Test 5
Group: 1
Verdict: WRONG ANSWER
input |
---|
10 98 74 9 82 76 44 95 19 21 74 |
correct output |
---|
303104 |
user output |
---|
6512 |
Test 6
Group: 2
Verdict: WRONG ANSWER
input |
---|
20 547665480 437998103 715147312 ... |
correct output |
---|
900482986 |
user output |
---|
545450043 |
Test 7
Group: 2
Verdict: WRONG ANSWER
input |
---|
20 899274006 779214197 868921544 ... |
correct output |
---|
597431505 |
user output |
---|
197070211 |
Test 8
Group: 2
Verdict: WRONG ANSWER
input |
---|
20 815886531 837353495 212009084 ... |
correct output |
---|
500875272 |
user output |
---|
164036787 |
Test 9
Group: 2
Verdict: WRONG ANSWER
input |
---|
20 241554251 300825819 121861755 ... |
correct output |
---|
727413214 |
user output |
---|
128153374 |
Test 10
Group: 2
Verdict: WRONG ANSWER
input |
---|
20 616368574 891725964 339440566 ... |
correct output |
---|
983658830 |
user output |
---|
363362614 |
Test 11
Group: 3
Verdict: WRONG ANSWER
input |
---|
100000 139017989 246745424 98404713 1... |
correct output |
---|
617854724 |
user output |
---|
499507984 |
Test 12
Group: 3
Verdict: WRONG ANSWER
input |
---|
100000 740140163 225697185 306382149 ... |
correct output |
---|
600381749 |
user output |
---|
403052140 |
Test 13
Group: 3
Verdict: WRONG ANSWER
input |
---|
100000 434033625 139042292 589375131 ... |
correct output |
---|
814308700 |
user output |
---|
336667478 |
Test 14
Group: 3
Verdict: WRONG ANSWER
input |
---|
100000 710545624 722749769 936750382 ... |
correct output |
---|
818868442 |
user output |
---|
340928330 |
Test 15
Group: 3
Verdict: WRONG ANSWER
input |
---|
100000 952521692 471204215 999299313 ... |
correct output |
---|
413038708 |
user output |
---|
593461387 |