Submission
Status:
[PPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: polikanta
Problemset: คิดถึงแม่
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-27 18:54:07
#include<iostream>
using namespace std;
int main(){
int endyearday;
cin >> endyearday;
int mothersday = endyearday - 1;
if (mothersday == 0){
mothersday = 7;
}
cout << mothersday << endl;
}