Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: Bestzu

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-02 23:05:57

#include <bits/stdc++.h>
#define endl '\n'
using namespace std;

int main() {
    ios::sync_with_stdio(false); cin.tie(0);

    int a, b; cin >> a >> b;
    int x; cin >> x;
    string s = to_string(a*b);
    cout << s[x-1];
    
    return 0;
}