結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー john
提出日時 2019-07-11 00:19:11
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 1,106 ms
コンパイル使用メモリ 27,648 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 15:36:26
合計ジャッジ時間 1,512 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<string.h>
int main() {
	int i;
	int D;

	char array[5000] = {};
	for(i = 0;i < 101;i++) {
		sprintf(array, "%s%d", array, i);

	}
	strcat(array,"\0");

	scanf("%d", &D);
	printf("%c", array[D]);

	return (0);
}
0