Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Apimuk
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-19 22:53:44
#include <iostream>
#include <stack>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int a, b, x;
cin >> a >> b >> x;
int num = a * b;
string txt = to_string(num);
if (x <= txt.length()) {
cout << txt[x - 1];
}
else {
cout << '_';
}
}