Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Kidmaiok
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-10 20:44:58
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define space << ' '
#define nl << endl
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
long long a,b,x;
cin >> a >> b >> x;
long long t = a*b;
string y = to_string(t);
if(x > y.size()){
cout << "_";
return 0;
}
cout << y[x-1];
}