Submission #1049477

# Submission time Handle Problem Language Result Execution time Memory
1049477 2024-08-08T19:22:52 Z shenfe1 Portal (BOI24_portal) C++17
100 / 100
46 ms 13964 KB
#include <bits/stdc++.h>

#pragma optimize("Ofast")
#pragma target("avx2")

using namespace std;

#define ll long long
#define ld long double
#define pb push_back
#define pii pair<int,int>
#define all(v) v.begin(),v.end()
#define F first
#define S second
#define mem(a,i) memset(a,i,sizeof(a))
#define sz(s) (int)s.size()
#define ppb pop_back
#define lb lower_bound
#define ub upper_bound
#define in insert
#define int ll

const int MAX=3e5+15;
const ll inf=1e18+1;
const int mod=998244353;
const int mod1=1e9+9;

int dx[8]={1,0,-1,0,1,-1,-1,1};
int dy[8]={0,1,0,-1,1,-1,1,-1};

int binpow(int a,int n){
    if(!n)return 1;
    if(n%2==1)return a*binpow(a,n-1)%mod;
    int k=binpow(a,n/2);
    return k*k%mod;
}

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

int n;

pair<pair<int,__int128>,pair<int,__int128>> gcd(pair<int,__int128> a,pair<int,__int128> b){
    if(a.F==0||b.F==0)return {a,b};
    if(a.F<b.F)swap(a,b);
    int c=a.F/b.F;
    a.F%=b.F;
    a.S-=b.S*c;
    return gcd(b,a);
}

int x[MAX],y[MAX];

void cr(__int128 a){
    vector<int> x;
    if(a==0)cerr<<0;
    while(a>0)x.pb(a%10);
    reverse(all(x));
    for(int f:x)cerr<<f;
    cerr<<"\n";
}

__int128 gcd(__int128 a,__int128 b){
    // cr(a),cr(b);
    if(b<0)b*=-1;
    if(a<0)a*=-1;
    if(a==0)return b;
    if(b==0)return a;
    if(a<b)swap(a,b);
    return gcd(b,a%b);
}

void solve(){
    cin>>n;
    if(n<=2){
        cout<<-1<<"\n";
        return;
    }
    for(int i=1;i<=n;i++)cin>>x[i]>>y[i];
    __int128 g=0;
    set<pair<int,__int128>> vec;
    for(int i=2;i<=n;i++){
        if(x[i]==x[1]){
            if(y[i]!=y[1]){
                __int128 f=y[i]-y[1];
                // cr(g),cr(f);
                g=gcd(g ,f);
            }
        }
        else{
            if(x[i]-x[1]>0)vec.insert({x[i]-x[1],y[i]-y[1]});
            else vec.insert({x[1]-x[i],y[1]-y[i]});
        }
    }
    while(sz(vec)>=2){
        pair<int,__int128> a=*vec.begin();
        vec.erase(vec.begin());
        pair<int,__int128> b=*vec.begin();
        vec.erase(vec.begin());
        pair<pair<int,__int128>,pair<int,__int128>> res=gcd(a,b);
        if(res.F.F==0){
            if(res.F.S!=0){
                g=gcd(g,res.F.S);
            }
        }
        else vec.insert(res.F);
        if(res.S.F==0){
            if(res.S.S!=0){
                g=gcd(g,res.S.S);
            }
        }
        else vec.insert(res.S);
    }
    if(vec.empty()||g==0)cout<<-1<<"\n";
    else{
        // cout<<g<<" "<<vec.begin()->F<<" "<<vec.begin()->S<<"\n";
        int G=g;
        cout<<G*vec.begin()->F<<"\n";
    }
}

signed main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int t=1;
    // cin>>t;
    while(t--){
        solve();
    }
}

Compilation message

Main.cpp:3: warning: ignoring '#pragma optimize ' [-Wunknown-pragmas]
    3 | #pragma optimize("Ofast")
      | 
