Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: posnfor2

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-10 19:22:00

#include <bits/stdc++.h>

using namespace std;

int main()
{
   long long a ,b;
   int pos;
   cin >> a >> b >> pos;
   long long x = a * b;
   string s = to_string(x);
   if(pos > 0 && pos <= (int)s.size()){
    cout << s[pos - 1];
   }
   else{
    cout << " ";
   }
   return 0;
}