結果
問題 | No.8022 縛りFizzBuzz (Easy) |
ユーザー | masa |
提出日時 | 2017-03-31 23:07:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-07 05:18:50 |
合計ジャッジ時間 | 1,295 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
n = int(input()) three = [True, False, False] * n five = [True, False, False, False, False] * n one = ord('b') - ord('a') for i in range(one, n + one): s = "" if three[i]: s += 'Fizz' if five[i]: s += 'Buzz' if s == "": print(i) else: print(s)