Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: thereal_zenitsu10

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-15 21:55:12

#include <iostream>
#include <algorithm>
#include <string>

using namespace std;

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

    long long a,b,x,sum;
    cin>>a>>b;
    sum=a*b;
    string number = to_string(sum);
    cin>>x;
    if(x>number.size()){
        cout<<"_"<<'\n';
    }else{
        cout<<number[x-1]<<'\n';
    }

    return 0;
}