QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#79693 | #3724. Strange Prime | Pure_Furies | WA | 266ms | 3352kb | C++14 | 182b | 2023-02-20 19:19:07 | 2023-02-20 19:19:07 |
Judging History
answer
#import<iostream>
using namespace std;int mod=1e9+7,n;main(){while(cin>>n){int a=1,w=1,x;while(n--)cin>>x,a=a*(mod-51ll-x)%mod,w=w*x%mod;cout<<(a-w+mod)%mod*215686276ll%mod<<'\n';}}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 266ms
memory: 3352kb
input:
10 2357 42596 7212 30898 43465 68984 60783 59520 53767 77560 10 39115 88080 83553 61736 90821 39690 13194 81396 38051 55993 10 95070 81321 71632 21071 10807 46105 66844 63678 47577 75132 10 43898 93215 26791 11849 61857 1423 76971 83489 52044 61325 10 22610 16613 90 53598 80110 42651 64942 67114 242...
output:
485122613 564088781 392878760 388561928 628740057 201017884 -233483409 619265543 552560984 -547418723 -666755248 -82040095 829683407 256376954 -487927240 2991366 392709086 439892429 288365022 242683847 971443530 433419646 975607810 340818044 583508785 520167518 -927236294 20611392 51240879 182272918...
result:
wrong answer 1st numbers differ - expected: '8747181', found: '485122613'