Submission

Status:

[P-SS][PPPPPPPPPPP]

Subtask/Task Score:

{0/30}{70/70}

Score: 70

User: Nuttykub

Problemset: ดูวีทูปเบอร์

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-01 19:29:55

#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int d_1,d_2,m_1,m_2;
    cin >> d_1 >> m_1 >> d_2>>m_2;
    int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
    int total = month[m_1]-d_1+1;
    for(int i = m_1+1;i < m_2;i++){
        total+=month[i];
    }
    total+=d_2;
    cout << total*3;
}