Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: The3e

Problemset: คิดถึงแม่

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-02 14:59:08

#include <iostream>
using namespace std;

int main() {
    int x;
    cin >> x;

    int answer = (x + 6) % 7;

    if (answer == 0) {
        answer = 7;
    }

    cout << answer;

    return 0;
}