Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: BB

Problemset: เลขดวง

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-05 21:05:23

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

int main(){
    int A,B,x;
    cin>>A>>B>>x;
    int ans=A*B;
    int div=pow(10,x);

    int ans2=ans%div;
    
    cout<<ans2/pow(10,x-1);
}