Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <bits/stdc++.h>using namespace std;#define SZ(a) int((a).size())#define mp make_pair#define pb push_backtypedef vector<int> VI;typedef pair<int,int> PII;typedef long long LL;typedef unsigned long long ULL;const LL mod=1e9+7;const int INF=0x3f3f3f3f;const double PI=acos(-1.0);const double EPS=1e-6;inline void read(LL& x){int f=1;char c;while(((c=getchar())<'0'||c>'9')&&c!='-');c=='-'?(f=-1,x=0):(x=c-'0');while((c=getchar())>='0'&&c<='9')x=x*10+c-'0';x*=f;}inline void read(int& x){LL t;read(t);x=t;}PII a[105];struct node{int mm,dd,x,y;}nn[55];bool cmp(node a,node b){return a.mm==b.mm?a.dd<b.dd:a.mm<b.mm;}int fun(int month,int day){int sum;switch(month){