Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Sea

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-27 18:55:40

#include <bits/stdc++.h>
using namespace std;
int main() {
	int a,b,x;
	cin >> a >> b >> x;
	int m;
	m=a*b;
	string s = to_string(m);
	int len = s.length();
	if(x-1 < len){
		cout << s[x-1];	
	}
	else{
		cout << "_";
	}
	
	
	return 0;
}