結果
| 問題 |
No.415 ぴょん
|
| コンテスト | |
| ユーザー |
yn
|
| 提出日時 | 2016-08-26 22:49:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 167 bytes |
| コンパイル時間 | 208 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 88,832 KB |
| 最終ジャッジ日時 | 2024-11-08 09:39:25 |
| 合計ジャッジ時間 | 5,531 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 RE * 25 |
ソースコード
import fractions
n, d = map(int,input().split())
if d == 1:
print(n)
exit()
if fractions.gcd(n, d) == 1:
ans = n
else:
ans = n // d - 1
print(ans)
yn