結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー eijiroueijirou
提出日時 2020-11-27 17:56:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 222 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 71,320 KB
最終ジャッジ日時 2023-10-01 04:14:03
合計ジャッジ時間 1,183 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,192 KB
testcase_01 AC 70 ms
71,268 KB
testcase_02 AC 74 ms
71,320 KB
testcase_03 AC 73 ms
71,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for i in range(1, n+1):
    if i % 3 == 0:
        if i % 5 == 0:
            print('FizzBuzz')
        else:
            print('Fizz')
    elif i % 5 == 0:
        print('Buzz')
    else:
        print(i)
0