Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: Drxwz

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-05 20:26:59

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

int main(){
    int a,b,x;
    cin>>a>>b>>x;
    int t,s;
    s=a*b;
    string h=to_string(s);
    if(x>h.length() || x<=0){
        cout<<'-';
    }else{
        cout<<h[x-1];
    }
}