結果
問題 |
No.305 鍵(2)
|
ユーザー |
![]() |
提出日時 | 2019-08-28 19:43:11 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 685 bytes |
コンパイル時間 | 2,443 ms |
コンパイル使用メモリ | 76,648 KB |
実行使用メモリ | 72,856 KB |
平均クエリ数 | 92.77 |
最終ジャッジ日時 | 2024-07-16 18:01:49 |
合計ジャッジ時間 | 6,874 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 RE * 2 |
ソースコード
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(k == i) { t += j; } 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); } }