QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#79693#3724. Strange PrimePure_FuriesWA 266ms3352kbC++14182b2023-02-20 19:19:072023-02-20 19:19:07

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-20 19:19:07]
  • 评测
  • 测评结果:WA
  • 用时:266ms
  • 内存:3352kb
  • [2023-02-20 19:19:07]
  • 提交

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';}}

详细

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'