Submission
Status:
PP--PPPP-P
Subtask/Task Score:
70/100
Score: 70
User: Punnavich
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.005 second
Submitted On: 2026-10-01 09:27:18
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a;
cin>>b;
int x;
cin>>x;
int c;
c = a*b;
string str = to_string(c);
if (x >= 1 && x <= str.length()) {
cout << str[x - 1];
} else {
cout << "-";
}
}