結果
| 問題 |
No.316 もっと刺激的なFizzBuzzをください
|
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2025-10-11 19:32:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 1,000 ms |
| コード長 | 256 bytes |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 82,484 KB |
| 実行使用メモリ | 53,660 KB |
| 最終ジャッジ日時 | 2025-10-11 19:32:08 |
| 合計ジャッジ時間 | 2,765 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 33 |
ソースコード
import math N = int(input()) a,b,c = map(int,input().split()) x = a * b // math.gcd(a,b) y = b * c // math.gcd(b,c) z = c * a // math.gcd(c,a) p = x * y // math.gcd(x,y) ans = N // a + N // b + N // c - N // x - N // y - N // z + N // p print (ans)
SPD_9X2