Task: | Product |
Sender: | 🐟FishyGoldenBeetroot |
Submission time: | 2015-09-09 02:49:09 +0300 |
Language: | C++ |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.06 s | details |
#2 | WRONG ANSWER | 0.05 s | details |
#3 | WRONG ANSWER | 0.05 s | details |
#4 | WRONG ANSWER | 0.06 s | details |
#5 | WRONG ANSWER | 0.06 s | details |
#6 | WRONG ANSWER | 0.05 s | details |
#7 | WRONG ANSWER | 0.06 s | details |
#8 | WRONG ANSWER | 0.06 s | details |
#9 | WRONG ANSWER | 0.06 s | details |
#10 | WRONG ANSWER | 0.07 s | details |
#11 | WRONG ANSWER | 0.06 s | details |
#12 | WRONG ANSWER | 0.06 s | details |
#13 | ACCEPTED | 0.06 s | details |
Code
#include <bits/stdc++.h>#define M 1000000007using namespace std;int main () {ios_base::sync_with_stdio(0);int n = 0;int c = 0;vector<int> o;cin >> n;o.resize(n);cin >> c;o[0] = c;for (int i = 1; i < n; i++){cin >> c;o[i] = (o[i-1] * c) % M;}for (int i = 0; i < n; i++){cout << o[i] << " ";}cout << "\n";return 0;}
Test details
Test 1
Verdict: ACCEPTED
input |
---|
5
5 2 3 2 6 |
correct output |
---|
5 10 30 60 360 |
user output |
---|
5 10 30 60 360 |
Test 2
Verdict: WRONG ANSWER
input |
---|
4
100000 100000 1000000000 2 |
correct output |
---|
100000 999999937 490 980 |
user output |
---|
100000 410065401 95268857 1905... |
Test 3
Verdict: WRONG ANSWER
input |
---|
69
17 9 3 19 16 7 13 18 4 13 1 2 ... |
correct output |
---|
17 153 459 8721 139536 976752 ... |
user output |
---|
17 153 459 8721 139536 976752 ... |
Test 4
Verdict: WRONG ANSWER
input |
---|
55
6 8 7 5 3 9 14 3 17 16 20 14 1... |
correct output |
---|
6 48 336 1680 5040 45360 63504... |
user output |
---|
6 48 336 1680 5040 45360 63504... |
Test 5
Verdict: WRONG ANSWER
input |
---|
98
6 4 13 10 19 2 16 20 13 9 2 1 ... |
correct output |
---|
6 24 312 3120 59280 118560 189... |
user output |
---|
6 24 312 3120 59280 118560 189... |
Test 6
Verdict: WRONG ANSWER
input |
---|
3706
415250715 515842601 541103121 ... |
correct output |
---|
415250715 393281666 415038041 ... |
user output |
---|
415250715 132706636 83359244 -... |
Test 7
Verdict: WRONG ANSWER
input |
---|
27123
340378004 925026654 769754608 ... |
correct output |
---|
340378004 931307555 908315508 ... |
user output |
---|
340378004 -574994344 -28230744... |
Test 8
Verdict: WRONG ANSWER
input |
---|
9330
243816047 71026988 682652566 4... |
correct output |
---|
243816047 323253803 542518246 ... |
user output |
---|
243816047 853606932 904620465 ... |
Test 9
Verdict: WRONG ANSWER
input |
---|
100000
147668716 175218058 331749062 ... |
correct output |
---|
147668716 463753953 829592527 ... |
user output |
---|
147668716 -670994113 955791027... |
Test 10
Verdict: WRONG ANSWER
input |
---|
100000
50298704 638426282 461382979 7... |
correct output |
---|
50298704 359354430 269646858 6... |
user output |
---|
50298704 105859872 211568992 -... |
Test 11
Verdict: WRONG ANSWER
input |
---|
100000
294118419 779666009 167430885 ... |
correct output |
---|
294118419 309920847 329927348 ... |
user output |
---|
294118419 711059092 -978922389... |
Test 12
Verdict: WRONG ANSWER
input |
---|
100000
1000000000 1000000000 10000000... |
correct output |
---|
1000000000 49 999999664 2401 9... |
user output |
---|
1000000000 -486618617 81576089... |
Test 13
Verdict: ACCEPTED
input |
---|
100000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |
correct output |
---|
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |
user output |
---|
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |