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