結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
maurice_1210
|
| 提出日時 | 2018-06-10 11:09:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 263 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-30 13:13:32 |
| 合計ジャッジ時間 | 622 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
N = input()
N = int(N)
for i in range(1, N + 1, 1):
if i % 3 == 0 and not i % 5 == 0:
print("Fizz")
elif i % 5 == 0 and not i % 3 == 0:
print("Buzz")
elif i % 5 == 0 and i % 3 == 0:
print("FizzBuzz")
else:
print(i)
maurice_1210