Submission
Status:
PPPPPPP-PP
Subtask/Task Score:
90/100
Score: 90
User: Quinruj
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-05 20:44:21
#include <bits/stdc++.h>
#define ll unsigned long long
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll a,b,x;cin>>a>>b>>x;
string s = to_string(a*b);
if (x >= s.size() || x < 1) cout << '_';
else cout << s[x-1];
}