Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: tha_smith

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-12 15:18:29

#include <iostream>
using namespace std;

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