Submission
Status:
PPPPP-PPP-
Subtask/Task Score:
80/100
Score: 80
User: Jxricho
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-16 08:42:06
#include<bits/stdc++.h>
using namespace std;
main(){
int a,b,x;
cin>>a>>b>>x;
int ans=a*b;
string s=to_string(ans);
if(s[x-1]<='0'||s[x-1]>='9'){
cout<<"_";
}
else{
cout<<s[x-1];
}
}