Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: fillhavertz

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-07 14:59:09

#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <iomanip>
#include <algorithm>
#include <list>
using namespace std;
int main() {   
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int a,b,ind;
    string str;
    cin>>a>>b>>ind;
    str = to_string(a*b);
    if(ind>str.length()){ cout<<"_"; return 0;}
    cout<<str[ind-1];

    
    
}