結果

問題 No.305 鍵(2)
ユーザー kou6839
提出日時 2015-11-28 02:15:37
言語 Java
(openjdk 23)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 443 bytes
コンパイル時間 3,476 ms
コンパイル使用メモリ 76,252 KB
実行使用メモリ 71,300 KB
平均クエリ数 1.00
最終ジャッジ日時 2024-07-16 06:46:05
合計ジャッジ時間 8,651 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		StringBuilder now = new StringBuilder("%%%%%%%%%%");
		int correct = 0;
		t:for(int i=0;i<10;i++){
			for(int j=0;j<10;j++){
				now.replace(i, i+1, ""+j);
				System.out.println(now);
				int a = sc.nextInt();
				String b = sc.next();
				if(correct<a){
					correct++;
					continue t;
				}
			}
		}
		
		
	}
}
0