Submission
Status:
PPP-PPPPPP
Subtask/Task Score:
90/100
Score: 90
User: Alif_Sama
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-23 10:31:13
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int a,b,x;
cin >> a;
cin >> b;
cin >> x;
int p = a * b;
string s = to_string(p);
if (s[x-1]) {
cout << s[x-1];
} else {
cout << "_";
}
}