Submission

Status:

PPPPPPPP-P

Subtask/Task Score:

90/100

Score: 90

User: uraniumconsumer

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-09-26 15:07:59

#include <bits/stdc++.h>

using namespace std;

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

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