Submission

Status:

[P-SS][PPPPPPPPPPP]

Subtask/Task Score:

{0/30}{70/70}

Score: 70

User: exoworldgd

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-02-23 22:37:31

#pragma GCC optimize("O5,unroll-loops,inline,fast-math,omit-frame-pointer,tree-vectorize")
#pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt,tune=native,fma,abm,mmx,sse")
#include<bits/stdc++.h>
#define exoworldgd cin.tie(0)->sync_with_stdio(0),cout.tie(0)
#define int long long
using namespace std;
int a,b,c,d,e[12]={31,28,31,30,31,30,31,31,30,31,30,31},f;
signed main(void){
    exoworldgd;
    cin>>a>>b>>c>>d,f=e[b-1]-a;
    for(int i=b;i<d-1;i++)f+=e[i];
    f+=c,cout<<3*(f+1);
}