Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: Sense.exe

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-25 17:41:56

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

int main() {
    int A,B,x;
    cin >> A >> B >> x;
    vector<char> v;
    string s = to_string(A*B);
    for(auto x:s) {
        v.push_back(x);
    }
    if((v[x-1])!=string::npos) {
        cout << v[x-1];
    }
    else {
        cout << "_";
    }
}