Submission

Status:

PP--PPPP-P

Subtask/Task Score:

70/100

Score: 70

User: limsan20122

Problemset: เลขหลักของผลคูณ

Language: cpp

Time: 0.002 second

Submitted On: 2025-09-27 12:35:04

#include <iostream>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int x=0;
    int y=0;
    int z=0;
    int b=0;
    string a;
    cin >> x >> y >> b;;
    z=(x*y);
    a=to_string(z);
    cout << a[b-1];
    return 0;
}