Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: andamanlnwza007
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-02 15:02:54
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main(){
int n=0, A,B,x,sum;
cin>>A>>B>>x;
sum=A*B;
string rsum = to_string(sum);
if (x>rsum.length()){
cout<<"_";
}
else{
cout<<rsum[x-1];
}
}