結果

問題 No.305 鍵(2)
ユーザー takeya_okinotakeya_okino
提出日時 2019-08-28 19:38:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 685 bytes
コンパイル時間 3,094 ms
コンパイル使用メモリ 74,212 KB
実行使用メモリ 73,484 KB
平均クエリ数 93.46
最終ジャッジ日時 2023-09-23 18:08:15
合計ジャッジ時間 9,550 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String ans = "";
    for(int i = 0; i < 10; i++) {
      int s = 0;
      int l = 0;
      for(int j = 0; j < 10; j++) {
        String t = "";
        for(int k = 0; k < 10; k++) {
          if(j == i) {
            t += k;
          } else {
            t += 0;
          }
        }
        System.out.println(t);
        System.out.flush();
        int L = sc.nextInt();
        String str = sc.next();
        if(l <= L) {
          s = j;
          l = L;
        }
      }
      ans += s;
    }
    System.out.println(ans);
    System.exit(0);
  }
}
0