結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー megumikmegumik
提出日時 2017-01-30 01:40:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 213 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 6,600 KB
実行使用メモリ 6,072 KB
最終ジャッジ日時 2023-08-25 15:11:40
合計ジャッジ時間 666 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,860 KB
testcase_01 AC 11 ms
5,924 KB
testcase_02 AC 11 ms
6,072 KB
testcase_03 AC 11 ms
5,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input()) + 1
for i in xrange(1,n):
    if i%5==0:
        if i%3==0:
            print "FizzBuzz"
        else:
            print "Buzz"
    elif i%3==0:
        print "Fizz"
    else:
        print i
0