結果

問題 No.8022 縛りFizzBuzz (Easy)
ユーザー AT274_
提出日時 2018-02-21 20:39:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 433 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-19 09:01:50
合計ジャッジ時間 944 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

# ずる
two = int(ord("È")) // int(ord("d"))
zero = int(str(ord("d"))[two])
one = int(str(ord("e"))[two])
three = int(str(ord("g"))[two])
five = int(str(ord("i"))[two])
fifteen = int(str(one) + str(five))

for i in range(one, N+one):
    if i % fifteen == zero:
        print("FizzBuzz")
    elif i % five == zero:
        print("Buzz")
    elif i % three == zero:
        print("Fizz")
    else:
        print(i)
0