結果
問題 | No.756 チャンパーノウン定数 (1) |
ユーザー |
![]() |
提出日時 | 2018-12-04 01:53:39 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 554 bytes |
コンパイル時間 | 702 ms |
コンパイル使用メモリ | 91,600 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 18:09:51 |
合計ジャッジ時間 | 1,784 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <cstdio> #include <cstring> #include <string> #include <iostream> #include <cmath> #include <bitset> #include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <algorithm> #include <unordered_map> #include <unordered_set> #include <random> using namespace std; typedef long long int ll; typedef pair<int, int> P; int main() { string s; for(char c='0'; c<='9'; c++) s+=c; for(char c1='1'; c1<='5'; c1++){ for(char c2='0'; c2<='9'; c2++){ s+=c1; s+=c2; } } int d; cin>>d; cout<<s[d]<<endl; return 0; }