답안 #380977

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
380977 2021-03-24T01:10:43 Z PedroBigMan Cryptography (NOI20_crypto) C++14
100 / 100
828 ms 59932 KB
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <string>
#include <map>
#include <set>
#include <queue>
#include <deque>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
#define REP(i,a,b) for(ll i=a; i<b; i++)
#define pb push_back
#define mp make_pair
#define pl pair<ll,ll>
#define ff first
#define ss second
#define INF 100000000000000000LL
ll insig;
#define In(vecBRO, LENBRO) REP(IBRO,0,LENBRO) {cin>>insig; vecBRO.pb(insig);}
void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}

class ST
{
    public:
    ll N; 
    
    class SV //segment values
    {
        public:
        ll a;
        SV() {a=0LL;}
        SV(ll x) {a=x;}
    };
    
    SV op(SV A, SV B)
    {
        SV X(A.a+B.a);
        return X;
    }
    
    SV neut;
    
    vector<SV> ar; vector<SV> p;
    
    ST(vector<ll> arr)
    {
        N = (ll) 1<<(ll) ceil(log2(arr.size()));
        REP(i,0,arr.size()) {SV X(arr[i]); ar.pb(X);} 
        REP(i,arr.size(),N) {ar.pb(neut);}
        REP(i,0,N) {p.pb(neut);}
        REP(i,0,N) {p.pb(ar[i]);}
        ll cur = N-1;
        while(cur>0)
        {
            p[cur]=op(p[2*cur],p[2*cur+1]);
            cur--;
        }
    }
    
    SV query(ll a,ll b, ll c, ll x, ll y) //c=current node, starting in 1, a,b=range of query, x,y=range of node c in the array down, x,y from 0 to N-1. query(a,b)->query(a,b,1,0,N-1)
    {
        if(y<a || x>b) {return neut;}
        if(x>=a && y<=b) {return p[c];}
        ll mid=(x+y)/2;
        return op(query(a,b,2*c,x,mid),query(a,b,2*c+1,mid+1,y));
    }
    
    void update(SV s, ll a, ll c, ll x, ll y) //position a in 0,N-1 gets +s, c is current node, is 1 in beginning, x, y is range, is 0,S.N-1 in beginning
    {
        if(y<a || x>a) {return ;}
        p[c]=op(s,p[c]);
        if(c==a+N) {ar[a]=op(ar[a],s); return;}
        ll mid=(x+y)/2;
        update(s,a,2*c,x,mid); update(s,a,2*c+1,mid+1,y);
    }
};

int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    ll mod=1000000007LL;
    ll N; cin>>N; vector<ll> a; In(a,N);
    set<ll> x; REP(i,0,N) {x.insert(a[i]);}
    map<ll,ll> m; set<ll>::iterator it=x.begin();
    ll cnt=0LL;
    while(it!=x.end()) 
    {
        m[*it]=cnt; cnt++; it++;
    }
    REP(i,0,N) {a[i]=m[a[i]];}
    vector<ll> xx; REP(i,0,N) {xx.pb(0LL);}
    ST S(xx); ll ans=0LL; ll val;
    vector<ll> fat; ll curfat=1LL; REP(i,1,N) {fat.pb(curfat); curfat*=i; curfat%=mod;}
    fat.pb(curfat);
    REP(i,0,N)
    {
        ST::SV X(1LL); 
        S.update(X,a[i],1,0,S.N-1);
        val=S.query(0,a[i]-1LL,1,0,S.N-1).a;
        val=a[i]-val;
        ans+=val*fat[N-1-i]; ans%=mod;
    }
    ans++; ans%=mod; ans+=mod; ans%=mod;
    cout<<ans<<endl;
    return 0;
}

Compilation message

Crypto.cpp: In function 'void Out(std::vector<long long int>)':
Crypto.cpp:14:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
   23 | void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
      |                             ~~~~~~~~~~~~
Crypto.cpp:23:25: note: in expansion of macro 'REP'
   23 | void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
      |                         ^~~
Crypto.cpp: In constructor 'ST::ST(std::vector<long long int>)':
Crypto.cpp:14:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
   51 |         REP(i,0,arr.size()) {SV X(arr[i]); ar.pb(X);}
      |             ~~~~~~~~~~~~~~       
Crypto.cpp:51:9: note: in expansion of macro 'REP'
   51 |         REP(i,0,arr.size()) {SV X(arr[i]); ar.pb(X);}
      |         ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 364 KB Output is correct
