Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: KurtCobain

Problemset: คิดถึงแม่

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-03 13:45:01

#include <iostream>
using namespace std;


int main(){
  int n;
  cin >> n;
  int date_cal = (31+30+31+30+19) % 7;
  date_cal = n - date_cal;
  if (date_cal <= 0){
    date_cal+=7;
  }
   cout << date_cal;
}