Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Athens

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-18 10:05:21

#include <iostream>
using namespace std;

int main(){
    int a,b,x;
    cin >> a;
    cin >> b;
    cin >> x;

    int X = a * b;
    string n = to_string(X);
    char num;
    if (n.length() >= x){
        num = n[x-1];
    }else{
        num = '_';
    }

    cout << num << '\n';

    return 0;
}