Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: boygunner
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-06 22:19:04
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,x;
string result;
cin>>a>>b>>x;
a=a*b;
do{
result=result+(char)('0'+a%10);
a=a/10;
}while(a);
reverse(result.begin(),result.end());
if(x>result.length()) cout<<'_';
else cout<<result[x-1];
}