Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: Boeing12345

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-24 13:11:46

#include <iostream>
#include <string>

using namespace std;
int main(){
    int A;
    int B;
    int x;
    string n = " ";
    cin >> A >> B >> x;
    if (A <= 100000 && B <= 100000 && x <= 100000){
        n = to_string(A * B);
        cout << n[x - 1];
    }
    if (x-1 < 0 || x-1 >= n.length()){
        cout << "_";
    }

}