Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: CA
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-21 13:59:40
#include <iostream>
#include <string>
using namespace std;
long long A, B, x;
int count(long long n) {
int i = 1;
while (n > 0) {
int cd = n % 10;
n = (n - cd) / 10;
i++;
}
return i;
}
int main() {
cin >> A;
cin >> B;
cin >> x;
long long prod = A * B;
string prods = to_string(prod);
if (prods.size() < x) {
cout << "_\n";
return 0;
}
cout << prods[x - 1] << "\n";
return 0;
}