結果
問題 | No.316 もっと刺激的なFizzBuzzをください |
ユーザー |
|
提出日時 | 2021-04-17 14:02:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 1,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-07-03 21:36:50 |
合計ジャッジ時間 | 2,832 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
N=int(input())import matha,b,c=map(int,input().split())ab=a*b//math.gcd(a,b)bc=b*c//math.gcd(c,b)ac=a*c//math.gcd(a,c)abc=ab*c//math.gcd(ab,c)print(N//a+N//b+N//c-N//ab-N//bc-N//ac+N//abc)