結果
| 問題 | No.316 もっと刺激的なFizzBuzzをください |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-09 11:26:15 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 104 ms / 1,000 ms |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 77,268 KB |
| 最終ジャッジ日時 | 2025-12-03 18:25:43 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 33 |
ソースコード
N=input() (A,B,C)=map(int,raw_input().split()) def g(p,q):return p if q==0 else g(q,p % q) def l(p,q):return p/g(p,q)*q print N/A+N/B+N/C-N/l(A,B)-N/l(B,C)-N/l(C,A)+N/l(l(A,B),C)