Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: vern6767
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-21 14:50:53
#include <iostream>
#include <string>
using namespace std;
int main() {
int A, B, x;
cin >> A;
cin >> B;
cin >> x;
string strr = to_string(A*B);
if (x < 0 || x > strr.length()) {
cout << "_";
} else {
cout << strr.substr(x-1, 1);
}
return 0;
}