結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-12 19:20:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 1,940 ms
コンパイル使用メモリ 72,124 KB
実行使用メモリ 56,508 KB
最終ジャッジ日時 2023-10-11 10:59:57
合計ジャッジ時間 5,808 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,720 KB
testcase_01 AC 121 ms
55,784 KB
testcase_02 AC 122 ms
56,172 KB
testcase_03 AC 121 ms
55,884 KB
testcase_04 AC 119 ms
55,784 KB
testcase_05 AC 123 ms
56,148 KB
testcase_06 AC 122 ms
56,156 KB
testcase_07 AC 122 ms
56,032 KB
testcase_08 AC 121 ms
56,084 KB
testcase_09 AC 120 ms
56,036 KB
testcase_10 AC 122 ms
56,112 KB
testcase_11 AC 122 ms
56,508 KB
testcase_12 AC 120 ms
55,796 KB
testcase_13 AC 119 ms
56,044 KB
testcase_14 AC 120 ms
55,744 KB
testcase_15 AC 120 ms
53,916 KB
testcase_16 AC 121 ms
56,052 KB
testcase_17 AC 122 ms
56,268 KB
testcase_18 AC 122 ms
56,164 KB
testcase_19 AC 122 ms
56,172 KB
testcase_20 AC 119 ms
56,396 KB
testcase_21 AC 122 ms
56,252 KB
testcase_22 AC 117 ms
56,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		StringBuilder sb = new StringBuilder();
		for (int i=1; i<=100; i++) {
			sb.append(i);
		}
		
		int d = sc.nextInt();
		
		System.out.println(sb.toString().charAt(d-1));
		
	}
}
0