| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 307 | 104 | 69 | 32.547% |
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$.