#include <iostream>#include <string>using namespace std;

int main() {int n;while (cin >> n) { // 注意 while 处理多个 case

#include <iostream>
#include <string>
using namespace std;

int main() {
    int n;
    while (cin >> n) { // 注意 while 处理多个 case

        int i = 1;
        while(true)
        {
            string s = to_string(i);
            if(n-s.size()>0)
            {
                i++;
                n-=s.size();
            }
            else {
                cout<<s[n-1];
                break;
            }

        }


    }
}
// 64 位输出请用 printf("%lld")

为什么这运行错误了啊