Submission
Status:
----P--P---------P--
Subtask/Task Score:
15/100
Score: 15
User: Karatat007
Problemset: ปฏิทินวันแม่
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-18 09:42:38
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int d,m;
cin >> d >> m;
int offset[12] = {6, 3, 3, 0, 5, 2, 0, 4, 1, 6, 3, 1};
int result = (d - 1 + offset[m - 1]) % 7 + 1;
cout << result;
}