Submission
Status:
---P-PPP-PPPPPP-PP-P
Subtask/Task Score:
65/100
Score: 65
User: faofao
Problemset: ปฏิทินวันแม่
Language: cpp
Time: 0.004 second
Submitted On: 2026-08-16 20:25:42
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
ios::sync_with_stdio(),cin.tie(0);
int m,d;cin>>m>>d;
int month[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
for(int i=m;i<=12;i++){
d+=month[i];
}
d%=7;
d-=2;
d%=7;
if(d==0) d=7;
cout<<d;
}