Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: him
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-18 08:34:36
#include <bits/stdc++.h>
using namespace std;
int arr[1009];
int main(){
ios::sync_with_stdio(0);cin.tie(0);
vector<int> v;
int a,b,c;cin>>a>>b>>c;
int d=a*b;
int r;
while(d>0){
r=d%10;
v.push_back(r);
d=d/10;
}
reverse(v.begin(),v.end());
if(c<=v.size()) cout<<(v[c-1]);
else cout<<"_";
return 0;
}