Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: grassjelly474a
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-13 10:08:15
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr char sp = ' ';
constexpr char nl = '\n';
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int a, b, x;
cin >> a >> b >> x;
string r = to_string(a * b);
if (x > r.size())
cout << "_";
else
cout << r[x - 1];
}