Submission

Status:

[PPPP][PPPPPPPPPPP]

Subtask/Task Score:

{30/30}{70/70}

Score: 100

User: s

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-22 18:00:51

#include<iostream>
using namespace std ;
int main() {
	int d_1,m_1,d_2,m_2 ;
	int dim[12]={31,28,31,30,31,30,31,31,30,31,30,31},di=0,dj=0 ;
	cin >> d_1 >> m_1 >> d_2 >> m_2 ;
	for(int i=0;i<m_1-1;i++) {
  		di+=dim[i] ;
	}
	for(int j=0;j<m_2-1;j++) {
  		dj+=dim[j] ;
	}
	cout << ((dj+d_2)-(di+d_1)+1)*3 ;
}