Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: sulinx
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2025-09-30 21:04:47
#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;
}
}
if(x>count){
cout << '_';
return 0;
}
for(int i = 0;i<count-x;i++){
B = B/10;
}
B = B%10;
cout << B;
}