QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#79708#3724. Strange PrimeKevin5307WA 276ms3360kbC++14155b2023-02-20 19:28:482023-02-20 19:28:50

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:28:50]
  • 评测
  • 测评结果:WA
  • 用时:276ms
  • 内存:3360kb
  • [2023-02-20 19:28:48]
  • 提交

answer

#import<iostream>
int64_t p=1e9+7,n,a,w,x;main(){while(std::cin>>n){a=w=1;while(n--)std::cin>>x,a=a*(p-51-x)%p,w=w*x%p;std::cout<<(a-w+p)*215686276%p;}}

详细

Test #1:

score: 0
Wrong Answer
time: 276ms
memory: 3360kb

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:

874718110922301285577149054197643659006115436298959798733873131650798857129382381126207297167851147574604543861141434124186315550698917449729247008559284491940511449896573937042638587099214008686506810838254574502480440711792847181303917854790015173102506748349630101907703162597009720529525091114238...

result:

wrong output format Expected integer, but "874718110922301285577149054197...6115900498598479463158596207708" found