Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Imorange

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-28 00:31:41

#include <bits/stdc++.h>

using namespace std;

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