Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: s

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-09-23 14:38:42

#include<iostream>
#include<string>
using namespace std ;
int main() {
	int a,b,x ;
	cin >> a >> b >> x ;
	string c=to_string(a*b) ;
	if(x>c.length() || x==0) {
		cout << "_" ;
	} else {
		cout << c[x-1] ;
	}
}