Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: samsenpisardmoo69

Problemset: คิดถึงแม่

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-03 13:40:43

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int day[8] = {0, 1, 2, 3, 4, 5, 6, 7};
    int dayweek;
    cin >> dayweek;
    
    if(dayweek == 1) cout << day[7];
    else cout << day[dayweek-1];
    
}