結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー kekenx
提出日時 2020-03-06 10:42:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 1,542 ms
コンパイル使用メモリ 166,464 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 02:41:16
合計ジャッジ時間 2,340 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
typedef pair<int, int> P;
typedef pair<P, P> P2;

int main() {
  string a = "";
  for (int i = 1; i < 105; ++i) {
    a += to_string(i);
  }
  int d;
  cin >> d;
  cout << a[d - 1] << '\n';
  return 0;
}
0