Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: PEPSEALSEA

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-09-26 20:00:47

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

int powerTen(int n){
    if(n==0) return 1;
    int sum = 1;
    for(int i = 1 ; i<n ; i++){
        sum *= 10;
    }

    return sum;
}

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

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

    int sum = a*b;
    string sumText = to_string(sum);
    if (x>sumText.size()){
        cout << "_" << endl;
        return 0;
    }
    cout << sumText[x-1] << endl;
}