两数之模
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.
Problem Description
给定数组 和正整数 ,统计数组中有多少对不同的,使得,输出答案对取模
运算是两数相除的余数
Input Format
第一行两个整数
第二行 个整数,表示给定数组
Output Format
一行一个整数
Sample
输入
3 1
1 2 3
输出
3
Hint
重庆邮电大学第十六届ACM程序设计大赛(现场赛)
- Status
- Done
- Rule
- XCPC
- Problem
- 12
- Start at
- 2023-10-15 13:10
- End at
- 2023-10-15 18:10
- Duration
- 5 hour(s)
- Host
- Partic.
- 0