Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: faofao

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

Language: cpp

Time: 0.005 second

Submitted On: 2026-08-17 19:21:18

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

int main(){
    ios::sync_with_stdio(),cin.tie(0);
    ll x,y;cin>>x>>y;
    ll c;cin>>c;
    ll n=x*y;
    string s = to_string(n);
    if(c>s.size()){
        cout << "_";
    }
    else cout << s[c-1];
}