QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#79765 | #3724. Strange Prime | Pure_Furies | WA | 250ms | 3484kb | C++14 | 150b | 2023-02-20 21:19:30 | 2023-02-20 21:19:32 |
Judging History
answer
#import<iostream>
int64_t n,x,M=1e9+7,t,a;main(){while(std::cin>>n){t=a=215686276;for(;n--;(t*=M-x)%=M,(a*=M-51-x)%=M)std::cin>>x;printf("%d\n",a);}}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 250ms
memory: 3484kb
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:
727727691 683585005 904077179 92412963 675132488 198397323 420771304 219644293 989499920 254915073 791503333 687510611 948848003 668971968 857706894 497039365 442123253 3160035 370980935 30683365 646714319 184080650 964399900 171895707 198895626 155009881 82426857 744604334 822505143 427228667 91226...
result:
wrong answer 1st numbers differ - expected: '8747181', found: '727727691'