Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: spammer_destroyer
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-12 12:49:16
//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;
}