Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: bestisyis...programming

Problemset: คิดถึงแม่

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-07 21:17:14

#include <iostream>
using namespace std;
int main(){
	int m[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
	int d;
	cin >> d;
	for(int i=1;i<=122;i++){ // 31 month 12 to 31 month 9
		d--;
		if(d==0) d=7;
	}
	for(int i=1;i<=19;i++){
		d--;
		if(d==0) d=7;
	}
	cout << d;
}