Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: Karatat007

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-01 13:34:54

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

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

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