Submission
Status:
PP--PPPP-P
Subtask/Task Score:
70/100
Score: 70
User: vachirasawin
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2026-03-13 14:33:50
// grader-chan
// c1_bkk66_1.cpp | c1_bkk66_1
#include <bits/stdc++.h>
using namespace std;
int A, B, x;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> A >> B >> x;
string AB = to_string(A * B);
if (x > AB.size()) {
cout << "-" << endl;
} else {
cout << AB[x - 1] << endl;
}
return 0;
}