Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: vachirasawin

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-03-13 14:35:19

// grader-chan
// c1_bkk66_1.cpp | c1_bkk66_1

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

int A, B, x;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    printf("A = ");
    scanf("%d", &A);
    printf("B = ");
    scanf("%d", &B);
    printf("x = ");
    scanf("%d", &x);

    string AB = to_string(A * B);

    if (x > AB.size()) {
        cout << "-" << endl;
    } else {
        cout << AB[x - 1] << endl;
    }

    return 0;
}