Submission

Status:

P-PP---P--

Subtask/Task Score:

40/100

Score: 40

User: BB

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-05 21:12:40

#include<iostream>
#include<cmath>
using namespace std;

int main(){
    int A,B,x;
    cin>>A>>B>>x;
    int ans=A*B;
    int divi=pow(10,x-1);
    int ans2=ans/divi;

    if(divi>ans){
        cout<<'_';
    }else{
        cout<<ans2%10;
    }
    
    
}