Submission

Status:

--PP----P-

Subtask/Task Score:

30/100

Score: 30

User: jamesz

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-24 22:19:05

#include<iostream>
#include<string>
using namespace std;
typedef long long ll;
int main(){
	char ch;
	cin.tie(0);
	int a,b;
	ll x;
	string multi;
	cin>>ch>>ch>>a;
	cin>>ch>>ch>>b;
	cin>>ch>>ch>>x;
	--x;
	multi = to_string(a*b*1);
	if(x>multi.size()){
		cout<<"_";
		return 0;
	}
	cout<<fixed<<int(multi[x] - '0');
	return 0;
}