結果
| 問題 |
No.3 ビットすごろく
|
| コンテスト | |
| ユーザー |
hogehog63877334
|
| 提出日時 | 2020-02-28 20:15:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2024-10-13 16:33:42 |
| 合計ジャッジ時間 | 7,766 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 10 TLE * 1 -- * 6 |
ソースコード
g = int(input())
me = 1
count = 1
sai = 0
while 1:
si2 = bin(me)
me += si2.count("1")
count += 1
if g == me:
print(count)
exit()
elif me > g:
me -= si2.count("1") * 2
sai += 1
if sai == 5:
print(-1)
exit()
hogehog63877334