結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
|
| 提出日時 | 2018-01-01 15:26:58 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 5,000 ms |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-22 23:35:11 |
| 合計ジャッジ時間 | 696 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
n = int(input())
def fizzbuzz(n):
flg = False
if (n % 3 == 0):
flg = True
print('Fizz', end='')
if (n % 5 == 0):
flg = True
print('Buzz', end='')
if not flg:
print(n, end='')
print('')
for i in range(n):
fizzbuzz(i + 1)