Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: Dark_kingdom

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-08 00:21:31

#include <iostream>
#include <string>
using namespace std;

int main()
{
	int A, B;
	cin>>A>>B;
	string c = to_string(A * B);
	int x;
	cin>>x;
	
	if (c[x-1] == ' ')
	{
		cout<<"-";
	}
	else
	{
		cout<< c[x-1];
	}
	return 0;
}