Submission
Status:
Compilation Error
Subtask/Task Score:
Score: 0
User: purihorharin
Problemset: เลขหลักของผลคูณ
Language: cpp
Time: 0.000 second
Submitted On: 2026-03-20 09:43:59
#include <iostream>
#include <cstdlib>
using namespace std;
char buf[1000];
int main () {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int a, b, x;
cin >> a >> b >> x;
std::cout << (itoa(a*b, buf, 10)[x-1] == 0 ? '_' : buf[x-1]);
}