結果

問題 No.305 鍵(2)
ユーザー takeya_okino
提出日時 2019-08-28 19:38:54
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 685 bytes
コンパイル時間 2,425 ms
コンパイル使用メモリ 86,508 KB
実行使用メモリ 74,420 KB
平均クエリ数 93.46
最終ジャッジ日時 2024-07-16 18:01:42
合計ジャッジ時間 8,259 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 12 RE * 1
権限があれば一括ダウンロードができます

ソースコード

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