func_code_string: #include <bits/stdc++.h>   using namespace std;   int N;   string S;   void precompute() {     int cur = 1;     while ((int)S.size() <= 1000) {       int x = cur++;       string tmp;       while (x > 0) {         tmp.push_back(x % 10 +  0 );         x /= 10;       }       for (int i = (int)tmp.size() - 1; i >= 0; i--) S.push_back(tmp[i]);     }   }   int main() {     precompute();     scanf( %d , &N);     printf( %c n , S[N - 1]);     return 0;   }   