結果

問題 No.8022 縛りFizzBuzz (Easy)
ユーザー i_taku
提出日時 2025-09-04 15:31:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 82,796 KB
実行使用メモリ 53,052 KB
最終ジャッジ日時 2025-09-04 15:31:09
合計ジャッジ時間 2,645 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import pi


N = int(input())
one = int(pi) // int(pi)
three = int(pi)
five = three + one + one
zero = one - one
for i in range(one, N + one):
    ans = ""
    if i % three == zero:
        ans += "Fizz"
    if i % five == zero:
        ans += "Buzz"
    if ans == "":
        ans = i
    print(ans)
0