Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: PutterThecityboy
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-05 19:31:40
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long a, b, n, y, z, k, l;
cin >> a >> b >> n;
long long x;
x = a*b;
l = x;
int count = 0;
while (l > 0) {
l /= 10;
count++;
}
if (count < n){
cout << '_';
}
else {
y = x / (pow(10, count - n));
z = y%10;
cout << z;
}
return 0;
}