Submission

Status:

--PP----P-

Subtask/Task Score:

30/100

Score: 30

User: Quinruj

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-05 20:41:32

#include <bits/stdc++.h>
#define ll long long
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

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