Submission
Status:
PPPPPPP-PP
Subtask/Task Score:
90/100
Score: 90
User: tull
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2026-06-05 21:06:02
#pragma GCC optimize("O3,unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define bp '\n'
#define ld long double
#define vp cout<<'\n';
#define all(A) A.begin(),A.end()
using pii=pair<int,int>;
const int MOD=1e9+7;
const int MNLL=-1e18;
const int MXLL=1e18;
const int N=2e5+10;
const string sans[]={"no","yes"};
signed main(){
cin.tie(nullptr)->sync_with_stdio(false);
int a,b;
cin>>a>>b;
a*=b;
cin>>b;
vector<int>f;
while(a)
{
f.emplace_back(a%10);
a/=10;
}
if(b>=f.size())cout<<"_";
else cout<<f[f.size()-b];
//for(auto&e:f)cout<<e<<' ';
}
/*
*/