Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Nuchkul
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-02 14:32:50
#include<iostream>
#include<string>
using namespace std;
int main(){
long long a,b;
int x;
cin >> a >> b >> x;
long long m = a*b;
string str = to_string(m);
bool p = false;
for(int i=0;i<str.length();i++){
if(i==x-1){
cout << str[i];
p = true;
}
}
if(!p) cout << "_";
}