Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: uraniumconsumer

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

Language: cpp

Time: 0.005 second

Submitted On: 2026-09-26 15:10:39

#include <bits/stdc++.h>

using namespace std;

int main(){
    long long A;
    cin >> A;
    long long B;
    cin >> B;
    long long x;
    cin >> x;

    long long pro = A * B;
    string pos = to_string(pro);
    if((x-1) > pos.length()){
        cout << '_';
    }
    else{
        cout << pos[x-1];
    }
}