Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: TheRealN

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-12 13:15:29

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

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