Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: kkxkkx001

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-08 10:25:54

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

int main(){
	int A,B,X;
//	cout << "A = ";
	cin >> A;
//	cout << "B = ";
	cin >> B;
//	cout << "x = ";
	cin >> X;
	
	int re = A*B;
	string result = to_string(re);
	int size = result.size();
	
	if (X<=size){
		cout << result[X-1];
	}
	else {
		cout << "_";
	}
}