Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: APNICHANAN

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-23 23:46:41

#include <iostream>
#include <string>
using namespace std;
int main()
{
    int a, b, x, p;
    cin >> a >> b >> x;
    p = a * b;
    string product = to_string(p);
    if (x <= product.length())
        cout << product[x - 1];
    else
        cout << "_";
}