結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
TatsuDX
|
| 提出日時 | 2016-10-16 22:01:58 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 249 ms / 2,000 ms |
| コード長 | 595 bytes |
| コンパイル時間 | 3,754 ms |
| コンパイル使用メモリ | 75,252 KB |
| 実行使用メモリ | 71,160 KB |
| 平均クエリ数 | 44.08 |
| 最終ジャッジ日時 | 2024-07-17 00:31:24 |
| 合計ジャッジ時間 | 7,593 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
import java.util.Scanner;
public class Test {
public static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int[] n = new int[10];
int cnt = 0, tmp, idx = 0;
System.out.println("0000000000");
cnt = sc.nextInt();
sc.next();
while(cnt < 10){
for(int i = 1; i < 10; i++){
n[idx] = i;
for(int j = 0; j < 10; j++){
System.out.print(n[j]);
}
System.out.println();
tmp = sc.nextInt();
sc.next();
if(cnt < tmp){
cnt = tmp;
break;
}
if(cnt > tmp){
n[idx]--;
break;
}
}
idx++;
}
}
}
TatsuDX