Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: qweqwe

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

Language: cpp

Time: 0.009 second

Submitted On: 2025-06-13 20:59:33

#include <bits/stdc++.h>
#define speed cin.tie(0)->sync_with_stdio(0)
using namespace std;
using ll=long long;

int main(){
	speed;
	int a,b;cin >> a >> b;
	int x=a*b;
	string s=to_string(x);
	int pos;cin >> pos;
	if (s.size()<pos) cout << "_";
	cout << s[pos-1];
	return 0;
}