結果
問題 |
No.756 チャンパーノウン定数 (1)
|
ユーザー |
![]() |
提出日時 | 2020-03-30 10:46:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 1,505 ms |
コンパイル使用メモリ | 169,208 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 16:03:16 |
合計ジャッジ時間 | 2,315 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; string f(int a){ string res; while(a){ res+=('0'+a%10); a/=10; } reverse(res.begin(),res.end()); return res; } signed main(){ string s="";for(int i=1;i<100;i++)s+=f(i); int n;cin>>n; cout<<s[n-1]<<endl; }