Submission
Status:
[PPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: jeeno987
Problemset: คิดถึงแม่
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-10 18:17:10
#include <iostream>
using namespace std;
// 12 Aug -> 31 Dec is 19 + 30 + 31 + 30 + 31 = 141 days = 20 weeks + 1 day, in every year.
int main() {
int d;
cin >> d;
cout << (d + 5) % 7 + 1 << '\n';
return 0;
}