Submission
Status:
PPPPP-P------PP--P-P
Subtask/Task Score:
50/100
Score: 50
User: maxprogoji
Problemset: ปฏิทินวันแม่
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-05 12:36:02
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int md[13] = {0, 0, 31, 59, 90, 121, 151, 182, 213, 243, 274, 304, 334};
int t = 223;
int m, d;
cin >> m >> d;
d = (d + (abs(t - md[m]) % 7)) % 7;
if(d == 0) d = 7;
cout << d;
}