Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: onlyme910

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

Language: cpp

Time: 0.004 second

Submitted On: 2025-10-08 20:06:27

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

int main(){
    int A,B,x;cin >> A  >> B >> x;
    string f = to_string(A*B);
    int fl = f.length();
    if(x > fl || x < 0)cout << "_";
    else cout << f[x-1];
}