結果

問題 No.253 ロウソクの長さ
ユーザー 37zigen37zigen
提出日時 2016-03-22 16:54:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 2,817 ms
コンパイル使用メモリ 75,448 KB
実行使用メモリ 74,476 KB
平均クエリ数 16.72
最終ジャッジ日時 2023-09-23 09:05:48
合計ジャッジ時間 13,596 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 176 ms
71,608 KB
testcase_02 AC 184 ms
72,320 KB
testcase_03 AC 173 ms
71,348 KB
testcase_04 AC 171 ms
71,496 KB
testcase_05 AC 181 ms
71,736 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 166 ms
71,584 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 167 ms
71,724 KB
testcase_15 AC 193 ms
72,284 KB
testcase_16 AC 172 ms
71,988 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 167 ms
70,252 KB
testcase_20 WA -
testcase_21 AC 177 ms
71,784 KB
testcase_22 AC 168 ms
72,300 KB
testcase_23 WA -
testcase_24 AC 186 ms
72,108 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 163 ms
71,976 KB
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder253;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		System.out.println("?100	");
		int a=sc.nextInt();
		int count=0;
		if(a==-1){
			for(int i=0;i<100;i++){
				System.out.println("?0");
				count++;
				int b=sc.nextInt();
				if(b==0){
					System.out.println("!"+count);
					System.exit(0);
				}
			}
		}
	}
}
0