Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: YourLocalZ

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-09 11:33:07

#include <iostream>
#include <string>
using namespace std;

int main()
{
    int a,b,x;
    cin >> a >> b >> x;
    string s = to_string(a*b);
    if(size(s)<x)
    {
        cout << '_';
    }
    else
    {
        cout << s[x-1];
    }
}