两数之模
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.
Description
给定数组 和正整数 ,统计数组中有多少对不同的,使得,输出答案对取模
运算是两数相除的余数
Format
Input
第一行两个整数
第二行 个整数,表示给定数组
Output
一行一个整数
Samples
输入
3 1
1 2 3
输出
3
Limitation
20241128周赛
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2024-11-28 16:30
- End at
- 2024-11-28 18:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 25