Task: | Product |
Sender: | ∂(Skill)/∂W ≤ 0 |
Submission time: | 2015-09-04 14:40:57 +0300 |
Language: | Java |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.17 s | details |
#2 | WRONG ANSWER | 0.16 s | details |
#3 | WRONG ANSWER | 0.17 s | details |
#4 | WRONG ANSWER | 0.17 s | details |
#5 | WRONG ANSWER | 0.17 s | details |
#6 | WRONG ANSWER | 0.17 s | details |
#7 | WRONG ANSWER | 0.20 s | details |
#8 | WRONG ANSWER | 0.18 s | details |
#9 | WRONG ANSWER | 0.26 s | details |
#10 | WRONG ANSWER | 0.23 s | details |
#11 | WRONG ANSWER | 0.23 s | details |
#12 | WRONG ANSWER | 0.25 s | details |
#13 | WRONG ANSWER | 0.23 s | details |
Code
import java.util.Scanner; public class Summa { public static void main(String[] args) { IO s = new IO(); int n = s.nextInt(); long pro = 1; for (int i = 0; i < n; i++) { pro*=s.nextInt()%1000000007; pro%=1000000007; } System.out.println(pro); s.close(); } }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
5
5 2 3 2 6 |
correct output |
---|
5 10 30 60 360 |
user output |
---|
360 |
Test 2
Verdict: WRONG ANSWER
input |
---|
4
100000 100000 1000000000 2 |
correct output |
---|
100000 999999937 490 980 |
user output |
---|
980 |
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 |
---|
967819750 |
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 |
---|
843141691 |
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 |
---|
467826287 |
Test 6
Verdict: WRONG ANSWER
input |
---|
3706
415250715 515842601 541103121 ... |
correct output |
---|
415250715 393281666 415038041 ... |
user output |
---|
368464789 |
Test 7
Verdict: WRONG ANSWER
input |
---|
27123
340378004 925026654 769754608 ... |
correct output |
---|
340378004 931307555 908315508 ... |
user output |
---|
692706101 |
Test 8
Verdict: WRONG ANSWER
input |
---|
9330
243816047 71026988 682652566 4... |
correct output |
---|
243816047 323253803 542518246 ... |
user output |
---|
834736506 |
Test 9
Verdict: WRONG ANSWER
input |
---|
100000
147668716 175218058 331749062 ... |
correct output |
---|
147668716 463753953 829592527 ... |
user output |
---|
375905275 |
Test 10
Verdict: WRONG ANSWER
input |
---|
100000
50298704 638426282 461382979 7... |
correct output |
---|
50298704 359354430 269646858 6... |
user output |
---|
304569549 |
Test 11
Verdict: WRONG ANSWER
input |
---|
100000
294118419 779666009 167430885 ... |
correct output |
---|
294118419 309920847 329927348 ... |
user output |
---|
835370795 |
Test 12
Verdict: WRONG ANSWER
input |
---|
100000
1000000000 1000000000 10000000... |
correct output |
---|
1000000000 49 999999664 2401 9... |
user output |
---|
183133701 |
Test 13
Verdict: WRONG ANSWER
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 |