Submission

Status:

Compilation Error

Subtask/Task Score:

Score: 0

User: ratitum091102

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

Language: c

Time: 0.000 second

Submitted On: 2025-09-23 12:25:28

#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];
    for(int i = 0;i<100;i=i+1){
        d[i] = 555;
    }
    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)%1000000)/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]!=555){
        printf("%lld",d[c]);
    }
    else{
        printf("_");
    }
}