Submission
Status:
PPPPPPPPP----PP-PPPP
Subtask/Task Score:
75/100
Score: 75
User: qwert
Problemset: ปฏิทินวันแม่
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-07 13:01:25
#include <iostream>
using namespace std;
int main()
{
int m,d,arr[12]={31,28,31,30,31,30,31,11},s=0,f;
cin>>m>>d;
for(int i=m-1; i<=7; i++){
s = s + arr[i];
}
f=s%7;
d=(d+f)%7;
cout<<d;
}