Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: SonnyHappy108

Problemset: ปฏิทินวันแม่

Language: cpp

Time: 0.003 second

Submitted On: 2026-04-14 13:25:10

#include<iostream>
using namespace std;
//1
int main(){
    int m,d;
    cin>>m>>d;
    int s[]={0,31,59,90,120,151,181,212,243,273,304,334};
    cout<<((d-1+223-s[m-1])%7+7)%7+1;
}