Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: sonsun

Problemset: ตัวอักษรตัวแรกในคำ

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-21 18:03:35

#include <iostream>
#include <string>
using namespace std;
int main()
{
    int A,B,x;
    cin >> A >> B >> x;
    int sum = A + B;
    string ans = to_string(sum);
    if (x > ans.size()){
        cout << "_";
    } else {
        cout << ans[x-1] - 48;
    }
    
}