結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー papinniepapinnie
提出日時 2019-08-02 16:31:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 7,908 KB
最終ジャッジ日時 2023-09-18 18:16:42
合計ジャッジ時間 716 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,780 KB
testcase_01 AC 17 ms
7,828 KB
testcase_02 AC 17 ms
7,908 KB
testcase_03 AC 15 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = int(input())

for x in range(1, A+1):
    if x % (3*5) == 0:
        print("FizzBuzz")
    elif (x % 3) == 0:
        print("Fizz")
    elif x % 5 == 0:
        print("Buzz")
    else:
        print(x)


0