Submission

Status:

PPPPP-PPP-

Subtask/Task Score:

80/100

Score: 80

User: Jxricho

Problemset: เลขหลักของผลคูณ

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-16 08:44:34

#include<bits/stdc++.h>
using namespace std;
main(){
	long long a,b,x;
	cin>>a>>b>>x;
	long long ans=a*b;
	string s=to_string(ans);
	if(s[x-1]<='0'||s[x-1]>='9'){
		cout<<"_";
	}
	else{
		cout<<s[x-1];
	}
}