Submission
Status:
P-PP---PP-
Subtask/Task Score:
50/100
Score: 50
User: ratitum091102
Problemset: เลขหลักของผลคูณ
Language: c
Time: 0.002 second
Submitted On: 2025-09-23 12:15:01
#include <stdio.h>
int main(){
long long int a;
long long int b;
long long int c;
scanf("%lld",&a);
scanf("%lld",&b);
scanf("%lld",&c);
long long int d[100];
d[1] = a*b%10;
d[2] = a*b%100/10;
d[3] = a*b%1000/100;
d[4] = a*b%10000/1000;
d[5] = a*b%100000/10000;
d[6] = a*b%1000000/100000;
d[7] = a*b%10000000/1000000;
d[8] = a*b%100000000/10000000;
d[9] = a*b%1000000000/100000000;
d[10] = a*b%10000000000/1000000000;
d[11] = a*b%100000000000/10000000000;
d[12] = a*b%1000000000000/100000000000;
if(d[c]!=0){
printf("%lld",d[c]);
}
else{
printf("_");
}
}