Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Neozaawwman1
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-07 20:46:12
#include <bits/stdc++.h>
using namespace std;
int main(){
int A, B;cin>>A>>B;
int mul=A*B;
int temp = mul;
int ans, x;cin>>x;
vector<int> arr;
int count=0;
while(temp!=0){
ans=temp%10;
temp=temp/10;
arr.push_back(ans);
}
if(x>arr.size()){
cout<<"_";
}else{
cout<<arr[arr.size()-x];}
return 0;
}