結果
問題 | No.316 もっと刺激的なFizzBuzzをください |
ユーザー |
|
提出日時 | 2019-04-09 01:47:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-01 22:58:12 |
合計ジャッジ時間 | 2,598 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
import mathn = int(input())a,b,c = map(int,input().split())ans = n//aans += n//bans += n//cab = a*b//math.gcd(a,b)ans -= n//abans -= n//(a*c//math.gcd(a,c))ans -= n//(b*c//math.gcd(b,c))ans += n//(ab*c//math.gcd(ab,c))print(ans)