Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: I_am_me
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-23 20:27:31
#include<iostream>
#include<string>
using namespace std;
int main() {
int a, b, x;
cin >> a;
cin >> b;
cin >> x;
int c = a * b;
string y = to_string(c);
int l = 0;
while (c>=1) {
c = (c - c % 10) / 10;
l++;
}
if (x <= l) {
cout << y[x - 1];
}
else if (x > l) {
cout << "_";
}
}