# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1067906 | Muhammad_Aneeq | Meetings (IOI18_meetings) | C++17 | 5536 ms | 11724 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <vector>
using namespace std;
int const N=1e5+10;
struct node
{
int msb=0,mp=0,ms=0;
bool valid=0;
};
node St[4*N]={};
node comb(node a,node b)
{
node c;
c.valid=(a.valid&&b.valid);
c.msb=max(a.msb,b.msb);
if (a.ms&&b.mp)
c.msb=max(c.msb,a.ms+b.mp);
c.ms=b.ms;
if (b.valid)
c.ms=max(c.ms,a.ms+b.ms);
c.mp=a.mp;
if (a.valid)
c.mp=max(c.mp,a.mp+b.mp);
return c;
}
void update(int i,int r,int st,int en,int val)
{
if (st==en)
{
if (val==1)
{
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |