結果
問題 |
No.3152 neither multiple of A nor B
|
ユーザー |
![]() |
提出日時 | 2025-05-20 21:34:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 105 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 81,712 KB |
実行使用メモリ | 54,228 KB |
最終ジャッジ日時 | 2025-05-20 21:35:06 |
合計ジャッジ時間 | 3,100 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 40 |
ソースコード
from math import gcd N,A,B = list(map(int,input().split())) NG = N//A + N//B - N//gcd(A,B) print(N - NG)