結果
問題 | No.756 チャンパーノウン定数 (1) |
ユーザー |
![]() |
提出日時 | 2018-12-20 15:47:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 522 bytes |
コンパイル時間 | 1,379 ms |
コンパイル使用メモリ | 160,600 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-25 09:02:59 |
合計ジャッジ時間 | 2,054 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include "bits/stdc++.h" #define Rep(i,n) for(int i=0;i<n;i++) #define For(i,n1,n2) for(int i=n1;i<n2;i++) #define REP(i,n) for(ll i=0;i<n;i++) #define FOR(i,n1,n2) for(ll i=n1;i<n2;i++) #define put(a) cout<<a<<endl; #define all(a) (a).begin(),(a).end() #define SORT(c) sort((c).begin(),(c).end()) using namespace std; typedef long long ll; //typedef unsigned long long ull; typedef pair<int, int> P; int n; int main(){ cin >> n; string s = ""; For(i,1,100){ s+=to_string(i); } put(s[n-1]); }