結果
| 問題 |
No.294 SuperFizzBuzz
|
| コンテスト | |
| ユーザー |
ckawatak
|
| 提出日時 | 2018-07-28 17:16:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 362 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 80,512 KB |
| 最終ジャッジ日時 | 2024-07-05 22:04:59 |
| 合計ジャッジ時間 | 7,975 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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