Submission
Status:
[PPPP][PPPPPPPPPPP]
Subtask/Task Score:
{30/30}{70/70}
Score: 100
User: exoworldgd
Problemset: ดูวีทูปเบอร์
Language: cpp
Time: 0.002 second
Submitted On: 2026-02-23 22:39:23
#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;
if(b==d)return cout<<3*(1-a+c),0;
for(int i=b;i<d-1;i++)f+=e[i];
f+=c,cout<<3*(f+1);
}