Submission

Status:

[-SSSSSS]

Subtask/Task Score:

{0/100}

Score: 0

User: pottersk146

Problemset: คิดถึงแม่

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-06 16:24:53

#include <iostream>
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int t, x;
    cin >> t;
    if (t > 7)
    {
        x = 0;
        x = x + t - 7;
        cout << x;
        return 0;
    }
    else
    {
        t = t - 1;
        cout << t;
    }
}