Submission

Status:

P-PP---PP-

Subtask/Task Score:

50/100

Score: 50

User: 38408

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-09 11:19:26

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    string word;
    cin >> a >> b >> c;
    word = to_string(a*b);
    if(c>word.length()){
        cout<<"_";
        return 0 ;
    }
    cout<< word[word.size()-c];
    
}