Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: Dark_kingdom

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-08 00:42:25

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

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