結果
問題 |
No.305 鍵(2)
|
ユーザー |
|
提出日時 | 2018-09-17 23:47:42 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 279 ms / 2,000 ms |
コード長 | 751 bytes |
コンパイル時間 | 2,192 ms |
コンパイル使用メモリ | 74,128 KB |
実行使用メモリ | 72,100 KB |
平均クエリ数 | 86.69 |
最終ジャッジ日時 | 2024-07-17 01:53:38 |
合計ジャッジ時間 | 5,734 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int a[]=new int[10],m,t1,t2=0,j; String s=new String(); for(int i=0;i<10;++i){ m=0; for(j=0;j<10;++j){ a[i]=j; for(int k=0;k<10;++k)System.out.print(a[k]); System.out.println(); System.out.flush(); t1=sc.nextInt(); s=sc.next(); if(t1>9)break; if(t1>m){ m=t1; t2=j; } } if(10>j)break; a[i]=t2; } sc.close(); } }