Submission
Status:
PPxxPPPPxP
Subtask/Task Score:
70/100
Score: 70
User: jackpapho
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.005 second
Submitted On: 2026-09-30 22:55:01
#include <iostream>
#include <cmath>
using namespace std;
int main(){
cin.tie(0);
ios_base::sync_with_stdio(0);
int a,b,x;
cin >> a >> b >> x;
a = a*b;
int c = a,k = 0;
while (c != 0){
c/=10;
k++;
}
cout << (a % (int)round(pow(10,k - x + 1)))/(int)round(pow(10,k-x));
return 0;
}