Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: colo39

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-01 13:14:28

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

signed main () {
    ios_base::sync_with_stdio(false);
    cin.tie(0);

    int a,b,x;
    cin >> a >> b >> x;

    int prod = a*b;

    string s = to_string(prod);

    cout << s[x-1];
}