Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: erng
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-02 21:30:06
#include <iostream>
#include <string>
using namespace std;
int a, b, x, n, s, num;
int main()
{
cin>>a>>b>>x;;
n=a*b;
while (n>0)
{
n/=10;
s++;
}
n=a*b;
if (s<x)
{
cout<<"_";
return 0;
}
for (int i=s; i>x-1; i--)
{
num=n%10;
n/=10;
}
cout<<num;
}