Submission
Status:
PP--PPPP-P
Subtask/Task Score:
70/100
Score: 70
User: sulinx
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-30 21:01:37
#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,x,count = 0;
cin >> A >> B >> x;
A = A * B;
B = A;
while(true){
if(A!=0){
A = A/10;
count++;
}else{
break;
}
}
for(int i = 0;i<count-x;i++){
B = B/10;
}
B = B%10;
cout << B;
}