結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー youmen33018173youmen33018173
提出日時 2018-08-04 10:43:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 296 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 11,836 KB
実行使用メモリ 10,148 KB
最終ジャッジ日時 2023-10-19 21:47:11
合計ジャッジ時間 788 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,144 KB
testcase_01 AC 30 ms
10,144 KB
testcase_02 AC 30 ms
10,144 KB
testcase_03 AC 29 ms
10,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def options (a):
    for x in range(a):
        x = x + 1
        if x % 3 == 0 and x % 5 == 0:
            print("FizzBuzz")
        elif x % 3 == 0:
            print("Fizz")
        elif x % 5 == 0:
            print("Buzz")
        else:
            print(x)


inp = input()
options(int(inp))
0