Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: jamesz

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-08 13:27:23

#include <iostream>
#include <string>
using namespace std;
int main(){
	int a,b,x;
	char ch;
	cin>>ch>>ch>>a>>ch>>ch>>b>>ch>>ch>>x;
	string h = to_string(a*b);
	if(x>h.size() || x<1){
		cout<<"\t\n_";
		return 0;
	}
	for(int i = 0; i<h.size(); i++){
		if(x-1 == i)
		{
			cout<<h[i];
			return 0;
		}
		
	}
	
	
	
		
	
	
	
	
	
	
	
}