Submission #1110013

# Submission time Handle Problem Language Result Execution time Memory
1110013 2024-11-08T12:50:25 Z quannnguyen2009 JJOOII 2 (JOI20_ho_t2) C++17
100 / 100
36 ms 5616 KB
#pragma GCC optimize("O3,unroint-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#include<bits/stdc++.h>
#define int long long
#define fi first
#define se second
#define pb push_back
#define ii pair<int, int>
#define sz(v) (int)v.size()
#define aint(v) v.begin(), v.end()
using namespace std;

const int N=2e5+5, mod = 1e9+7, inf = 1e18;

int n, k;
string s;
int co[N], cj[N], ci[N];
 
signed main() {
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    cin >> n >> k >> s;
    for (int i=0; i<n; i++) {
        co[i+1] = co[i]; cj[i+1] = cj[i]; ci[i+1] = ci[i];
        if(s[i]=='O') co[i+1]++;
        else if(s[i]=='J') cj[i+1]++;
        else ci[i+1]++;
    }
    int mn = inf;
    for (int i=0; i<n; i++) {
        int cnt = 0;
        if(cj[i+1]<k) continue;
        int lo=0, hi=i+1;
        while(lo+1<hi) {
            int mid = (lo+hi)>>1;
            if(cj[i+1]-cj[mid]>=k) lo = mid;
            else hi = mid;
        }
        cnt+=i-lo+1-k;

        lo=i; hi=n;
        while(lo+1<hi) {
            int mid = (lo+hi)>>1;
            if(co[mid]-co[i]>=k) hi = mid;
            else lo = mid;
        }
        cnt += hi-i-1-k;

        int nl = hi;
        if(ci[n]-ci[hi]<k) continue;
        lo = nl; hi = n;
        while(lo+1<hi) {
            int mid = (lo+hi)>>1;
            if(ci[mid]-ci[nl]<k) lo=mid;
            else hi = mid;
        }
        cnt += hi-nl-k;
        mn = min(mn, max(cnt, 0LL));
    }
    if(mn==inf) cout << -1;
    else cout << mn;
}

Compilation message

ho_t2.cpp:1:40: warning: bad option '-funroint-loops' to pragma 'optimize' [-Wpragmas]
    1 | #pragma GCC optimize("O3,unroint-loops")
      |                                        ^
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
    2 | #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
      |                                                ^
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-loops' to attribute 'optimize' [-Wattributes]
ho_t2.cpp:2:48: warning: bad option '-funroint-
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 336 KB Output is correct
7 Correct 1 ms 468 KB Output is correct
8 Correct 1 ms 336 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 404 KB Output is correct
12 Correct 1 ms 504 KB Output is correct
13 Correct 1 ms 336 KB Output is correct
14 Correct 1 ms 472 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 336 KB Output is correct
7 Correct 1 ms 468 KB Output is correct
8 Correct 1 ms 336 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 404 KB Output is correct
12 Correct 1 ms 504 KB Output is correct
13 Correct 1 ms 336 KB Output is correct
14 Correct 1 ms 472 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 1 ms 336 KB Output is correct
19 Correct 2 ms 592 KB Output is correct
20 Correct 1 ms 504 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 336 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 1 ms 564 KB Output is correct
26 Correct 1 ms 336 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 336 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 336 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 336 KB Output is correct
7 Correct 1 ms 468 KB Output is correct
8 Correct 1 ms 336 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 404 KB Output is correct
12 Correct 1 ms 504 KB Output is correct
13 Correct 1 ms 336 KB Output is correct
14 Correct 1 ms 472 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 1 ms 336 KB Output is correct
19 Correct 2 ms 592 KB Output is correct
20 Correct 1 ms 504 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 336 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 1 ms 564 KB Output is correct
26 Correct 1 ms 336 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 336 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
36 Correct 19 ms 5084 KB Output is correct
37 Correct 19 ms 5596 KB Output is correct
38 Correct 27 ms 5596 KB Output is correct
39 Correct 21 ms 5596 KB Output is correct
40 Correct 16 ms 5604 KB Output is correct
41 Correct 20 ms 5596 KB Output is correct
42 Correct 36 ms 5608 KB Output is correct
43 Correct 12 ms 3664 KB Output is correct
44 Correct 12 ms 4316 KB Output is correct
45 Correct 14 ms 5608 KB Output is correct
46 Correct 14 ms 5596 KB Output is correct
47 Correct 13 ms 5596 KB Output is correct
48 Correct 15 ms 5616 KB Output is correct
49 Correct 10 ms 3804 KB Output is correct
50 Correct 15 ms 5596 KB Output is correct
51 Correct 15 ms 5596 KB Output is correct
52 Correct 7 ms 5352 KB Output is correct
53 Correct 8 ms 5488 KB Output is correct
54 Correct 19 ms 5596 KB Output is correct
55 Correct 14 ms 5596 KB Output is correct
56 Correct 12 ms 5596 KB Output is correct