Submission
Status:
P-P---P--P-P-P------
Subtask/Task Score:
30/100
Score: 30
User: nicekrittaphat
Problemset: ปฏิทินวันแม่
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-10 20:36:34
#include <iostream>
using namespace std;
int main()
{
int a;
int b;
cin>>a>>b;
int motherneed = 31+28+31+30+31+30+31+31+30+30+31+31;
int day[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
int have = 0;
for(int i=0;i<a;i++){
have += day[i];
}
cout<<(motherneed-have)%7+1;
}