Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Dark_kingdom
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-08 00:49:21
#include <iostream>
#include <string>
using namespace std;
int main()
{
long long A, B;
cout <<"A = ";
cin>>A;
cout<<"B = ";
cin>>B;
string c = to_string(A * B);
int x;
cout<<"x = ";
if(!(cin>>x)) return 0;
if (x-1>c.length())
{
return 0;
}
if (c[x-1] == ' ')
{
cout<<"_";
}
else
{
cout<< c[x-1];
}
return 0;
}