Submission
Status:
PPPPPPPP-P
Subtask/Task Score:
90/100
Score: 90
User: SRW
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.005 second
Submitted On: 2026-09-30 15:53:33
#include <iostream>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
int x;
cin >> x;
int product = a*b;
string product_s = to_string(product);
if (x-1 > product_s.size() or x < 0){
cout << "_";
}
else{
cout << product_s[x-1];
}
}