結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー NewbiekunNewbiekun
提出日時 2019-01-26 19:16:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 305 bytes
コンパイル時間 3,670 ms
コンパイル使用メモリ 77,748 KB
実行使用メモリ 58,580 KB
最終ジャッジ日時 2023-10-17 13:02:47
合計ジャッジ時間 8,509 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 160 ms
58,300 KB
testcase_01 AC 163 ms
58,536 KB
testcase_02 AC 161 ms
58,520 KB
testcase_03 AC 160 ms
58,520 KB
testcase_04 AC 159 ms
58,220 KB
testcase_05 AC 160 ms
58,300 KB
testcase_06 AC 161 ms
58,308 KB
testcase_07 AC 159 ms
58,548 KB
testcase_08 AC 160 ms
58,580 KB
testcase_09 AC 159 ms
58,420 KB
testcase_10 AC 160 ms
58,524 KB
testcase_11 AC 158 ms
58,304 KB
testcase_12 AC 160 ms
58,368 KB
testcase_13 AC 160 ms
58,524 KB
testcase_14 AC 158 ms
58,516 KB
testcase_15 AC 161 ms
58,440 KB
testcase_16 AC 161 ms
58,528 KB
testcase_17 AC 161 ms
58,532 KB
testcase_18 AC 154 ms
57,868 KB
testcase_19 AC 158 ms
58,524 KB
testcase_20 AC 156 ms
58,528 KB
testcase_21 AC 156 ms
58,396 KB
testcase_22 AC 156 ms
58,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No756
{
	public static void main(String args[])
	{
		Scanner sc = new Scanner(System.in);
		int c = sc.nextInt();
		String str = "";

		for( int i = 0; i <= c; i++ )
		{ str += i; }

		System.out.println( str.substring( c, c+1 ) ); // c番目の文字を表示
	}
}
0