ª. 数组乘积模

    Type: Default 1000ms 256MiB

数组乘积模

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

Format

Input

有多组测试数据 每组数据第一行是两个整数 n,C 接下来一行有n个整数,代表a1,a2,……,an; 其中 2<=n<=110 ai>0 ,C<&lt>10^9

Output

每组数据输出(a0a1...*an)%c

Samples

2 10
2 5
0

Limitation

1s, 1024KiB for each test case.

第七届SWPU-ACM老生预选赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
187
Start at
2022-9-19 14:00
End at
2022-10-28 14:00
Duration
936 hour(s)
Host
Partic.
45