#P4626. 一道水题 II
一道水题 II
Description
One day, on the way to school, szb met Grey Wolf.
Grey Wolf: If you solve this problem for us, we will let you go.
szb: What problem?
Grey Wolf: Find the smallest number that is divisible by every number in , and take it modulo .
szb: This is too easy. I will have my little brother do it.
Then you proudly accepted this task.
Input Format
One line with one number .
Output Format
One line with one number .
10
2520
Hint
.
Translated by ChatGPT 5
京公网安备 11011102002149号