Submission

Status:

P------P--

Subtask/Task Score:

20/100

Score: 20

User: BB

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-05 21:14:02

#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;
    }
    
    
}