結果
| 問題 | No.294 SuperFizzBuzz |
| コンテスト | |
| ユーザー |
ckawatak
|
| 提出日時 | 2018-07-28 17:16:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 85,216 KB |
| 実行使用メモリ | 88,764 KB |
| 最終ジャッジ日時 | 2026-03-27 08:24:27 |
| 合計ジャッジ時間 | 7,301 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 TLE * 1 |
| other | -- * 12 |
ソースコード
N = int(input())
def sfb(n):
xs = str(n)
for x in xs:
if x != '3' and x != '5':
return False
return True
def solve():
s = 0
c = 0
n = 37
while True:
s = n * 15
if sfb(s):
c = c + 1
if c == N:
return s
n = n + 10
print(solve())
ckawatak