Submission

Status:

-PPP-P--P-

Subtask/Task Score:

50/100

Score: 50

User: nuxh

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-12 15:26:44

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

int main(){
    int a,b,x;
    cin >> a >> b >> x;
    
    int c = a*b;
    string s = to_string(c);
    int z = s.size();
    if(z<x){
        cout << '_';
        return 0;
    }
    cout << s[x+1];
}