Untitled

 avatar
user_5668965
c_cpp
5 days ago
197 B
1
Indexable
Never
#include<bits/stdc++.h>
using namespace std;
#define ll long long int

int main()
{

    ll t,n;
    string ref;
    for(i=1;i<=1000;i++) ref+=to_string(i);
    cin>>n; cout<<ref[n-1];
}
Leave a Comment