题解 | 无限长正整数排列字符串
无限长正整数排列字符串
https://www.nowcoder.com/practice/82c92d2321bb4220a3006d52a95a8bdd
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,i=1;
cin>>n;
string s;
while(1){
s+=to_string(i);
i++;
if(i==1000){
break;
}
}
cout<<s[n-1]<<endl;
return 0;
}

