Submission

Status:

P------P--

Subtask/Task Score:

20/100

Score: 20

User: letdown

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-08 16:18:09

#include <stdio.h>

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