結果
問題 | No.316 もっと刺激的なFizzBuzzをください |
ユーザー |
![]() |
提出日時 | 2022-05-15 11:24:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 1,000 ms |
コード長 | 189 bytes |
コンパイル時間 | 405 ms |
コンパイル使用メモリ | 81,980 KB |
実行使用メモリ | 53,688 KB |
最終ジャッジ日時 | 2024-07-26 13:15:25 |
合計ジャッジ時間 | 2,928 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
import mathm = math.gcdN = int(input())a, b, c=map(int, input().split())l1 = a*b//m(a,b)l2 = b*c//m(b,c)l3 = c*a//m(c,a)l = l1*c//m(l1,c)print(N//a+N//b+N//c-N//l1-N//l2-N//l3+N//l)