Submit solution
Points:
100.00
Time limit:
1.0s
Memory limit:
1000M
Input:
stdin
Output:
stdout
Author:
Problem type
Allowed languages
C, C++, GAS64, Pascal, Perl, PHP, Python, Sed, TCL, Text
Cho dãy số nguyên gồm
;</li> chia hết cho .
Dữ liệu
- Dòng đầu gồm một số nguyên dương
. - Dòng thứ hai gồm
chữ số .
Kết quả
- Gồm một số nguyên duy nhất là kết quả bài toán.
Ví dụ
Sample Input 1
Copy
2
5 6
Sample Output 1
Copy
1
Giải thích
- Gồm cặp
thỏa mãn vì: chia hết cho
Nguồn: Free Contest
Comments