Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: chillxvtkz

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-07 11:57:47

#include <bits/stdc++.h>
#define ll long long
#define ct cout << ' '
#define el cout << endl;
using namespace std;
const int mx = 1e9;
const int mn = -1e9;


string str;
ll a,b,x,s;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin >> a >> b >> x;
    s= a*b;
    str = to_string(s);
    if(str.size() >= x) cout << str[x-1];
    else cout << "_";
    return 0;
}