Preparing NOJ

显而易见的数论

40000ms 262144K

Description:

Input:

Output:

Sample Input:

input 1
1
3 3
0 1 2

input 2
2
5 4
4 1 5 2

input 3
3
7 5
12 11 45 6 2

Sample Output:

output 1

4

output 2
31

output 3
7346

Info

BZOJ

Provider BZOJ

Origin BZOJ4772

Code BZOJ4772

Tags

Submitted 0

Passed 0

AC Rate 0%

Date 08/25/2019 18:55:31

Related

Nothing Yet