結果
| 問題 | No.1264 010 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-23 22:22:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 86,144 KB |
| 最終ジャッジ日時 | 2024-07-21 11:01:00 |
| 合計ジャッジ時間 | 4,834 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 2 |
| other | -- * 9 |
ソースコード
def get_count(n):
count = 0
while "010" in n:
n.replace("010", "101", 1)
count += 1
return count
N = int(input())
if N == 0:
print(1)
else:
ans = 1
while True:
count = get_count(str(bin(ans))[2:])
if count == N:
print(ans)
break