結果

問題 No.304 鍵(1)
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-21 18:46:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 303 ms / 2,000 ms
コード長 506 bytes
コンパイル時間 3,937 ms
コンパイル使用メモリ 80,608 KB
実行使用メモリ 73,740 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 01:20:27
合計ジャッジ時間 5,927 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
70,488 KB
testcase_01 AC 166 ms
72,040 KB
testcase_02 AC 303 ms
73,440 KB
testcase_03 AC 160 ms
73,740 KB
testcase_04 AC 245 ms
72,956 KB
testcase_05 AC 164 ms
72,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int test = 0;
    while(true) {
      String num = "";
      if(test < 10) {
        num = "00" + String.valueOf(test);
      } else if(test < 100) {
        num = "0" + String.valueOf(test);
      } else {
        num = String.valueOf(test);
      }
      test++;
      System.out.println(num);
      String ret = sc.next();
      if(ret.equals("unlocked")) break;
    }
  }
}
0