Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Bestzu

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-02 23:08:51

#include <bits/stdc++.h>
#define endl '\n'
using namespace std;

int main() {
    ios::sync_with_stdio(false); cin.tie(0);

    int a, b; cin >> a >> b;
    int x; cin >> x;
    string s = to_string(a*b);
    
    (x <= s.size()) ? cout << s[x-1] : cout << "_";
    
    return 0;
}