結果
問題 | No.3022 縛りFizzBuzz (Easy) |
ユーザー | AT274_ |
提出日時 | 2018-02-21 20:39:35 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 433 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 11,952 KB |
実行使用メモリ | 10,196 KB |
最終ジャッジ日時 | 2023-10-19 12:55:30 |
合計ジャッジ時間 | 854 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 32 ms
10,196 KB |
testcase_01 | AC | 29 ms
10,196 KB |
testcase_02 | AC | 30 ms
10,196 KB |
testcase_03 | AC | 29 ms
10,196 KB |
ソースコード
N = int(input()) # ずる two = int(ord("È")) // int(ord("d")) zero = int(str(ord("d"))[two]) one = int(str(ord("e"))[two]) three = int(str(ord("g"))[two]) five = int(str(ord("i"))[two]) fifteen = int(str(one) + str(five)) for i in range(one, N+one): if i % fifteen == zero: print("FizzBuzz") elif i % five == zero: print("Buzz") elif i % three == zero: print("Fizz") else: print(i)