結果
| 問題 | No.1264 010 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-23 22:22:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 85,604 KB |
| 実行使用メモリ | 96,852 KB |
| 最終ジャッジ日時 | 2026-04-03 04:31:17 |
| 合計ジャッジ時間 | 4,780 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