Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Poon

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

Language: c

Time: 0.002 second

Submitted On: 2025-09-27 12:48:42

#include <stdio.h>
int main()
{
  int a,b,c;
  char s[20];
  scanf("%d %d %d",&a,&b,&c);
  int d=a*b;
  sprintf(s,"%d",d);
  if(c>strlen(s))
  {
    printf("_");
  }
  else
  {
    printf("%c",s[c-1]);
  }
}