Submission
Status:
PP--PPPP-P
Score: 70
User: www._.
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2025-04-27 10:24:00
#include <iostream>
using namespace std;
int main()
{
int A , B , x , Ans;
cin >> A >> B >> x;
Ans = 0 ;
//convert to string to use the length function??
Ans = A*B;
string Anss = to_string(Ans);
//cout << Anss << endl;
//cout << Anss.length() << endl;
cout << Anss[x-1] << endl;
/*for (int i = 1; i <= Anss.length(); i++)
{
if (i == x)
cout << Anss[i];
}*/
}