Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: colo39
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-01 13:16:28
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main () {
ios_base::sync_with_stdio(false);
cin.tie(0);
int a,b,x;
cin >> a >> b >> x;
int prod = a*b;
string s = to_string(prod);
if (x >= 1 && x <= s.size()) cout << s[x-1];
else cout << "_";
}