Submission
Status:
PPPPPPPPPP
Score: 100
User: njoop
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2024-11-28 23:14:13
#include <bits/stdc++.h>
using namespace std;
int a, b, c, x;
void find_digit(int num) {
int arr[100];
int p=1;
while(num > 0) {
arr[p] = num%10;
num /= 10;
p++;
}
if(x >= p) cout << "_";
else cout << arr[p-x];
}
int main() {
cin >> a >> b >> x;
c = a*b;
find_digit(c);
return 0;
}