#include #include #include #include #include #define MAXN 50010 #define ll long long using namespace std; struct event{ double time; int delta_value; }e[MAXN*3+1]; bool cmp(const event &a,const event &b) { return a.timefinal) final=ans; } printf("%I64d\n",final); } return 0; }