답안 #963576

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
963576 2024-04-15T11:08:16 Z HoriaHaivas 푸드 코트 (JOI21_foodcourt) C++14
100 / 100
495 ms 107020 KB
/*
    "care a facut teste cu Lattice reduction attack e ciudat"
    "linistiti va putin"
    - 2023 -
*/
#include<bits/stdc++.h>
#define debug(x) cerr << #x << " " << x << "\n"
#define debugs(x) cerr << #x << " " << x << " "
#pragma GCC optimize("Ofast")
#define int long long

using namespace std;

struct query
{
    int type;
    int l;
    int r;
    int k;
    int c;
    int a;
    int b;
    int time;
    int ans;
};
int q;
vector<query> add[250005];
vector<query> rem[250005];
vector<query> answer[250005];
query qq[250005];

struct Node
{
    int minval;
    int lazy;
};
Node aint[1000005];

void prop(int val)
{
    if (aint[val].lazy==0)
        return;
    aint[val].minval+=aint[val].lazy;
    if (val*2+1<1000001)
    {
        aint[val*2].lazy+=aint[val].lazy;
        aint[val*2+1].lazy+=aint[val].lazy;
    }
    aint[val].lazy=0;
}

void lazy_update(int l, int r, int val, int qa, int qb, int x)
{
    prop(val);
    if (qa<=l && r<=qb)
    {
        aint[val].lazy+=x;
        return;
    }
    int mid;
    mid=(l+r)/2;
    if (qa<=mid)
    lazy_update(l,mid,val*2,qa,qb,x);
    if (qb>mid)
    lazy_update(mid+1,r,val*2+1,qa,qb,x);
    prop(val*2);
    prop(val*2+1);
    aint[val].minval=min(aint[val*2].minval,aint[val*2+1].minval);
}

int aint_query(int l, int r, int val, int qa, int qb)
{
    prop(val);
    if (qa<=l && r<=qb)
    {
        return aint[val].minval;
    }
    int mid,ans;
    mid=(l+r)/2;
    ans=1e18;
    if (qa<=mid)
    ans=min(ans,aint_query(l,mid,val*2,qa,qb));
    if (qb>mid)
    ans=min(ans,aint_query(mid+1,r,val*2+1,qa,qb));
    return ans;
}

int aib[250005];

void aib_update(int index, int delta)
{
    while (index<=q)
    {
        aib[index]+=delta;
        index+=index&(-index);
    }
}

int aib_query(int index)
{
    int ans=0;
    while (index>0)
    {
         ans+=aib[index];
         index-=index&(-index);
    }
    return ans;
}

int kth(int k)
{
    int r,pas;
    r=0;
    pas=(1<<18);
    while (pas)
    {
        if (r+pas<=q && aib_query(r+pas)<k)
            r+=pas;
        pas=pas/2;
    }
    return r+1;
}

signed main()
{
    ifstream fin("secvp.in");
    ofstream fout("secvp.out");
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int n,m,i,j,actually_left,actualb;
    cin >> n >> m >> q;
    for (i=1;i<=q;i++)
    {
         cin >> qq[i].type;
         qq[i].time=i;
         if (qq[i].type==1)
         {
             cin >> qq[i].l >> qq[i].r >> qq[i].c >> qq[i].k;
             add[qq[i].l].push_back(qq[i]);
             rem[qq[i].r+1].push_back(qq[i]);
         }
         else if (qq[i].type==2)
         {
             cin >> qq[i].l >> qq[i].r >> qq[i].k;
             add[qq[i].l].push_back(qq[i]);
             rem[qq[i].r+1].push_back(qq[i]);
         }
         else if (qq[i].type==3)
         {
             cin >> qq[i].a >> qq[i].b;
             answer[qq[i].a].push_back(qq[i]);
         }
    }
    for (i=1;i<=n;i++)
    {
         for (auto x : rem[i])
         {
              if (x.type==1)
              {
                  aib_update(x.time,-x.k);
                  lazy_update(1,q,1,x.time,q,-x.k);
              }
              else
              {
                  lazy_update(1,q,1,x.time,q,x.k);
              }
         }
         for (auto x : add[i])
         {
              if (x.type==1)
              {
                  aib_update(x.time,x.k);
                  lazy_update(1,q,1,x.time,q,x.k);
              }
              else
              {
                  lazy_update(1,q,1,x.time,q,-x.k);
              }
         }
         for (auto x : answer[i])
         {
              actually_left=aib_query(x.time)-(aint_query(1,q,1,x.time,x.time)-min(1LL*0,aint_query(1,q,1,1,x.time)));
              actualb=x.b+actually_left;
              if (kth(actualb)<=x.time)
              qq[x.time].ans=qq[kth(actualb)].c;
              else
              qq[x.time].ans=0;
         }
    }
    for (i=1;i<=q;i++)
    {
         if (qq[i].type==3)
         {
             cout << qq[i].ans << "\n";
         }
    }
}

