結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-03 20:15:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 18,612 KB |
| 最終ジャッジ日時 | 2024-09-24 22:02:27 |
| 合計ジャッジ時間 | 3,312 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 TLE * 1 -- * 3 |
ソースコード
n = int(input())
s = ""
for i in range(1, n + 1):
flg = False
if i % 3 == 0:
s += "Fizz"
flg = True
if i % 5 == 0:
s += "Buzz"
flg = True
if not flg:
s += str(i)
print(s.count("z"))