結果

問題 No.304 鍵(1)
ユーザー shinwisteriashinwisteria
提出日時 2018-03-14 20:27:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 345 ms / 2,000 ms
コード長 402 bytes
コンパイル時間 4,229 ms
コンパイル使用メモリ 74,516 KB
実行使用メモリ 75,340 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 01:43:00
合計ジャッジ時間 5,471 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
71,956 KB
testcase_01 AC 193 ms
71,276 KB
testcase_02 AC 345 ms
75,340 KB
testcase_03 AC 175 ms
72,096 KB
testcase_04 AC 269 ms
72,792 KB
testcase_05 AC 172 ms
71,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con304 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		for(int i = 0;i < 1000;i++){
			String ans = "000";
			int l = Integer.toString(i).length();
			ans = ans.substring(0, 3-l) + Integer.toString(i);
			System.out.println(ans);
			if(s.nextLine().equals("unlocked")){
				break;
			}
		}
		s.close();

	}

}
0