結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-14 13:34:33 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 139 bytes |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 41,592 KB |
| 最終ジャッジ日時 | 2024-10-13 01:52:39 |
| 合計ジャッジ時間 | 2,142 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 21 |
ソースコード
let x=int(input())
let xbin=format(x,'b')
let len_xbin=int(len(xbin))
if (x&(x-1)==0){
print(len_xbin-1)
}else{
print(len_xbin)
}