func_code_string: #include <bits/stdc++.h>   using namespace std;   int s[1000 * 1000];   int main() {     int cnt = 1;     for (int i = 1; i <= 1005; i++) {       int t = i;       int a[10];       int cnt1 = 1;       while (t) {         int tmp = t % 10;         a[cnt1++] = tmp;         t = t / 10;       }       for (cnt1--; cnt1; cnt1--) s[cnt++] = a[cnt1];     }     int n;     while (scanf( %d , &n) != EOF) printf( %d , s[n]);     return 0;   }   