Submission
Status:
PPPPPPP-PP
Subtask/Task Score:
90/100
Score: 90
User: ultraman9845
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-13 17:59:47
#include<iostream>
#include<string>
typedef long long ll;
using namespace std;
int main()
{
int a,b;
ll prod;
string s;
int x;
cin >> a >> b;
prod = a*b;
s = to_string(prod) ;
int l;
l = s.length() ;
cin >> x ;
if(x >= l)
{
cout << '_' ;
}
else
{
cout << s[x-1] ;
}
}