Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: solomon

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-24 14:15:39

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

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