Submission

Status:
PPPPPPPPPP

Score: 100

User: Namkhing

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-04-10 22:48:21

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

using ll = long long;

int main() {
    cin.tie(nullptr)->ios_base::sync_with_stdio(false);
    ll a, b, k;
    cin >> a >> b >> k;
    ll c = a * b;
    string s = to_string(c);
    if (k > s.size()) cout << "_";
    else cout << s[k-1];
}