func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int num;     cin >> num;     if (num <= 9) {       cout << num << endl;     } else if (10 < num && num <= 189) {       num = num - 9;       int tmp = num / 2;       tmp = 9 + tmp + num % 2;       if (num % 2)         cout << tmp / 10 << endl;       else         cout << tmp % 10 << endl;     } else if (190 <= num) {       num = num - 189;       int tmp = num / 3;       if (num % 3 != 0)         tmp = 100 + tmp;       else         tmp = 99 + tmp;       if (num % 3 == 0) {         cout << tmp % 10 << endl;       } else if (num % 3 == 1) {         cout << tmp / 100 << endl;       } else {         tmp = tmp / 10;         tmp = tmp % 10;         cout << tmp << endl;       }     }     return 0;   }   