Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: goine
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-12 09:48:14
#include<iostream>
#include<string>
using namespace std;
int main() {
int a, b, x;
cin >> a >> b >> x;
int sum = a * b;
string st = to_string(sum);
if (x - 1 < 0 || x - 1 >= st.length()) {
cout << "_";
return 0;
}
cout << st[x - 1];
return 0;
}