Submission
Status:
PP--PPPP-P
Subtask/Task Score:
70/100
Score: 70
User: whysosirius
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-11 15:09:55
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
int a,b,x;
cin >> a >> b >> x;
int product = a*b;
string sproduct = to_string(product);
if(x-1<=sproduct.length()-1) cout << sproduct[x-1];
else cout << "-";
return 0;
}