Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: chokun
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-06 12:02:32
#include <bits/stdc++.h>
using namespace std;
int main() {
long long A, B;
int x;
cin >> A >> B >> x;
long long product = A * B;
string product_str = to_string(product);
if (x >= 1 && x <= product_str.length()) {
cout << product_str[x - 1] << endl;
} else {
cout << "_" << endl;
}
}