結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー KKT89
提出日時 2019-10-23 22:32:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 584 ms
コンパイル使用メモリ 70,536 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 05:33:29
合計ジャッジ時間 1,586 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	string s="";
	for(int i=1;i<=100;i++){
		s+=to_string(i);
	}
	int d; cin >> d;
	cout << s[d-1] << endl;
}
0