Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: rice_ot

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-14 10:35:32

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

int main(){

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