結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| コンテスト | |
| ユーザー |
mura40424
|
| 提出日時 | 2014-11-23 18:16:18 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 3,819 ms |
| コンパイル使用メモリ | 76,988 KB |
| 実行使用メモリ | 48,388 KB |
| 最終ジャッジ日時 | 2025-01-02 20:28:02 |
| 合計ジャッジ時間 | 8,251 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 1 WA * 20 |
ソースコード
import java.util.Scanner;
public class CopyOfMain {
public static void main(String[] args){
Scanner S = new Scanner(System.in);
int N = S.nextInt();
if(N==1)
System.out.println(0);
String n = Integer.toBinaryString(N+1);
int tmp = n.length()-1;
System.out.println(tmp);
}
}
mura40424