結果

問題 No.304 鍵(1)
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-11 23:17:42
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 439 bytes
コンパイル時間 1,994 ms
コンパイル使用メモリ 73,368 KB
実行使用メモリ 73,256 KB
平均クエリ数 1.00
最終ジャッジ日時 2023-09-23 15:40:06
合計ジャッジ時間 4,862 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int num = 0;
		while (true) {
			String s = "";
			if (num <= 9) {
				s += "00";
				s += num;
			}
			if (10<=num && num<=99) {
				s += "0";
				s += num;
			}
			else {
				s += num;
			}
			System.out.println(s);
			String result = sc.next();
			if (result.equals("unlocked")) {break;}
			num++;
		}
	}
}
0