Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Some1258

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-07-20 08:20:34

#include<bits/stdc++.h>
using namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    int z=(x*y);
    string t=to_string(z);
    int a;
    cin>>a;
    if(a>t.length()){
        cout<<"_";
        return 0;
    }

    //cout<<t;
    cout<<t[a-1];
}