結果
| 問題 | No.756 チャンパーノウン定数 (1) |
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-03-30 10:46:15 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 374µs | |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 900 ms |
| コンパイル使用メモリ | 181,100 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 14:01:43 |
| 合計ジャッジ時間 | 2,303 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
cureskol