Login
Sign-Up
Problem
Contest
Category
Submissions
English
Problem
Contest
Category
Submissions
English
#216
Submit Code
Submissions
기약분수
Time Limit: 1 Sec
Memory Limit: 512 MiB
한국어
Example Input 1
Copy
7 5
Example Output 1
Copy
4
Example Input 2
Copy
251 10
Example Output 2
Copy
150
Example Input 3
Copy
999999999989 2000000
Example Output 3
Copy
607926978871
Language-Specific Restrictions