結果
問題 | No.305 鍵(2) |
ユーザー |
![]() |
提出日時 | 2016-10-16 21:51:28 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 656 bytes |
コンパイル時間 | 4,028 ms |
コンパイル使用メモリ | 75,844 KB |
実行使用メモリ | 72,768 KB |
平均クエリ数 | 17.08 |
最終ジャッジ日時 | 2024-07-16 11:08:17 |
合計ジャッジ時間 | 9,519 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 11 |
ソースコード
import java.util.Scanner;public class Test {public static Scanner sc = new Scanner(System.in);public static void main(String[] args) {byte[] n = new byte[10];System.out.println("0000000000");int cnt = sc.nextInt(), tmp;String s = sc.next();if (cnt == 10) {return;}for (int i = 0; i < 10; i++) {for (int j = 1; j < 10; j++) {n[i] = (byte)j;for (int k = 0; k < 10; k++) {System.out.print(n[i]);}System.out.println();tmp = sc.nextInt();s = sc.next();if (tmp == 10) {return;}if (cnt != tmp) {if (cnt > tmp) {n[i]--;}break;}}}}}