Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: bananakung

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-09-13 14:43:22

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