8 Correct 1 ms 364 KB Output is correct
9 Correct 1 ms 364 KB Output is correct
10 Correct 1 ms 364 KB Output is correct
11 Correct 1 ms 364 KB Output is correct
12 Correct 1 ms 364 KB Output is correct
13 Correct 1 ms 364 KB Output is correct
14 Correct 1 ms 364 KB Output is correct
15 Correct 1 ms 364 KB Output is correct
16 Correct 1 ms 384 KB Output is correct
17 Correct 1 ms 364 KB Output is correct
18 Correct 1 ms 364 KB Output is correct
19 Correct 1 ms 364 KB Output is correct
20 Correct 1 ms 364 KB Output is correct
21 Correct 1 ms 364 KB Output is correct
22 Correct 1 ms 364 KB Output is correct
23 Correct 1 ms 364 KB Output is correct
24 Correct 1 ms 364 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 324 ms 59716 KB Output is correct
3 Correct 328 ms 59708 KB Output is correct
4 Correct 327 ms 59708 KB Output is correct
5 Correct 328 ms 59708 KB Output is correct
6 Correct 330 ms 59836 KB Output is correct
7 Correct 325 ms 59700 KB Output is correct
8 Correct 330 ms 59700 KB Output is correct
9 Correct 328 ms 59700 KB Output is correct
10 Correct 328 ms 59692 KB Output is correct
11 Correct 327 ms 59712 KB Output is correct
12 Correct 335 ms 59700 KB Output is correct
13 Correct 329 ms 59620 KB Output is correct
14 Correct 331 ms 59692 KB Output is correct
15 Correct 328 ms 59708 KB Output is correct
16 Correct 325 ms 59700 KB Output is correct
17 Correct 325 ms 59692 KB Output is correct
18 Correct 325 ms 59708 KB Output is correct
19 Correct 327 ms 59708 KB Output is correct
20 Correct 328 ms 59712 KB Output is correct
21 Correct 327 ms 59700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 325 ms 58704 KB Output is correct
3 Correct 323 ms 58684 KB Output is correct
4 Correct 321 ms 58756 KB Output is correct
5 Correct 320 ms 58684 KB Output is correct
6 Correct 324 ms 58684 KB Output is correct
7 Correct 331 ms 58684 KB Output is correct
8 Correct 320 ms 58684 KB Output is correct
9 Correct 325 ms 58812 KB Output is correct
10 Correct 320 ms 58812 KB Output is correct
11 Correct 326 ms 58684 KB Output is correct
12 Correct 323 ms 58684 KB Output is correct
13 Correct 323 ms 58780 KB Output is correct
14 Correct 322 ms 58780 KB Output is correct
15 Correct 327 ms 58668 KB Output is correct
16 Correct 329 ms 58812 KB Output is correct
17 Correct 322 ms 58684 KB Output is correct
18 Correct 319 ms 58804 KB Output is correct
19 Correct 329 ms 58668 KB Output is correct
20 Correct 327 ms 58740 KB Output is correct
21 Correct 322 ms 58684 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 3 ms 1020 KB Output is correct
3 Correct 3 ms 876 KB Output is correct
4 Correct 3 ms 876 KB Output is correct
5 Correct 3 ms 876 KB Output is correct
6 Correct 3 ms 876 KB Output is correct
7 Correct 3 ms 876 KB Output is correct
8 Correct 4 ms 876 KB Output is correct
9 Correct 3 ms 876 KB Output is correct
10 Correct 3 ms 876 KB Output is correct
11 Correct 3 ms 876 KB Output is correct
12 Correct 3 ms 876 KB Output is correct
13 Correct 3 ms 876 KB Output is correct
14 Correct 3 ms 876 KB Output is correct
15 Correct 1 ms 384 KB Output is correct
16 Correct 3 ms 888 KB Output is correct
17 Correct 3 ms 876 KB Output is correct
18 Correct 3 ms 876 KB Output is correct
19 Correct 3 ms 876 KB Output is correct
20 Correct 3 ms 876 KB Output is correct
21 Correct 3 ms 876 KB Output is correct
22 Correct 3 ms 876 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 364 KB Output is correct
8 Correct 1 ms 364 KB Output is correct
9 Correct 1 ms 364 KB Output is correct
10 Correct 1 ms 364 KB Output is correct
11 Correct 1 ms 364 KB Output is correct
12 Correct 1 ms 364 KB Output is correct
13 Correct 1 ms 364 KB Output is correct
14 Correct 1 ms 364 KB Output is correct
15 Correct 1 ms 364 KB Output is correct
16 Correct 1 ms 384 KB Output is correct
17 Correct 1 ms 364 KB Output is correct
18 Correct 1 ms 364 KB Output is correct
19 Correct 1 ms 364 KB Output is correct
20 Correct 1 ms 364 KB Output is correct
21 Correct 1 ms 364 KB Output is correct
22 Correct 1 ms 364 KB Output is correct
23 Correct 1 ms 364 KB Output is correct
24 Correct 1 ms 364 KB Output is correct
25 Correct 1 ms 364 KB Output is correct
26 Correct 3 ms 1020 KB Output is correct
27 Correct 3 ms 876 KB Output is correct
28 Correct 3 ms 876 KB Output is correct
29 Correct 3 ms 876 KB Output is correct
30 Correct 3 ms 876 KB Output is correct
31 Correct 3 ms 876 KB Output is correct
32 Correct 4 ms 876 KB Output is correct
33 Correct 3 ms 876 KB Output is correct
34 Correct 3 ms 876 KB Output is correct
35 Correct 3 ms 876 KB Output is correct
36 Correct 3 ms 876 KB Output is correct
37 Correct 3 ms 876 KB Output is correct
38 Correct 3 ms 876 KB Output is correct
39 Correct 1 ms 384 KB Output is correct
40 Correct 3 ms 888 KB Output is correct
41 Correct 3 ms 876 KB Output is correct
42 Correct 3 ms 876 KB Output is correct
43 Correct 3 ms 876 KB Output is correct
44 Correct 3 ms 876 KB Output is correct
45 Correct 3 ms 876 KB Output is correct
46 Correct 3 ms 876 KB Output is correct
47 Correct 1 ms 364 KB Output is correct
48 Correct 3 ms 876 KB Output is correct
49 Correct 3 ms 876 KB Output is correct
50 Correct 3 ms 876 KB Output is correct
51 Correct 3 ms 876 KB Output is correct
52 Correct 3 ms 876 KB Output is correct
53 Correct 3 ms 876 KB Output is correct
54 Correct 3 ms 876 KB Output is correct
55 Correct 3 ms 876 KB Output is correct
56 Correct 3 ms 876 KB Output is correct
57 Correct 3 ms 876 KB Output is correct
58 Correct 3 ms 876 KB Output is correct
59 Correct 3 ms 876 KB Output is correct
60 Correct 3 ms 876 KB Output is correct
61 Correct 1 ms 364 KB Output is correct
62 Correct 3 ms 876 KB Output is correct
63 Correct 3 ms 876 KB Output is correct
64 Correct 3 ms 876 KB Output is correct
65 Correct 3 ms 876 KB Output is correct
66 Correct 3 ms 876 KB Output is correct
67 Correct 3 ms 876 KB Output is correct
68 Correct 4 ms 876 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 325 ms 58704 KB Output is correct
3 Correct 323 ms 58684 KB Output is correct
4 Correct 321 ms 58756 KB Output is correct
5 Correct 320 ms 58684 KB Output is correct
6 Correct 324 ms 58684 KB Output is correct
7 Correct 331 ms 58684 KB Output is correct
8 Correct 320 ms 58684 KB Output is correct
9 Correct 325 ms 58812 KB Output is correct
10 Correct 320 ms 58812 KB Output is correct
11 Correct 326 ms 58684 KB Output is correct
12 Correct 323 ms 58684 KB Output is correct
13 Correct 323 ms 58780 KB Output is correct
14 Correct 322 ms 58780 KB Output is correct
15 Correct 327 ms 58668 KB Output is correct
16 Correct 329 ms 58812 KB Output is correct
17 Correct 322 ms 58684 KB Output is correct
18 Correct 319 ms 58804 KB Output is correct
19 Correct 329 ms 58668 KB Output is correct
20 Correct 327 ms 58740 KB Output is correct
21 Correct 322 ms 58684 KB Output is correct
22 Correct 1 ms 364 KB Output is correct
23 Correct 3 ms 1020 KB Output is correct
24 Correct 3 ms 876 KB Output is correct
25 Correct 3 ms 876 KB Output is correct
26 Correct 3 ms 876 KB Output is correct
27 Correct 3 ms 876 KB Output is correct
28 Correct 3 ms 876 KB Output is correct
29 Correct 4 ms 876 KB Output is correct
30 Correct 3 ms 876 KB Output is correct
31 Correct 3 ms 876 KB Output is correct
32 Correct 3 ms 876 KB Output is correct
33 Correct 3 ms 876 KB Output is correct
34 Correct 3 ms 876 KB Output is correct
35 Correct 3 ms 876 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 3 ms 888 KB Output is correct
38 Correct 3 ms 876 KB Output is correct
39 Correct 3 ms 876 KB Output is correct
40 Correct 3 ms 876 KB Output is correct
41 Correct 3 ms 876 KB Output is correct
42 Correct 3 ms 876 KB Output is correct
43 Correct 3 ms 876 KB Output is correct
44 Correct 0 ms 364 KB Output is correct
45 Correct 782 ms 58796 KB Output is correct
46 Correct 799 ms 58932 KB Output is correct
47 Correct 773 ms 58684 KB Output is correct
48 Correct 778 ms 58804 KB Output is correct
49 Correct 794 ms 58812 KB Output is correct
50 Correct 790 ms 58688 KB Output is correct
51 Correct 788 ms 58932 KB Output is correct
52 Correct 797 ms 58976 KB Output is correct
53 Correct 780 ms 58668 KB Output is correct
54 Correct 794 ms 58812 KB Output is correct
55 Correct 799 ms 58780 KB Output is correct
56 Correct 801 ms 58868 KB Output is correct
57 Correct 793 ms 58816 KB Output is correct
58 Correct 1 ms 364 KB Output is correct
59 Correct 789 ms 58908 KB Output is correct
60 Correct 805 ms 58676 KB Output is correct
61 Correct 795 ms 58668 KB Output is correct
62 Correct 802 ms 58676 KB Output is correct
63 Correct 794 ms 58804 KB Output is correct
64 Correct 791 ms 58812 KB Output is correct
65 Correct 777 ms 58796 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 364 KB Output is correct
8 Correct 1 ms 364 KB Output is correct
9 Correct 1 ms 364 KB Output is correct
10 Correct 1 ms 364 KB Output is correct
11 Correct 1 ms 364 KB Output is correct
12 Correct 1 ms 364 KB Output is correct
13 Correct 1 ms 364 KB Output is correct
14 Correct 1 ms 364 KB Output is correct
15 Correct 1 ms 364 KB Output is correct
16 Correct 1 ms 384 KB Output is correct
17 Correct 1 ms 364 KB Output is correct
18 Correct 1 ms 364 KB Output is correct
19 Correct 1 ms 364 KB Output is correct
20 Correct 1 ms 364 KB Output is correct
21 Correct 1 ms 364 KB Output is correct
22 Correct 1 ms 364 KB Output is correct
23 Correct 1 ms 364 KB Output is correct
24 Correct 1 ms 364 KB Output is correct
25 Correct 1 ms 364 KB Output is correct
26 Correct 324 ms 59716 KB Output is correct
27 Correct 328 ms 59708 KB Output is correct
28 Correct 327 ms 59708 KB Output is correct
29 Correct 328 ms 59708 KB Output is correct
30 Correct 330 ms 59836 KB Output is correct
31 Correct 325 ms 59700 KB Output is correct
32 Correct 330 ms 59700 KB Output is correct
33 Correct 328 ms 59700 KB Output is correct
34 Correct 328 ms 59692 KB Output is correct
35 Correct 327 ms 59712 KB Output is correct
36 Correct 335 ms 59700 KB Output is correct
37 Correct 329 ms 59620 KB Output is correct
38 Correct 331 ms 59692 KB Output is correct
39 Correct 328 ms 59708 KB Output is correct
40 Correct 325 ms 59700 KB Output is correct
41 Correct 325 ms 59692 KB Output is correct
42 Correct 325 ms 59708 KB Output is correct
43 Correct 327 ms 59708 KB Output is correct
44 Correct 328 ms 59712 KB Output is correct
45 Correct 327 ms 59700 KB Output is correct
46 Correct 1 ms 364 KB Output is correct
47 Correct 325 ms 58704 KB Output is correct
48 Correct 323 ms 58684 KB Output is correct
49 Correct 321 ms 58756 KB Output is correct
50 Correct 320 ms 58684 KB Output is correct
51 Correct 324 ms 58684 KB Output is correct
52 Correct 331 ms 58684 KB Output is correct
53 Correct 320 ms 58684 KB Output is correct
54 Correct 325 ms 58812 KB Output is correct
55 Correct 320 ms 58812 KB Output is correct
56 Correct 326 ms 58684 KB Output is correct
57 Correct 323 ms 58684 KB Output is correct
58 Correct 323 ms 58780 KB Output is correct
59 Correct 322 ms 58780 KB Output is correct
60 Correct 327 ms 58668 KB Output is correct
61 Correct 329 ms 58812 KB Output is correct
62 Correct 322 ms 58684 KB Output is correct
63 Correct 319 ms 58804 KB Output is correct
64 Correct 329 ms 58668 KB Output is correct
65 Correct 327 ms 58740 KB Output is correct
66 Correct 322 ms 58684 KB Output is correct
67 Correct 1 ms 364 KB Output is correct
68 Correct 3 ms 1020 KB Output is correct
69 Correct 3 ms 876 KB Output is correct
70 Correct 3 ms 876 KB Output is correct
71 Correct 3 ms 876 KB Output is correct
72 Correct 3 ms 876 KB Output is correct
73 Correct 3 ms 876 KB Output is correct
74 Correct 4 ms 876 KB Output is correct
75 Correct 3 ms 876 KB Output is correct
76 Correct 3 ms 876 KB Output is correct
77 Correct 3 ms 876 KB Output is correct
78 Correct 3 ms 876 KB Output is correct
79 Correct 3 ms 876 KB Output is correct
80 Correct 3 ms 876 KB Output is correct
81 Correct 1 ms 384 KB Output is correct
82 Correct 3 ms 888 KB Output is correct
83 Correct 3 ms 876 KB Output is correct
84 Correct 3 ms 876 KB Output is correct
85 Correct 3 ms 876 KB Output is correct
86 Correct 3 ms 876 KB Output is correct
87 Correct 3 ms 876 KB Output is correct
88 Correct 3 ms 876 KB Output is correct
89 Correct 1 ms 364 KB Output is correct
90 Correct 3 ms 876 KB Output is correct
91 Correct 3 ms 876 KB Output is correct
92 Correct 3 ms 876 KB Output is correct
93 Correct 3 ms 876 KB Output is correct
94 Correct 3 ms 876 KB Output is correct
95 Correct 3 ms 876 KB Output is correct
96 Correct 3 ms 876 KB Output is correct
97 Correct 3 ms 876 KB Output is correct
98 Correct 3 ms 876 KB Output is correct
99 Correct 3 ms 876 KB Output is correct
100 Correct 3 ms 876 KB Output is correct
101 Correct 3 ms 876 KB Output is correct
102 Correct 3 ms 876 KB Output is correct
103 Correct 1 ms 364 KB Output is correct
104 Correct 3 ms 876 KB Output is correct
105 Correct 3 ms 876 KB Output is correct
106 Correct 3 ms 876 KB Output is correct
107 Correct 3 ms 876 KB Output is correct
108 Correct 3 ms 876 KB Output is correct
109 Correct 3 ms 876 KB Output is correct
110 Correct 4 ms 876 KB Output is correct
111 Correct 0 ms 364 KB Output is correct
112 Correct 782 ms 58796 KB Output is correct
113 Correct 799 ms 58932 KB Output is correct
114 Correct 773 ms 58684 KB Output is correct
115 Correct 778 ms 58804 KB Output is correct
116 Correct 794 ms 58812 KB Output is correct
117 Correct 790 ms 58688 KB Output is correct
118 Correct 788 ms 58932 KB Output is correct
119 Correct 797 ms 58976 KB Output is correct
120 Correct 780 ms 58668 KB Output is correct
121 Correct 794 ms 58812 KB Output is correct
122 Correct 799 ms 58780 KB Output is correct
123 Correct 801 ms 58868 KB Output is correct
124 Correct 793 ms 58816 KB Output is correct
125 Correct 1 ms 364 KB Output is correct
126 Correct 789 ms 58908 KB Output is correct
127 Correct 805 ms 58676 KB Output is correct
128 Correct 795 ms 58668 KB Output is correct
129 Correct 802 ms 58676 KB Output is correct
130 Correct 794 ms 58804 KB Output is correct
131 Correct 791 ms 58812 KB Output is correct
132 Correct 777 ms 58796 KB Output is correct
133 Correct 1 ms 364 KB Output is correct
134 Correct 802 ms 59756 KB Output is correct
135 Correct 785 ms 59700 KB Output is correct
136 Correct 789 ms 59716 KB Output is correct
137 Correct 805 ms 59816 KB Output is correct
138 Correct 807 ms 59828 KB Output is correct
139 Correct 801 ms 59700 KB Output is correct
140 Correct 800 ms 59700 KB Output is correct
141 Correct 792 ms 59708 KB Output is correct
142 Correct 805 ms 59700 KB Output is correct
143 Correct 828 ms 59772 KB Output is correct
144 Correct 806 ms 59692 KB Output is correct
145 Correct 812 ms 59932 KB Output is correct
146 Correct 788 ms 59844 KB Output is correct
147 Correct 1 ms 364 KB Output is correct
148 Correct 793 ms 59708 KB Output is correct
149 Correct 794 ms 59700 KB Output is correct
150 Correct 796 ms 59724 KB Output is correct
151 Correct 793 ms 59804 KB Output is correct
152 Correct 796 ms 59704 KB Output is correct
153 Correct 795 ms 59820 KB Output is correct
154 Correct 797 ms 59804 KB Output is correct