Submission
Status:
PP--PPPP-P
Subtask/Task Score:
70/100
Score: 70
User: kenmuay
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-12 23:31:09
#include <bits/stdc++.h>
using namespace std;
int main(){
int x;
int a,b;
cin >> a >> b >> x;
int ans=a*b;
string s=to_string(ans);
int l=s.size();
bool check=false;
for(int i=0; i<l; i++){
if(i+1 == x){
cout << s[i];
check=true;
}
}
if(!check)cout << "-";
return 0;
}