Submission
Status:
PP--PPPP-P
Subtask/Task Score:
70/100
Score: 70
User: whysosirius
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-11 15:13:34
#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>=0 && x<=static_cast<long long>(sproduct.length())) cout << sproduct[x-1];
else cout << "-";
return 0;
}