結果
問題 |
No.316 もっと刺激的なFizzBuzzをください
|
ユーザー |
![]() |
提出日時 | 2020-05-24 13:36:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-11 07:15:01 |
合計ジャッジ時間 | 2,300 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 25 WA * 8 |
ソースコード
import math n=int(input()) a,b,c=map(int,input().split()) d = (a*b)//math.gcd(a,b) e = (b*c)//math.gcd(b,c) f = (c*a)//math.gcd(c,a) g = (a*b*c)//(math.gcd(a,(b*c)//math.gcd(b,c))) print(n//a + n//b + n//c - n//d - n//e - n//f + n//g)