Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Buslnwzuz

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-10 08:02:23

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

int main(){
    int a,b;
    cin >> a >> b;
    long long total = a*b;
    string tt = to_string(total);
    int x;
    cin >> x;
    if(x>tt.size()) cout << "_";
    else cout << tt[x-1];
    return 0;
}