結果
| 問題 | 
                            No.1264 010
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-10-23 22:25:14 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 344 bytes | 
| コンパイル時間 | 345 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 81,024 KB | 
| 最終ジャッジ日時 | 2024-07-21 11:07:53 | 
| 合計ジャッジ時間 | 3,093 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | TLE * 1 -- * 8 | 
ソースコード
def get_count(n):
    count = 0
    while "010" in n:
        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(str(bin(ans))[2:])
            break
        ans += 1