Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Alif_Sama

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-23 10:39:04

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
    int a, b, x;
    cin >> a >> b >> x;
    int num = a * b;
    string txt = to_string(num);
    if (x <= txt.length()) {
        cout << txt[x - 1];
    }
    else {
        cout << '_';
    }
}