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