Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: letdown

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-08 17:01:06

#include <stdio.h>

int main() {
    unsigned long long a, b, x, l=0;
    scanf("%llu%llu%llu", &a, &b, &x);
    char ans[100000];
    sprintf(ans, "%llu", a*b);
    while (ans[l] != '\0') l++;
    if (x > l && l >= 0) {
        printf("_");
    }
    else {
        printf("%c", ans[x-1]);
    }
}