Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: mister_o_hater_no1

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-19 09:46:41

#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(nullptr)->sync_with_stdio(0);
    long long a, b;cin>> a>> b;
    long long x;cin>> x;
    string num= to_string(a*b);
    if(x> num.length()) {
        cout<< "_";return 0;
    }
    cout<< num[x- 1];

    return 0;
}