Submission
Status:
[PPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: eefirefire
Problemset: คิดถึงแม่
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-05 19:13:37
#include <iostream>
using namespace std;
int main() {
int last_day;
cin >> last_day;
int mother_day = last_day - 1;
if (mother_day == 0) {
mother_day = 7;
}
cout << mother_day << endl;
return 0;
}