Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: porpeang

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-01 08:38:22

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

int main(){
    long long A=0,B=0,x=0,c=0,d=0,e=0;
    cin>>A;
    cin>>B;
    cin>>x;

    c=A*B;
    vector<char>sum;
    string s = to_string(c);
    sum.push_back(c);
    if (x >= 1 && x <= s.length()) {
        cout << s[x - 1];
    } else {
        cout << "_";
    }
}