Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: KurtCobain

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-03 12:51:02

#include <iostream>
#include <string>
using namespace std;


int main(){
     long long a,b;
     int x;
     cin >> a >> b >> x;
     long long total= a * b;
     string answer = to_string(total);
     if (x < 1 || x > answer.size()){
        cout << '_';
     }
     else{
     cout << answer[x-1];
     }
}