結果

問題 No.3022 縛りFizzBuzz (Easy)
ユーザー しらっ亭しらっ亭
提出日時 2018-03-21 03:20:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-09-07 00:32:44
合計ジャッジ時間 1,860 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import math
n = int(input())

one = int(math.e / math.e)
three = one+one+one
five = three+one+one

for i in range(one, n+one):
	ret = ''
	if not (i % three):
		ret += 'Fizz'
	if not (i % five):
		ret += 'Buzz'
	if not ret:
		ret = str(i)
	print(ret)
0