Submission
Status:
PPPPPPPP-----PP-PPPP
Subtask/Task Score:
70/100
Score: 70
User: pxsit
Problemset: ปฏิทินวันแม่
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-03 20:00:01
#include <bits/stdc++.h>
using namespace std;
int main(){
int m,d;
cin >> m >> d;
int month[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
if(m < 8){
int days = d-1;
for(int i=m;i<8;i++){
days += month[i];
}
days += 12;
days %= 7;
cout << days;
}
}