結果

問題 No.3022 縛りFizzBuzz (Easy)
ユーザー lemondolemondo
提出日時 2020-12-07 16:42:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 53,404 KB
最終ジャッジ日時 2023-10-17 16:32:16
合計ジャッジ時間 1,164 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
three = ''
five = ''
for i in range(True, N+True):
    three += '*'
    five += '*'
    if three=='***' and five=='*****':
        print('FizzBuzz')
        three = ''
        five = ''
    elif three=='***':
        three = ''
        print('Fizz')
    elif five=='*****':
        five = ''
        print('Buzz')
    else:
        print(i)
0