結果
| 問題 | No.1264 010 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-23 22:22:33 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 95,972 KB |
| 実行使用メモリ | 93,860 KB |
| 最終ジャッジ日時 | 2026-08-21 15:53:51 |
| 合計ジャッジ時間 | 5,866 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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