結果

問題 No.1642 Registration
ユーザー ks2mks2m
提出日時 2021-08-13 21:21:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 5,270 ms
コンパイル使用メモリ 74,472 KB
実行使用メモリ 54,264 KB
最終ジャッジ日時 2024-04-14 16:32:29
合計ジャッジ時間 5,301 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,264 KB
testcase_01 AC 126 ms
54,088 KB
testcase_02 AC 125 ms
53,976 KB
testcase_03 AC 125 ms
53,948 KB
testcase_04 AC 124 ms
53,816 KB
testcase_05 AC 125 ms
53,820 KB
testcase_06 AC 123 ms
53,880 KB
testcase_07 AC 123 ms
54,212 KB
testcase_08 AC 125 ms
54,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder(sc.next());
		sc.close();

		while (sb.length() < 3) {
			sb.insert(0, '0');
		}
		System.out.println(sb.toString());
	}
}
0