Submission
Status:
P-PP---PP-
Subtask/Task Score:
50/100
Score: 50
User: letdown
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-08 16:31:43
#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[l-x]);
}
}