Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: BB
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-05 21:24:59
#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int main(){
int A,B,x;
cin>>A>>B>>x;
int ans=A*B;
string n=to_string(ans);
if(x>n.size()){
cout<<"_";
}else{
cout<<n[x-1];
}
}