| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 310 | 106 | 71 | 33.178% |
You are given two integers $n$ and $k$. Find the sum of all positive integers less than or equal to $nk$ and coprime with $n$.
The first and only line of the input contains two integers $n$ and $k$.
Print the answer.
2 5
25
Being coprime with $2$ is the same as being an odd number. Thus, the answer is $1+3+5+7+9 = 25$.