Submission
Status:
P-PP---PP-
Subtask/Task Score:
50/100
Score: 50
User: samsenpisardmoo26
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-06 04:18:55
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
long long m = a*b;
int n;
cin >> n;
if(m<pow(10,n-1))
{
cout << "_";
return 0;
}
long long ans = m/pow(10,n-1);
cout << ans%10;
}