Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: spammer_destroyer
Problemset: แปลงเลขฐาน
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-12 12:49:43
//c1_bkk66_1
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x,nth,size=0;
cin>>x>>nth;
x*=nth;
cin>>nth;
vector<int> arr;
if(x==0) {
arr.push_back(0);
size++;
}
while(x>0) {
arr.push_back(x%10);
x/=10;
size++;
}
if(nth<=size&&nth>=1)
cout<<arr[size-nth];
else
cout<<"_";
return 0;
}