Compilation message

foodcourt.cpp: In function 'int main()':
foodcourt.cpp:131:15: warning: unused variable 'j' [-Wunused-variable]
  131 |     int n,m,i,j,actually_left,actualb;
      |               ^
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 20572 KB Output is correct
2 Correct 7 ms 20824 KB Output is correct
3 Correct 6 ms 20648 KB Output is correct
4 Correct 6 ms 20516 KB Output is correct
5 Correct 6 ms 20824 KB Output is correct
6 Correct 6 ms 20572 KB Output is correct
7 Correct 7 ms 20568 KB Output is correct
8 Correct 6 ms 20572 KB Output is correct
9 Correct 8 ms 20824 KB Output is correct
10 Correct 7 ms 20572 KB Output is correct
11 Correct 6 ms 20572 KB Output is correct
12 Correct 6 ms 20748 KB Output is correct
13 Correct 6 ms 20736 KB Output is correct
14 Correct 7 ms 20824 KB Output is correct
15 Correct 8 ms 20568 KB Output is correct
16 Correct 6 ms 20828 KB Output is correct
17 Correct 6 ms 20572 KB Output is correct
18 Correct 7 ms 20504 KB Output is correct
19 Correct 7 ms 20572 KB Output is correct
20 Correct 6 ms 20572 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 20572 KB Output is correct
2 Correct 7 ms 20824 KB Output is correct
3 Correct 6 ms 20648 KB Output is correct
4 Correct 6 ms 20516 KB Output is correct
5 Correct 6 ms 20824 KB Output is correct
6 Correct 6 ms 20572 KB Output is correct
7 Correct 7 ms 20568 KB Output is correct
8 Correct 6 ms 20572 KB Output is correct
9 Correct 8 ms 20824 KB Output is correct
10 Correct 7 ms 20572 KB Output is correct
11 Correct 6 ms 20572 KB Output is correct
12 Correct 6 ms 20748 KB Output is correct
13 Correct 6 ms 20736 KB Output is correct
14 Correct 7 ms 20824 KB Output is correct
15 Correct 8 ms 20568 KB Output is correct
16 Correct 6 ms 20828 KB Output is correct
17 Correct 6 ms 20572 KB Output is correct
18 Correct 7 ms 20504 KB Output is correct
19 Correct 7 ms 20572 KB Output is correct
20 Correct 6 ms 20572 KB Output is correct
21 Correct 6 ms 20572 KB Output is correct
22 Correct 7 ms 20532 KB Output is correct
23 Correct 7 ms 20824 KB Output is correct
24 Correct 7 ms 20572 KB Output is correct
25 Correct 6 ms 20776 KB Output is correct
26 Correct 6 ms 20720 KB Output is correct
27 Correct 7 ms 20572 KB Output is correct
28 Correct 7 ms 20572 KB Output is correct
29 Correct 7 ms 20504 KB Output is correct
30 Correct 7 ms 20572 KB Output is correct
31 Correct 7 ms 20572 KB Output is correct
32 Correct 7 ms 20496 KB Output is correct
33 Correct 6 ms 20828 KB Output is correct
34 Correct 6 ms 20828 KB Output is correct
35 Correct 7 ms 20572 KB Output is correct
36 Correct 7 ms 20764 KB Output is correct
37 Correct 6 ms 20656 KB Output is correct
38 Correct 6 ms 20568 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 78 ms 37964 KB Output is correct
2 Correct 99 ms 38480 KB Output is correct
3 Correct 87 ms 38012 KB Output is correct
4 Correct 79 ms 37976 KB Output is correct
5 Correct 82 ms 38488 KB Output is correct
6 Correct 88 ms 38364 KB Output is correct
7 Correct 38 ms 38432 KB Output is correct
8 Correct 42 ms 41260 KB Output is correct
9 Correct 90 ms 38764 KB Output is correct
10 Correct 85 ms 38584 KB Output is correct
11 Correct 83 ms 38532 KB Output is correct
12 Correct 78 ms 38480 KB Output is correct
13 Correct 78 ms 37212 KB Output is correct
14 Correct 93 ms 38132 KB Output is correct
15 Correct 80 ms 39248 KB Output is correct
16 Correct 82 ms 38956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 398 ms 84272 KB Output is correct
2 Correct 328 ms 73620 KB Output is correct
3 Correct 458 ms 87176 KB Output is correct
4 Correct 289 ms 78676 KB Output is correct
5 Correct 326 ms 80092 KB Output is correct
6 Correct 431 ms 95760 KB Output is correct
7 Correct 168 ms 96500 KB Output is correct
8 Correct 171 ms 97104 KB Output is correct
9 Correct 463 ms 90204 KB Output is correct
10 Correct 420 ms 90284 KB Output is correct
11 Correct 408 ms 95012 KB Output is correct
12 Correct 429 ms 96124 KB Output is correct
13 Correct 395 ms 95140 KB Output is correct
14 Correct 449 ms 95992 KB Output is correct
15 Correct 444 ms 95832 KB Output is correct
16 Correct 444 ms 96088 KB Output is correct
17 Correct 454 ms 96148 KB Output is correct
18 Correct 430 ms 95568 KB Output is correct
19 Correct 428 ms 96056 KB Output is correct
20 Correct 393 ms 95720 KB Output is correct
21 Correct 416 ms 95788 KB Output is correct
22 Correct 407 ms 95840 KB Output is correct
23 Correct 415 ms 95932 KB Output is correct
24 Correct 415 ms 95828 KB Output is correct
25 Correct 318 ms 104988 KB Output is correct
26 Correct 338 ms 105804 KB Output is correct
27 Correct 332 ms 95936 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 20572 KB Output is correct
2 Correct 7 ms 20824 KB Output is correct
3 Correct 6 ms 20648 KB Output is correct
4 Correct 6 ms 20516 KB Output is correct
5 Correct 6 ms 20824 KB Output is correct
6 Correct 6 ms 20572 KB Output is correct
7 Correct 7 ms 20568 KB Output is correct
8 Correct 6 ms 20572 KB Output is correct
9 Correct 8 ms 20824 KB Output is correct
10 Correct 7 ms 20572 KB Output is correct
11 Correct 6 ms 20572 KB Output is correct
12 Correct 6 ms 20748 KB Output is correct
13 Correct 6 ms 20736 KB Output is correct
14 Correct 7 ms 20824 KB Output is correct
15 Correct 8 ms 20568 KB Output is correct
16 Correct 6 ms 20828 KB Output is correct
17 Correct 6 ms 20572 KB Output is correct
18 Correct 7 ms 20504 KB Output is correct
19 Correct 7 ms 20572 KB Output is correct
20 Correct 6 ms 20572 KB Output is correct
21 Correct 78 ms 37964 KB Output is correct
22 Correct 99 ms 38480 KB Output is correct
23 Correct 87 ms 38012 KB Output is correct
24 Correct 79 ms 37976 KB Output is correct
25 Correct 82 ms 38488 KB Output is correct
26 Correct 88 ms 38364 KB Output is correct
27 Correct 38 ms 38432 KB Output is correct
28 Correct 42 ms 41260 KB Output is correct
29 Correct 90 ms 38764 KB Output is correct
30 Correct 85 ms 38584 KB Output is correct
31 Correct 83 ms 38532 KB Output is correct
32 Correct 78 ms 38480 KB Output is correct
33 Correct 78 ms 37212 KB Output is correct
34 Correct 93 ms 38132 KB Output is correct
35 Correct 80 ms 39248 KB Output is correct
36 Correct 82 ms 38956 KB Output is correct
37 Correct 72 ms 37200 KB Output is correct
38 Correct 64 ms 36600 KB Output is correct
39 Correct 34 ms 37868 KB Output is correct
40 Correct 41 ms 41004 KB Output is correct
41 Correct 79 ms 38544 KB Output is correct
42 Correct 81 ms 38788 KB Output is correct
43 Correct 84 ms 38740 KB Output is correct
44 Correct 84 ms 38736 KB Output is correct
45 Correct 80 ms 38776 KB Output is correct
46 Correct 81 ms 38740 KB Output is correct
47 Correct 50 ms 38292 KB Output is correct
48 Correct 72 ms 41460 KB Output is correct
49 Correct 67 ms 35932 KB Output is correct
50 Correct 73 ms 37388 KB Output is correct
51 Correct 77 ms 38896 KB Output is correct
52 Correct 79 ms 38996 KB Output is correct
53 Correct 68 ms 36700 KB Output is correct
54 Correct 90 ms 39160 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 84 ms 36180 KB Output is correct
2 Correct 82 ms 37068 KB Output is correct
3 Correct 105 ms 37200 KB Output is correct
4 Correct 65 ms 34648 KB Output is correct
5 Correct 81 ms 36012 KB Output is correct
6 Correct 90 ms 37208 KB Output is correct
7 Correct 43 ms 35508 KB Output is correct
8 Correct 45 ms 35320 KB Output is correct
9 Correct 68 ms 36576 KB Output is correct
10 Correct 53 ms 36224 KB Output is correct
11 Correct 75 ms 38140 KB Output is correct
12 Correct 73 ms 38200 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 20572 KB Output is correct
2 Correct 7 ms 20824 KB Output is correct
3 Correct 6 ms 20648 KB Output is correct
4 Correct 6 ms 20516 KB Output is correct
5 Correct 6 ms 20824 KB Output is correct
6 Correct 6 ms 20572 KB Output is correct
7 Correct 7 ms 20568 KB Output is correct
8 Correct 6 ms 20572 KB Output is correct
9 Correct 8 ms 20824 KB Output is correct
10 Correct 7 ms 20572 KB Output is correct
11 Correct 6 ms 20572 KB Output is correct
12 Correct 6 ms 20748 KB Output is correct
13 Correct 6 ms 20736 KB Output is correct
14 Correct 7 ms 20824 KB Output is correct
15 Correct 8 ms 20568 KB Output is correct
16 Correct 6 ms 20828 KB Output is correct
17 Correct 6 ms 20572 KB Output is correct
18 Correct 7 ms 20504 KB Output is correct
19 Correct 7 ms 20572 KB Output is correct
20 Correct 6 ms 20572 KB Output is correct
21 Correct 6 ms 20572 KB Output is correct
22 Correct 7 ms 20532 KB Output is correct
23 Correct 7 ms 20824 KB Output is correct
24 Correct 7 ms 20572 KB Output is correct
25 Correct 6 ms 20776 KB Output is correct
26 Correct 6 ms 20720 KB Output is correct
27 Correct 7 ms 20572 KB Output is correct
28 Correct 7 ms 20572 KB Output is correct
29 Correct 7 ms 20504 KB Output is correct
30 Correct 7 ms 20572 KB Output is correct
31 Correct 7 ms 20572 KB Output is correct
32 Correct 7 ms 20496 KB Output is correct
33 Correct 6 ms 20828 KB Output is correct
34 Correct 6 ms 20828 KB Output is correct
35 Correct 7 ms 20572 KB Output is correct
36 Correct 7 ms 20764 KB Output is correct
37 Correct 6 ms 20656 KB Output is correct
38 Correct 6 ms 20568 KB Output is correct
39 Correct 78 ms 37964 KB Output is correct
40 Correct 99 ms 38480 KB Output is correct
41 Correct 87 ms 38012 KB Output is correct
42 Correct 79 ms 37976 KB Output is correct
43 Correct 82 ms 38488 KB Output is correct
44 Correct 88 ms 38364 KB Output is correct
45 Correct 38 ms 38432 KB Output is correct
46 Correct 42 ms 41260 KB Output is correct
47 Correct 90 ms 38764 KB Output is correct
48 Correct 85 ms 38584 KB Output is correct
49 Correct 83 ms 38532 KB Output is correct
50 Correct 78 ms 38480 KB Output is correct
51 Correct 78 ms 37212 KB Output is correct
52 Correct 93 ms 38132 KB Output is correct
53 Correct 80 ms 39248 KB Output is correct
54 Correct 82 ms 38956 KB Output is correct
55 Correct 72 ms 37200 KB Output is correct
56 Correct 64 ms 36600 KB Output is correct
57 Correct 34 ms 37868 KB Output is correct
58 Correct 41 ms 41004 KB Output is correct
59 Correct 79 ms 38544 KB Output is correct
60 Correct 81 ms 38788 KB Output is correct
61 Correct 84 ms 38740 KB Output is correct
62 Correct 84 ms 38736 KB Output is correct
63 Correct 80 ms 38776 KB Output is correct
64 Correct 81 ms 38740 KB Output is correct
65 Correct 50 ms 38292 KB Output is correct
66 Correct 72 ms 41460 KB Output is correct
67 Correct 67 ms 35932 KB Output is correct
68 Correct 73 ms 37388 KB Output is correct
69 Correct 77 ms 38896 KB Output is correct
70 Correct 79 ms 38996 KB Output is correct
71 Correct 68 ms 36700 KB Output is correct
72 Correct 90 ms 39160 KB Output is correct
73 Correct 84 ms 36180 KB Output is correct
74 Correct 82 ms 37068 KB Output is correct
75 Correct 105 ms 37200 KB Output is correct
76 Correct 65 ms 34648 KB Output is correct
77 Correct 81 ms 36012 KB Output is correct
78 Correct 90 ms 37208 KB Output is correct
79 Correct 43 ms 35508 KB Output is correct
80 Correct 45 ms 35320 KB Output is correct
81 Correct 68 ms 36576 KB Output is correct
82 Correct 53 ms 36224 KB Output is correct
83 Correct 75 ms 38140 KB Output is correct
84 Correct 73 ms 38200 KB Output is correct
85 Correct 84 ms 37200 KB Output is correct
86 Correct 102 ms 38616 KB Output is correct
87 Correct 77 ms 37460 KB Output is correct
88 Correct 84 ms 38740 KB Output is correct
89 Correct 62 ms 35152 KB Output is correct
90 Correct 86 ms 38748 KB Output is correct
91 Correct 78 ms 37056 KB Output is correct
92 Correct 66 ms 36556 KB Output is correct
93 Correct 85 ms 38748 KB Output is correct
94 Correct 87 ms 38656 KB Output is correct
95 Correct 81 ms 38480 KB Output is correct
96 Correct 80 ms 38740 KB Output is correct
97 Correct 90 ms 38796 KB Output is correct
98 Correct 66 ms 37464 KB Output is correct
99 Correct 52 ms 37704 KB Output is correct
100 Correct 57 ms 37976 KB Output is correct
101 Correct 69 ms 41552 KB Output is correct
102 Correct 82 ms 38740 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 20572 KB Output is correct
2 Correct 7 ms 20824 KB Output is correct
3 Correct 6 ms 20648 KB Output is correct
4 Correct 6 ms 20516 KB Output is correct
5 Correct 6 ms 20824 KB Output is correct
6 Correct 6 ms 20572 KB Output is correct
7 Correct 7 ms 20568 KB Output is correct
8 Correct 6 ms 20572 KB Output is correct
9 Correct 8 ms 20824 KB Output is correct
10 Correct 7 ms 20572 KB Output is correct
11 Correct 6 ms 20572 KB Output is correct
12 Correct 6 ms 20748 KB Output is correct
13 Correct 6 ms 20736 KB Output is correct
14 Correct 7 ms 20824 KB Output is correct
15 Correct 8 ms 20568 KB Output is correct
16 Correct 6 ms 20828 KB Output is correct
17 Correct 6 ms 20572 KB Output is correct
18 Correct 7 ms 20504 KB Output is correct
19 Correct 7 ms 20572 KB Output is correct
20 Correct 6 ms 20572 KB Output is correct
21 Correct 6 ms 20572 KB Output is correct
22 Correct 7 ms 20532 KB Output is correct
23 Correct 7 ms 20824 KB Output is correct
24 Correct 7 ms 20572 KB Output is correct
25 Correct 6 ms 20776 KB Output is correct
26 Correct 6 ms 20720 KB Output is correct
27 Correct 7 ms 20572 KB Output is correct
28 Correct 7 ms 20572 KB Output is correct
29 Correct 7 ms 20504 KB Output is correct
30 Correct 7 ms 20572 KB Output is correct
31 Correct 7 ms 20572 KB Output is correct
32 Correct 7 ms 20496 KB Output is correct
33 Correct 6 ms 20828 KB Output is correct
34 Correct 6 ms 20828 KB Output is correct
35 Correct 7 ms 20572 KB Output is correct
36 Correct 7 ms 20764 KB Output is correct
37 Correct 6 ms 20656 KB Output is correct
38 Correct 6 ms 20568 KB Output is correct
39 Correct 78 ms 37964 KB Output is correct
40 Correct 99 ms 38480 KB Output is correct
41 Correct 87 ms 38012 KB Output is correct
42 Correct 79 ms 37976 KB Output is correct
43 Correct 82 ms 38488 KB Output is correct
44 Correct 88 ms 38364 KB Output is correct
45 Correct 38 ms 38432 KB Output is correct
46 Correct 42 ms 41260 KB Output is correct
47 Correct 90 ms 38764 KB Output is correct
48 Correct 85 ms 38584 KB Output is correct
49 Correct 83 ms 38532 KB Output is correct
50 Correct 78 ms 38480 KB Output is correct
51 Correct 78 ms 37212 KB Output is correct
52 Correct 93 ms 38132 KB Output is correct
53 Correct 80 ms 39248 KB Output is correct
54 Correct 82 ms 38956 KB Output is correct
55 Correct 398 ms 84272 KB Output is correct
56 Correct 328 ms 73620 KB Output is correct
57 Correct 458 ms 87176 KB Output is correct
58 Correct 289 ms 78676 KB Output is correct
59 Correct 326 ms 80092 KB Output is correct
60 Correct 431 ms 95760 KB Output is correct
61 Correct 168 ms 96500 KB Output is correct
62 Correct 171 ms 97104 KB Output is correct
63 Correct 463 ms 90204 KB Output is correct
64 Correct 420 ms 90284 KB Output is correct
65 Correct 408 ms 95012 KB Output is correct
66 Correct 429 ms 96124 KB Output is correct
67 Correct 395 ms 95140 KB Output is correct
68 Correct 449 ms 95992 KB Output is correct
69 Correct 444 ms 95832 KB Output is correct
70 Correct 444 ms 96088 KB Output is correct
71 Correct 454 ms 96148 KB Output is correct
72 Correct 430 ms 95568 KB Output is correct
73 Correct 428 ms 96056 KB Output is correct
74 Correct 393 ms 95720 KB Output is correct
75 Correct 416 ms 95788 KB Output is correct
76 Correct 407 ms 95840 KB Output is correct
77 Correct 415 ms 95932 KB Output is correct
78 Correct 415 ms 95828 KB Output is correct
79 Correct 318 ms 104988 KB Output is correct
80 Correct 338 ms 105804 KB Output is correct
81 Correct 332 ms 95936 KB Output is correct
82 Correct 72 ms 37200 KB Output is correct
83 Correct 64 ms 36600 KB Output is correct
84 Correct 34 ms 37868 KB Output is correct
85 Correct 41 ms 41004 KB Output is correct
86 Correct 79 ms 38544 KB Output is correct
87 Correct 81 ms 38788 KB Output is correct
88 Correct 84 ms 38740 KB Output is correct
89 Correct 84 ms 38736 KB Output is correct
90 Correct 80 ms 38776 KB Output is correct
91 Correct 81 ms 38740 KB Output is correct
92 Correct 50 ms 38292 KB Output is correct
93 Correct 72 ms 41460 KB Output is correct
94 Correct 67 ms 35932 KB Output is correct
95 Correct 73 ms 37388 KB Output is correct
96 Correct 77 ms 38896 KB Output is correct
97 Correct 79 ms 38996 KB Output is correct
98 Correct 68 ms 36700 KB Output is correct
99 Correct 90 ms 39160 KB Output is correct
100 Correct 84 ms 36180 KB Output is correct
101 Correct 82 ms 37068 KB Output is correct
102 Correct 105 ms 37200 KB Output is correct
103 Correct 65 ms 34648 KB Output is correct
104 Correct 81 ms 36012 KB Output is correct
105 Correct 90 ms 37208 KB Output is correct
106 Correct 43 ms 35508 KB Output is correct
107 Correct 45 ms 35320 KB Output is correct
108 Correct 68 ms 36576 KB Output is correct
109 Correct 53 ms 36224 KB Output is correct
110 Correct 75 ms 38140 KB Output is correct
111 Correct 73 ms 38200 KB Output is correct
112 Correct 84 ms 37200 KB Output is correct
113 Correct 102 ms 38616 KB Output is correct
114 Correct 77 ms 37460 KB Output is correct
115 Correct 84 ms 38740 KB Output is correct
116 Correct 62 ms 35152 KB Output is correct
117 Correct 86 ms 38748 KB Output is correct
118 Correct 78 ms 37056 KB Output is correct
119 Correct 66 ms 36556 KB Output is correct
120 Correct 85 ms 38748 KB Output is correct
121 Correct 87 ms 38656 KB Output is correct
122 Correct 81 ms 38480 KB Output is correct
123 Correct 80 ms 38740 KB Output is correct
124 Correct 90 ms 38796 KB Output is correct
125 Correct 66 ms 37464 KB Output is correct
126 Correct 52 ms 37704 KB Output is correct
127 Correct 57 ms 37976 KB Output is correct
128 Correct 69 ms 41552 KB Output is correct
129 Correct 82 ms 38740 KB Output is correct
130 Correct 450 ms 93776 KB Output is correct
131 Correct 310 ms 77924 KB Output is correct
132 Correct 434 ms 93860 KB Output is correct
133 Correct 404 ms 94520 KB Output is correct
134 Correct 342 ms 87376 KB Output is correct
135 Correct 415 ms 96572 KB Output is correct
136 Correct 430 ms 91332 KB Output is correct
137 Correct 461 ms 91508 KB Output is correct
138 Correct 419 ms 95580 KB Output is correct
139 Correct 438 ms 96680 KB Output is correct
140 Correct 416 ms 96084 KB Output is correct
141 Correct 420 ms 96620 KB Output is correct
142 Correct 495 ms 96852 KB Output is correct
143 Correct 448 ms 96564 KB Output is correct
144 Correct 430 ms 96028 KB Output is correct
145 Correct 411 ms 96520 KB Output is correct
146 Correct 444 ms 96340 KB Output is correct
147 Correct 455 ms 96848 KB Output is correct
148 Correct 449 ms 96648 KB Output is correct
149 Correct 433 ms 96712 KB Output is correct
150 Correct 228 ms 89872 KB Output is correct
151 Correct 358 ms 107020 KB Output is correct
152 Correct 358 ms 106552 KB Output is correct
153 Correct 359 ms 97108 KB Output is correct