Submission

Status:

P------P--

Subtask/Task Score:

20/100

Score: 20

User: Tjeez

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

Language: cpp

Time: 0.005 second

Submitted On: 2026-09-25 20:07:46

#include <iostream>
using namespace std;
int main(){
	int a,b,x;
	cin>>a>>b>>x;
	int s=a*b;
	int c=0;
	int arr[100000]={0};
	while (s>0){
		arr[c]=s%10;
		s/=10;
		c+=1;
	}
	if (x<=c){
		cout<<arr[x-1];
	}
	else{
		cout<<"-";
	}
}