Main.cpp:4: warning: ignoring '#pragma target ' [-Wunknown-pragmas]
    4 | #pragma target("avx2")
      |
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 344 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 344 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 2392 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 0 ms 2396 KB Output is correct
23 Correct 0 ms 2396 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 0 ms 2396 KB Output is correct
26 Correct 0 ms 2652 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 0 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 0 ms 2396 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 2396 KB Output is correct
33 Correct 0 ms 2396 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 0 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 0 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 40 ms 12352 KB Output is correct
3 Correct 46 ms 13512 KB Output is correct
4 Correct 40 ms 13380 KB Output is correct
5 Correct 44 ms 13396 KB Output is correct
6 Correct 40 ms 13440 KB Output is correct
7 Correct 35 ms 12120 KB Output is correct
8 Correct 37 ms 13176 KB Output is correct
9 Correct 37 ms 12580 KB Output is correct
10 Correct 24 ms 9564 KB Output is correct
11 Correct 40 ms 13740 KB Output is correct
12 Correct 40 ms 13148 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 39 ms 13304 KB Output is correct
15 Correct 41 ms 13392 KB Output is correct
16 Correct 39 ms 13372 KB Output is correct
17 Correct 39 ms 13396 KB Output is correct
18 Correct 41 ms 13652 KB Output is correct
19 Correct 39 ms 13428 KB Output is correct
20 Correct 39 ms 13336 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 2396 KB Output is correct
2 Correct 0 ms 2396 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 0 ms 2396 KB Output is correct
6 Correct 0 ms 2396 KB Output is correct
7 Correct 0 ms 2396 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 0 ms 2396 KB Output is correct
12 Correct 0 ms 2396 KB Output is correct
13 Correct 0 ms 2396 KB Output is correct
14 Correct 0 ms 2396 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 2396 KB Output is correct
17 Correct 0 ms 2396 KB Output is correct
18 Correct 0 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 0 ms 2396 KB Output is correct
21 Correct 1 ms 2396 KB Output is correct
22 Correct 0 ms 2396 KB Output is correct
23 Correct 1 ms 2396 KB Output is correct
24 Correct 1 ms 2396 KB Output is correct
25 Correct 1 ms 2396 KB Output is correct
26 Correct 0 ms 2396 KB Output is correct
27 Correct 1 ms 2392 KB Output is correct
28 Correct 1 ms 2392 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2396 KB Output is correct
31 Correct 0 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 0 ms 2396 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2392 KB Output is correct
37 Correct 1 ms 2392 KB Output is correct
38 Correct 1 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
40 Correct 0 ms 2512 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 344 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 2392 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 0 ms 2396 KB Output is correct
23 Correct 0 ms 2396 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 0 ms 2396 KB Output is correct
26 Correct 0 ms 2652 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 0 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 0 ms 2396 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 2396 KB Output is correct
33 Correct 0 ms 2396 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 0 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 0 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
40 Correct 0 ms 2396 KB Output is correct
41 Correct 0 ms 2396 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 2396 KB Output is correct
44 Correct 0 ms 2396 KB Output is correct
45 Correct 0 ms 2396 KB Output is correct
46 Correct 0 ms 2396 KB Output is correct
47 Correct 0 ms 2396 KB Output is correct
48 Correct 0 ms 2396 KB Output is correct
49 Correct 0 ms 2396 KB Output is correct
50 Correct 0 ms 2396 KB Output is correct
51 Correct 0 ms 2396 KB Output is correct
52 Correct 0 ms 2396 KB Output is correct
53 Correct 0 ms 2396 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 1 ms 2396 KB Output is correct
56 Correct 0 ms 2396 KB Output is correct
57 Correct 0 ms 2396 KB Output is correct
58 Correct 1 ms 2396 KB Output is correct
59 Correct 0 ms 2396 KB Output is correct
60 Correct 1 ms 2396 KB Output is correct
61 Correct 0 ms 2396 KB Output is correct
62 Correct 1 ms 2396 KB Output is correct
63 Correct 1 ms 2396 KB Output is correct
64 Correct 1 ms 2396 KB Output is correct
65 Correct 0 ms 2396 KB Output is correct
66 Correct 1 ms 2392 KB Output is correct
67 Correct 1 ms 2392 KB Output is correct
68 Correct 0 ms 2396 KB Output is correct
69 Correct 1 ms 2396 KB Output is correct
70 Correct 0 ms 2396 KB Output is correct
71 Correct 1 ms 2396 KB Output is correct
72 Correct 0 ms 2396 KB Output is correct
73 Correct 0 ms 2396 KB Output is correct
74 Correct 1 ms 2396 KB Output is correct
75 Correct 1 ms 2392 KB Output is correct
76 Correct 1 ms 2392 KB Output is correct
77 Correct 1 ms 2396 KB Output is correct
78 Correct 0 ms 2396 KB Output is correct
79 Correct 0 ms 2512 KB Output is correct
80 Correct 1 ms 2648 KB Output is correct
81 Correct 1 ms 2652 KB Output is correct
82 Correct 1 ms 2392 KB Output is correct
83 Correct 1 ms 2652 KB Output is correct
84 Correct 1 ms 2396 KB Output is correct
85 Correct 1 ms 2396 KB Output is correct
86 Correct 1 ms 2528 KB Output is correct
87 Correct 1 ms 2392 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 1 ms 2652 KB Output is correct
90 Correct 1 ms 2556 KB Output is correct
91 Correct 1 ms 2564 KB Output is correct
92 Correct 1 ms 2652 KB Output is correct
93 Correct 1 ms 2652 KB Output is correct
94 Correct 1 ms 2652 KB Output is correct
95 Correct 1 ms 2696 KB Output is correct
96 Correct 1 ms 2652 KB Output is correct
97 Correct 1 ms 2652 KB Output is correct
98 Correct 1 ms 2652 KB Output is correct
99 Correct 1 ms 2652 KB Output is correct
100 Correct 1 ms 2652 KB Output is correct
101 Correct 1 ms 2652 KB Output is correct
102 Correct 1 ms 2652 KB Output is correct
103 Correct 1 ms 2652 KB Output is correct
104 Correct 1 ms 2652 KB Output is correct
105 Correct 1 ms 2652 KB Output is correct
106 Correct 1 ms 2652 KB Output is correct
107 Correct 1 ms 2652 KB Output is correct
108 Correct 1 ms 2652 KB Output is correct
109 Correct 1 ms 2652 KB Output is correct
110 Correct 1 ms 2652 KB Output is correct
111 Correct 0 ms 2396 KB Output is correct
112 Correct 0 ms 2396 KB Output is correct
113 Correct 0 ms 2396 KB Output is correct
114 Correct 1 ms 2652 KB Output is correct
115 Correct 1 ms 2652 KB Output is correct
116 Correct 1 ms 2904 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 344 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 2392 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 0 ms 2396 KB Output is correct
23 Correct 0 ms 2396 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 0 ms 2396 KB Output is correct
26 Correct 0 ms 2652 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 0 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 0 ms 2396 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 2396 KB Output is correct
33 Correct 0 ms 2396 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 0 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 0 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 40 ms 12352 KB Output is correct
42 Correct 46 ms 13512 KB Output is correct
43 Correct 40 ms 13380 KB Output is correct
44 Correct 44 ms 13396 KB Output is correct
45 Correct 40 ms 13440 KB Output is correct
46 Correct 35 ms 12120 KB Output is correct
47 Correct 37 ms 13176 KB Output is correct
48 Correct 37 ms 12580 KB Output is correct
49 Correct 24 ms 9564 KB Output is correct
50 Correct 40 ms 13740 KB Output is correct
51 Correct 40 ms 13148 KB Output is correct
52 Correct 0 ms 344 KB Output is correct
53 Correct 39 ms 13304 KB Output is correct
54 Correct 41 ms 13392 KB Output is correct
55 Correct 39 ms 13372 KB Output is correct
56 Correct 39 ms 13396 KB Output is correct
57 Correct 41 ms 13652 KB Output is correct
58 Correct 39 ms 13428 KB Output is correct
59 Correct 39 ms 13336 KB Output is correct
60 Correct 0 ms 2396 KB Output is correct
61 Correct 0 ms 2396 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 0 ms 2396 KB Output is correct
64 Correct 0 ms 2396 KB Output is correct
65 Correct 0 ms 2396 KB Output is correct
66 Correct 0 ms 2396 KB Output is correct
67 Correct 0 ms 2396 KB Output is correct
68 Correct 0 ms 2396 KB Output is correct
69 Correct 0 ms 2396 KB Output is correct
70 Correct 0 ms 2396 KB Output is correct
71 Correct 0 ms 2396 KB Output is correct
72 Correct 0 ms 2396 KB Output is correct
73 Correct 0 ms 2396 KB Output is correct
74 Correct 1 ms 344 KB Output is correct
75 Correct 1 ms 2396 KB Output is correct
76 Correct 0 ms 2396 KB Output is correct
77 Correct 0 ms 2396 KB Output is correct
78 Correct 1 ms 2396 KB Output is correct
79 Correct 0 ms 2396 KB Output is correct
80 Correct 1 ms 2396 KB Output is correct
81 Correct 0 ms 2396 KB Output is correct
82 Correct 1 ms 2396 KB Output is correct
83 Correct 1 ms 2396 KB Output is correct
84 Correct 1 ms 2396 KB Output is correct
85 Correct 0 ms 2396 KB Output is correct
86 Correct 1 ms 2392 KB Output is correct
87 Correct 1 ms 2392 KB Output is correct
88 Correct 0 ms 2396 KB Output is correct
89 Correct 1 ms 2396 KB Output is correct
90 Correct 0 ms 2396 KB Output is correct
91 Correct 1 ms 2396 KB Output is correct
92 Correct 0 ms 2396 KB Output is correct
93 Correct 0 ms 2396 KB Output is correct
94 Correct 1 ms 2396 KB Output is correct
95 Correct 1 ms 2392 KB Output is correct
96 Correct 1 ms 2392 KB Output is correct
97 Correct 1 ms 2396 KB Output is correct
98 Correct 0 ms 2396 KB Output is correct
99 Correct 0 ms 2512 KB Output is correct
100 Correct 1 ms 2648 KB Output is correct
101 Correct 1 ms 2652 KB Output is correct
102 Correct 1 ms 2392 KB Output is correct
103 Correct 1 ms 2652 KB Output is correct
104 Correct 1 ms 2396 KB Output is correct
105 Correct 1 ms 2396 KB Output is correct
106 Correct 1 ms 2528 KB Output is correct
107 Correct 1 ms 2392 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 1 ms 2652 KB Output is correct
110 Correct 1 ms 2556 KB Output is correct
111 Correct 1 ms 2564 KB Output is correct
112 Correct 1 ms 2652 KB Output is correct
113 Correct 1 ms 2652 KB Output is correct
114 Correct 1 ms 2652 KB Output is correct
115 Correct 1 ms 2696 KB Output is correct
116 Correct 1 ms 2652 KB Output is correct
117 Correct 1 ms 2652 KB Output is correct
118 Correct 1 ms 2652 KB Output is correct
119 Correct 1 ms 2652 KB Output is correct
120 Correct 1 ms 2652 KB Output is correct
121 Correct 1 ms 2652 KB Output is correct
122 Correct 1 ms 2652 KB Output is correct
123 Correct 1 ms 2652 KB Output is correct
124 Correct 1 ms 2652 KB Output is correct
125 Correct 1 ms 2652 KB Output is correct
126 Correct 1 ms 2652 KB Output is correct
127 Correct 1 ms 2652 KB Output is correct
128 Correct 1 ms 2652 KB Output is correct
129 Correct 1 ms 2652 KB Output is correct
130 Correct 1 ms 2652 KB Output is correct
131 Correct 0 ms 2396 KB Output is correct
132 Correct 0 ms 2396 KB Output is correct
133 Correct 0 ms 2396 KB Output is correct
134 Correct 1 ms 2652 KB Output is correct
135 Correct 1 ms 2652 KB Output is correct
136 Correct 1 ms 2904 KB Output is correct
137 Correct 40 ms 13904 KB Output is correct
138 Correct 46 ms 13960 KB Output is correct
139 Correct 38 ms 13908 KB Output is correct
140 Correct 37 ms 13764 KB Output is correct
141 Correct 39 ms 13916 KB Output is correct
142 Correct 1 ms 2648 KB Output is correct
143 Correct 1 ms 2652 KB Output is correct
144 Correct 1 ms 2652 KB Output is correct
145 Correct 3 ms 3164 KB Output is correct
146 Correct 3 ms 3420 KB Output is correct
147 Correct 3 ms 3420 KB Output is correct
148 Correct 0 ms 348 KB Output is correct
149 Correct 38 ms 13700 KB Output is correct
150 Correct 38 ms 13856 KB Output is correct
151 Correct 42 ms 13928 KB Output is correct
152 Correct 38 ms 13904 KB Output is correct
153 Correct 39 ms 13912 KB Output is correct
154 Correct 41 ms 13964 KB Output is correct
155 Correct 45 ms 13748 KB Output is correct
156 Correct 36 ms 13140 KB Output is correct
157 Correct 35 ms 13140 KB Output is correct
158 Correct 36 ms 13140 KB Output is correct
159 Correct 33 ms 12628 KB Output is correct
160 Correct 35 ms 13136 KB Output is correct
161 Correct 35 ms 12884 KB Output is correct
162 Correct 35 ms 13144 KB Output is correct
163 Correct 33 ms 12824 KB Output is correct
164 Correct 34 ms 12628 KB Output is correct
165 Correct 33 ms 12620 KB Output is correct
166 Correct 43 ms 12372 KB Output is correct
167 Correct 36 ms 13104 KB Output is correct
168 Correct 39 ms 12624 KB Output is correct
169 Correct 30 ms 12112 KB Output is correct
170 Correct 31 ms 12372 KB Output is correct
171 Correct 0 ms 2396 KB Output is correct
172 Correct 0 ms 2396 KB Output is correct
173 Correct 1 ms 2392 KB Output is correct