結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー Mcpu3Mcpu3
提出日時 2018-12-04 14:08:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 1,866 ms
コンパイル使用メモリ 72,052 KB
実行使用メモリ 56,584 KB
最終ジャッジ日時 2023-09-21 12:22:16
合計ジャッジ時間 5,564 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
56,120 KB
testcase_01 AC 114 ms
55,856 KB
testcase_02 AC 114 ms
56,312 KB
testcase_03 AC 113 ms
54,092 KB
testcase_04 AC 115 ms
56,076 KB
testcase_05 AC 114 ms
56,372 KB
testcase_06 AC 113 ms
56,324 KB
testcase_07 AC 114 ms
55,940 KB
testcase_08 AC 114 ms
56,584 KB
testcase_09 AC 113 ms
56,216 KB
testcase_10 AC 117 ms
55,900 KB
testcase_11 AC 118 ms
55,720 KB
testcase_12 AC 114 ms
56,320 KB
testcase_13 AC 114 ms
55,988 KB
testcase_14 AC 113 ms
56,156 KB
testcase_15 AC 113 ms
56,408 KB
testcase_16 AC 113 ms
55,900 KB
testcase_17 AC 113 ms
56,536 KB
testcase_18 AC 115 ms
56,316 KB
testcase_19 AC 115 ms
56,416 KB
testcase_20 AC 115 ms
56,312 KB
testcase_21 AC 114 ms
56,200 KB
testcase_22 AC 113 ms
55,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
	static char C[] = new char[101];
	static int top = 0;
	
	public static void push(int i) {
		String tmp = String.valueOf(i);
		for (int j = 0; j < tmp.length(); ++j) {
			C[top] = tmp.charAt(j);
			++top;
		}
	}
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int D = sc.nextInt();
		sc.close();
		for (int i = 1; i <= 55; ++i) push(i);
		System.out.print(C[D - 1]);
	}
}
0