Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: samsenpisardmoo

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-09-30 19:34:57

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,x;
    cin >> a >> b >> x;
    long long s = a*b;
    string ans = to_string(s);
    
    if(x > ans.size()) cout << "...";
    else cout << ans[x-1];

}