Submission
Status:
--------------------
Subtask/Task Score:
0/100
Score: 0
User: Quinruj
Problemset: ปฏิทินวันแม่
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-02 17:13:10
#include <bits/stdc++.h>
using namespace std;
int arr[12] = {0,31,59,90,120,151,181,212,243,273,304,334};
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n,m;cin>>n>>m;
for (int i = arr[n-1]+1;i<346;i++,m++){
if (m >= 7) m %= 7;
if (m == 0) m = 7;
}
cout << m;
}