結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー memmemmi
提出日時 2018-12-04 21:40:31
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 736 bytes
コンパイル時間 868 ms
コンパイル使用メモリ 110,240 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 07:18:07
合計ジャッジ時間 1,749 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
#include <iomanip>
#include <array>
#include <numeric>
#include <regex>
#include <bitset>
#include <deque>

using namespace std;
typedef long long ll;
typedef pair<int, int> p_ii;

const int INF = 1e9;
const double PI = acos(-1.0);
const ll MOD = 1e9 + 7;




int main() {
	int N; cin >> N;
	string C = "";
	for (int i = 1; i <= 100; i++)
	{
		C += to_string(i);
	}

	cout << C[N - 1] << endl;

	return 0;
}
0