結果

問題 No.304 鍵(1)
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-02 03:35:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 377 ms / 2,000 ms
コード長 429 bytes
コンパイル時間 4,451 ms
コンパイル使用メモリ 71,872 KB
実行使用メモリ 73,696 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 00:04:06
合計ジャッジ時間 5,781 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 157 ms
71,820 KB
testcase_01 AC 186 ms
72,184 KB
testcase_02 AC 377 ms
73,696 KB
testcase_03 AC 182 ms
71,440 KB
testcase_04 AC 292 ms
70,908 KB
testcase_05 AC 178 ms
71,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Exercise46{
  public static void main (String[] args) throws IOException{

    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

    for (int a = 0; a < 1000; a++){
      System.out.printf("%03d\n", a);
      System.out.flush();

      String result = new String(in.readLine());

      if (result.equals("unlocked")){
        break;
      }
    }
  }
}
0