답안 #968568

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
968568 2024-04-23T15:51:36 Z huutuan Cookies (JOI23_cookies) C++14
70 / 100
1000 ms 178316 KB
#include<bits/stdc++.h>

using namespace std;

#ifdef sus
const int N=100, M=20;
#else
const int N=15e3+10, M=3010;
#endif
int f[N][M];
int n, m, a[N], b[N], pf[N], _a[N], d[N];
int nxt[N], prv[N];

int32_t main(){
   ios_base::sync_with_stdio(false);
   cin.tie(nullptr);
   cin >> n;
   for (int i=1; i<=n; ++i) cin >> _a[i];
   cin >> m;
   for (int i=1; i<=m; ++i) cin >> b[i];
   for (int i=1; i<=n; ++i) a[i]=_a[i];
   int sum=accumulate(a+1, a+n+1, 0);
   sort(a+1, a+n+1, greater<int>());
   int mx=b[m];
   if (mx<n){
      for (int i=mx+1; i<=n; ++i) a[mx]+=a[i];
   }
   for (int i=1; i<=mx; ++i) pf[i]=pf[i-1]+a[mx-i+1];
   for (int i=1; i<=m; ++i) d[i]=b[i]-b[i-1];
   reverse(d+1, d+m+1);
   int cur=0;
   for (int i=1; i<=m; ++i) nxt[cur]=cur+d[i], prv[cur+d[i]]=cur, cur+=d[i];
   memset(f, 0x3f, sizeof f);
   f[0][0]=0;
   for (int i=0; i<mx; i=nxt[i]){
      for (int j=0; j<=pf[i]; ++j){
         int l=0, r=sum;
         while (l<=r){
            int mid=(l+r)>>1;
            bool check=1;
            for (int k=i; k<=nxt[i]; ++k) check&=j+mid*(k-i)<=pf[k];
            if (check) l=mid+1;
            else r=mid-1;
         }
         for (int val=f[i][j]; val<=r; ++val){
            f[nxt[i]][j+val*(nxt[i]-i)]=min(f[nxt[i]][j+val*(nxt[i]-i)], val);
         }
      }
   }
   if (f[mx][sum]>1e9){
      cout << -1 << '\n';
      return 0;
   }
   vector<int> tr;
   vector<int> sz;
   while (mx){
      int val=f[mx][sum];
      tr.push_back(val);
      sum-=val*(mx-prv[mx]);
      mx=prv[mx];
   }
   reverse(tr.begin(), tr.end());
   for (int i=0; i<m; ++i){
      int cnt=tr[i]-(i?tr[i-1]:0);
      while (cnt--) sz.push_back(b[m-i]);
   }
   priority_queue<pair<int, int>> pq;
   vector<vector<int>> ans;
   for (int i=1; i<=n; ++i) a[i]=_a[i];
   for (int i=1; i<=n; ++i) pq.emplace(a[i], i);
   for (int i:sz){
      ans.emplace_back();
      for (int j=0; j<i; ++j){
         if (pq.empty()){
            cout << -1 << '\n';
            return 0;
         }
         ans.back().push_back(pq.top().second);
         pq.pop();
      }
      for (int j:ans.back()){
         --a[j];
         if (a[j]) pq.emplace(a[j], j);
      }
   }
   cout << ans.size() << '\n';
   for (auto &i:ans){
      cout << i.size();
      for (int j:i) cout << ' ' << j;
      cout << '\n';
   }
   return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 91 ms 177364 KB Output is correct
2 Correct 23 ms 177496 KB Output is correct
3 Correct 23 ms 177388 KB Output is correct
4 Correct 22 ms 177412 KB Output is correct
5 Correct 27 ms 177500 KB Output is correct
6 Correct 22 ms 177400 KB Output is correct
7 Correct 24 ms 177376 KB Output is correct
8 Correct 22 ms 177500 KB Output is correct
9 Correct 22 ms 177500 KB Output is correct
10 Correct 43 ms 177520 KB Output is correct
11 Correct 33 ms 177360 KB Output is correct
12 Correct 27 ms 177396 KB Output is correct
13 Correct 24 ms 177488 KB Output is correct
14 Correct 27 ms 177492 KB Output is correct
15 Correct 27 ms 177488 KB Output is correct
16 Correct 30 ms 177492 KB Output is correct
17 Correct 23 ms 177500 KB Output is correct
18 Correct 23 ms 177492 KB Output is correct
19 Correct 22 ms 177492 KB Output is correct
20 Correct 24 ms 177492 KB Output is correct
21 Correct 26 ms 177492 KB Output is correct
22 Correct 31 ms 177496 KB Output is correct
23 Correct 28 ms 177500 KB Output is correct
24 Correct 27 ms 177492 KB Output is correct
25 Correct 23 ms 177456 KB Output is correct
26 Correct 24 ms 177492 KB Output is correct
27 Correct 25 ms 177396 KB Output is correct
28 Correct 26 ms 177396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 23 ms 177500 KB Output is correct
2 Correct 24 ms 177396 KB Output is correct
3 Correct 22 ms 177500 KB Output is correct
4 Correct 26 ms 177492 KB Output is correct
5 Correct 25 ms 177496 KB Output is correct
6 Correct 23 ms 177496 KB Output is correct
7 Correct 24 ms 177504 KB Output is correct
8 Correct 23 ms 177412 KB Output is correct
9 Correct 24 ms 177564 KB Output is correct
10 Correct 25 ms 178316 KB Output is correct
11 Correct 25 ms 177364 KB Output is correct
12 Correct 23 ms 177372 KB Output is correct
13 Correct 23 ms 177488 KB Output is correct
14 Correct 23 ms 177500 KB Output is correct
15 Correct 23 ms 177500 KB Output is correct
16 Correct 23 ms 177400 KB Output is correct
17 Correct 23 ms 177492 KB Output is correct
18 Correct 24 ms 177744 KB Output is correct
19 Correct 26 ms 177756 KB Output is correct
20 Correct 26 ms 177492 KB Output is correct
21 Correct 27 ms 177628 KB Output is correct
22 Correct 24 ms 177496 KB Output is correct
23 Correct 22 ms 177492 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 22 ms 177492 KB Output is correct
2 Correct 23 ms 177300 KB Output is correct
3 Correct 23 ms 177440 KB Output is correct
4 Correct 23 ms 177396 KB Output is correct
5 Correct 22 ms 177496 KB Output is correct
6 Correct 25 ms 177440 KB Output is correct
7 Correct 25 ms 177488 KB Output is correct
8 Correct 23 ms 177500 KB Output is correct
9 Correct 23 ms 177404 KB Output is correct
10 Correct 23 ms 177500 KB Output is correct
11 Correct 23 ms 177500 KB Output is correct
12 Correct 23 ms 177496 KB Output is correct
13 Correct 23 ms 177488 KB Output is correct
14 Correct 26 ms 177788 KB Output is correct
15 Correct 24 ms 177500 KB Output is correct
16 Correct 22 ms 177488 KB Output is correct
17 Correct 22 ms 177496 KB Output is correct
18 Correct 23 ms 177752 KB Output is correct
19 Correct 23 ms 177388 KB Output is correct
20 Correct 22 ms 177500 KB Output is correct
21 Correct 23 ms 177500 KB Output is correct
22 Correct 22 ms 177492 KB Output is correct
23 Correct 25 ms 177492 KB Output is correct
24 Correct 23 ms 177496 KB Output is correct
25 Correct 23 ms 177392 KB Output is correct
26 Correct 22 ms 177492 KB Output is correct
27 Correct 22 ms 177508 KB Output is correct
28 Correct 23 ms 177364 KB Output is correct
29 Correct 23 ms 177496 KB Output is correct
30 Correct 22 ms 177500 KB Output is correct
31 Correct 24 ms 177496 KB Output is correct
32 Correct 23 ms 177496 KB Output is correct
33 Correct 23 ms 177312 KB Output is correct
34 Correct 23 ms 177496 KB Output is correct
35 Correct 23 ms 177488 KB Output is correct
36 Correct 23 ms 177500 KB Output is correct
37 Correct 23 ms 177404 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 91 ms 177364 KB Output is correct
2 Correct 23 ms 177496 KB Output is correct
3 Correct 23 ms 177388 KB Output is correct
4 Correct 22 ms 177412 KB Output is correct
5 Correct 27 ms 177500 KB Output is correct
6 Correct 22 ms 177400 KB Output is correct
7 Correct 24 ms 177376 KB Output is correct
8 Correct 22 ms 177500 KB Output is correct
9 Correct 22 ms 177500 KB Output is correct
10 Correct 43 ms 177520 KB Output is correct
11 Correct 33 ms 177360 KB Output is correct
12 Correct 27 ms 177396 KB Output is correct
13 Correct 24 ms 177488 KB Output is correct
14 Correct 27 ms 177492 KB Output is correct
15 Correct 27 ms 177488 KB Output is correct
16 Correct 30 ms 177492 KB Output is correct
17 Correct 23 ms 177500 KB Output is correct
18 Correct 23 ms 177492 KB Output is correct
19 Correct 22 ms 177492 KB Output is correct
20 Correct 24 ms 177492 KB Output is correct
21 Correct 26 ms 177492 KB Output is correct
22 Correct 31 ms 177496 KB Output is correct
23 Correct 28 ms 177500 KB Output is correct
24 Correct 27 ms 177492 KB Output is correct
25 Correct 23 ms 177456 KB Output is correct
26 Correct 24 ms 177492 KB Output is correct
27 Correct 25 ms 177396 KB Output is correct
28 Correct 26 ms 177396 KB Output is correct
29 Correct 22 ms 177492 KB Output is correct
30 Correct 23 ms 177300 KB Output is correct
31 Correct 23 ms 177440 KB Output is correct
32 Correct 23 ms 177396 KB Output is correct
33 Correct 22 ms 177496 KB Output is correct
34 Correct 25 ms 177440 KB Output is correct
35 Correct 25 ms 177488 KB Output is correct
36 Correct 23 ms 177500 KB Output is correct
37 Correct 23 ms 177404 KB Output is correct
38 Correct 23 ms 177500 KB Output is correct
39 Correct 23 ms 177500 KB Output is correct
40 Correct 23 ms 177496 KB Output is correct
41 Correct 23 ms 177488 KB Output is correct
42 Correct 26 ms 177788 KB Output is correct
43 Correct 24 ms 177500 KB Output is correct
44 Correct 22 ms 177488 KB Output is correct
45 Correct 22 ms 177496 KB Output is correct
46 Correct 23 ms 177752 KB Output is correct
47 Correct 23 ms 177388 KB Output is correct
48 Correct 22 ms 177500 KB Output is correct
49 Correct 23 ms 177500 KB Output is correct
50 Correct 22 ms 177492 KB Output is correct
51 Correct 25 ms 177492 KB Output is correct
52 Correct 23 ms 177496 KB Output is correct
53 Correct 23 ms 177392 KB Output is correct
54 Correct 22 ms 177492 KB Output is correct
55 Correct 22 ms 177508 KB Output is correct
56 Correct 23 ms 177364 KB Output is correct
57 Correct 23 ms 177496 KB Output is correct
58 Correct 22 ms 177500 KB Output is correct
59 Correct 24 ms 177496 KB Output is correct
60 Correct 23 ms 177496 KB Output is correct
61 Correct 23 ms 177312 KB Output is correct
62 Correct 23 ms 177496 KB Output is correct
63 Correct 23 ms 177488 KB Output is correct
64 Correct 23 ms 177500 KB Output is correct
65 Correct 23 ms 177404 KB Output is correct
66 Correct 24 ms 177488 KB Output is correct
67 Correct 26 ms 177500 KB Output is correct
68 Correct 23 ms 177492 KB Output is correct
69 Correct 24 ms 177412 KB Output is correct
70 Correct 22 ms 177508 KB Output is correct
71 Correct 23 ms 177500 KB Output is correct
72 Correct 25 ms 177344 KB Output is correct
73 Correct 25 ms 177500 KB Output is correct
74 Correct 25 ms 177500 KB Output is correct
75 Correct 23 ms 177500 KB Output is correct
76 Correct 24 ms 177492 KB Output is correct
77 Correct 23 ms 177356 KB Output is correct
78 Correct 26 ms 177496 KB Output is correct
79 Correct 23 ms 177496 KB Output is correct
80 Correct 22 ms 177500 KB Output is correct
81 Correct 24 ms 177496 KB Output is correct
82 Correct 23 ms 177500 KB Output is correct
83 Correct 23 ms 177400 KB Output is correct
84 Correct 24 ms 177500 KB Output is correct
85 Correct 23 ms 177488 KB Output is correct
86 Correct 24 ms 177500 KB Output is correct
87 Correct 24 ms 177500 KB Output is correct
88 Correct 25 ms 177284 KB Output is correct
89 Correct 25 ms 177500 KB Output is correct
90 Correct 26 ms 177500 KB Output is correct
91 Correct 25 ms 177504 KB Output is correct
92 Correct 24 ms 177488 KB Output is correct
93 Correct 37 ms 177372 KB Output is correct
94 Correct 28 ms 177488 KB Output is correct
95 Correct 24 ms 177492 KB Output is correct
96 Correct 23 ms 177488 KB Output is correct
97 Correct 26 ms 177316 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 91 ms 177364 KB Output is correct
2 Correct 23 ms 177496 KB Output is correct
3 Correct 23 ms 177388 KB Output is correct
4 Correct 22 ms 177412 KB Output is correct
5 Correct 27 ms 177500 KB Output is correct
6 Correct 22 ms 177400 KB Output is correct
7 Correct 24 ms 177376 KB Output is correct
8 Correct 22 ms 177500 KB Output is correct
9 Correct 22 ms 177500 KB Output is correct
10 Correct 43 ms 177520 KB Output is correct
11 Correct 33 ms 177360 KB Output is correct
12 Correct 27 ms 177396 KB Output is correct
13 Correct 24 ms 177488 KB Output is correct
14 Correct 27 ms 177492 KB Output is correct
15 Correct 27 ms 177488 KB Output is correct
16 Correct 30 ms 177492 KB Output is correct
17 Correct 23 ms 177500 KB Output is correct
18 Correct 23 ms 177492 KB Output is correct
19 Correct 22 ms 177492 KB Output is correct
20 Correct 24 ms 177492 KB Output is correct
21 Correct 26 ms 177492 KB Output is correct
22 Correct 31 ms 177496 KB Output is correct
23 Correct 28 ms 177500 KB Output is correct
24 Correct 27 ms 177492 KB Output is correct
25 Correct 23 ms 177456 KB Output is correct
26 Correct 24 ms 177492 KB Output is correct
27 Correct 25 ms 177396 KB Output is correct
28 Correct 26 ms 177396 KB Output is correct
29 Correct 22 ms 177492 KB Output is correct
30 Correct 23 ms 177300 KB Output is correct
31 Correct 23 ms 177440 KB Output is correct
32 Correct 23 ms 177396 KB Output is correct
33 Correct 22 ms 177496 KB Output is correct
34 Correct 25 ms 177440 KB Output is correct
35 Correct 25 ms 177488 KB Output is correct
36 Correct 23 ms 177500 KB Output is correct
37 Correct 23 ms 177404 KB Output is correct
38 Correct 23 ms 177500 KB Output is correct
39 Correct 23 ms 177500 KB Output is correct
40 Correct 23 ms 177496 KB Output is correct
41 Correct 23 ms 177488 KB Output is correct
42 Correct 26 ms 177788 KB Output is correct
43 Correct 24 ms 177500 KB Output is correct
44 Correct 22 ms 177488 KB Output is correct
45 Correct 22 ms 177496 KB Output is correct
46 Correct 23 ms 177752 KB Output is correct
47 Correct 23 ms 177388 KB Output is correct
48 Correct 22 ms 177500 KB Output is correct
49 Correct 23 ms 177500 KB Output is correct
50 Correct 22 ms 177492 KB Output is correct
51 Correct 25 ms 177492 KB Output is correct
52 Correct 23 ms 177496 KB Output is correct
53 Correct 23 ms 177392 KB Output is correct
54 Correct 22 ms 177492 KB Output is correct
55 Correct 22 ms 177508 KB Output is correct
56 Correct 23 ms 177364 KB Output is correct
57 Correct 23 ms 177496 KB Output is correct
58 Correct 22 ms 177500 KB Output is correct
59 Correct 24 ms 177496 KB Output is correct
60 Correct 23 ms 177496 KB Output is correct
61 Correct 23 ms 177312 KB Output is correct
62 Correct 23 ms 177496 KB Output is correct
63 Correct 23 ms 177488 KB Output is correct
64 Correct 23 ms 177500 KB Output is correct
65 Correct 23 ms 177404 KB Output is correct
66 Correct 24 ms 177488 KB Output is correct
67 Correct 26 ms 177500 KB Output is correct
68 Correct 23 ms 177492 KB Output is correct
69 Correct 24 ms 177412 KB Output is correct
70 Correct 22 ms 177508 KB Output is correct
71 Correct 23 ms 177500 KB Output is correct
72 Correct 25 ms 177344 KB Output is correct
73 Correct 25 ms 177500 KB Output is correct
74 Correct 25 ms 177500 KB Output is correct
75 Correct 23 ms 177500 KB Output is correct
76 Correct 24 ms 177492 KB Output is correct
77 Correct 23 ms 177356 KB Output is correct
78 Correct 26 ms 177496 KB Output is correct
79 Correct 23 ms 177496 KB Output is correct
80 Correct 22 ms 177500 KB Output is correct
81 Correct 24 ms 177496 KB Output is correct
82 Correct 23 ms 177500 KB Output is correct
83 Correct 23 ms 177400 KB Output is correct
84 Correct 24 ms 177500 KB Output is correct
85 Correct 23 ms 177488 KB Output is correct
86 Correct 24 ms 177500 KB Output is correct
87 Correct 24 ms 177500 KB Output is correct
88 Correct 25 ms 177284 KB Output is correct
89 Correct 25 ms 177500 KB Output is correct
90 Correct 26 ms 177500 KB Output is correct
91 Correct 25 ms 177504 KB Output is correct
92 Correct 24 ms 177488 KB Output is correct
93 Correct 37 ms 177372 KB Output is correct
94 Correct 28 ms 177488 KB Output is correct
95 Correct 24 ms 177492 KB Output is correct
96 Correct 23 ms 177488 KB Output is correct
97 Correct 26 ms 177316 KB Output is correct
98 Correct 23 ms 177492 KB Output is correct
99 Correct 24 ms 177500 KB Output is correct
100 Correct 27 ms 177488 KB Output is correct
101 Correct 30 ms 177532 KB Output is correct
102 Correct 30 ms 177492 KB Output is correct
103 Correct 58 ms 177504 KB Output is correct
104 Correct 57 ms 177488 KB Output is correct
105 Correct 244 ms 177512 KB Output is correct
106 Execution timed out 1071 ms 177472 KB Time limit exceeded
107 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 91 ms 177364 KB Output is correct
2 Correct 23 ms 177496 KB Output is correct
3 Correct 23 ms 177388 KB Output is correct
4 Correct 22 ms 177412 KB Output is correct
5 Correct 27 ms 177500 KB Output is correct
6 Correct 22 ms 177400 KB Output is correct
7 Correct 24 ms 177376 KB Output is correct
8 Correct 22 ms 177500 KB Output is correct
9 Correct 22 ms 177500 KB Output is correct
10 Correct 43 ms 177520 KB Output is correct
11 Correct 33 ms 177360 KB Output is correct
12 Correct 27 ms 177396 KB Output is correct
13 Correct 24 ms 177488 KB Output is correct
14 Correct 27 ms 177492 KB Output is correct
15 Correct 27 ms 177488 KB Output is correct
16 Correct 30 ms 177492 KB Output is correct
17 Correct 23 ms 177500 KB Output is correct
18 Correct 23 ms 177492 KB Output is correct
19 Correct 22 ms 177492 KB Output is correct
20 Correct 24 ms 177492 KB Output is correct
21 Correct 26 ms 177492 KB Output is correct
22 Correct 31 ms 177496 KB Output is correct
23 Correct 28 ms 177500 KB Output is correct
24 Correct 27 ms 177492 KB Output is correct
25 Correct 23 ms 177456 KB Output is correct
26 Correct 24 ms 177492 KB Output is correct
27 Correct 25 ms 177396 KB Output is correct
28 Correct 26 ms 177396 KB Output is correct
29 Correct 23 ms 177500 KB Output is correct
30 Correct 24 ms 177396 KB Output is correct
31 Correct 22 ms 177500 KB Output is correct
32 Correct 26 ms 177492 KB Output is correct
33 Correct 25 ms 177496 KB Output is correct
34 Correct 23 ms 177496 KB Output is correct
35 Correct 24 ms 177504 KB Output is correct
36 Correct 23 ms 177412 KB Output is correct
37 Correct 24 ms 177564 KB Output is correct
38 Correct 25 ms 178316 KB Output is correct
39 Correct 25 ms 177364 KB Output is correct
40 Correct 23 ms 177372 KB Output is correct
41 Correct 23 ms 177488 KB Output is correct
42 Correct 23 ms 177500 KB Output is correct
43 Correct 23 ms 177500 KB Output is correct
44 Correct 23 ms 177400 KB Output is correct
45 Correct 23 ms 177492 KB Output is correct
46 Correct 24 ms 177744 KB Output is correct
47 Correct 26 ms 177756 KB Output is correct
48 Correct 26 ms 177492 KB Output is correct
49 Correct 27 ms 177628 KB Output is correct
50 Correct 24 ms 177496 KB Output is correct
51 Correct 22 ms 177492 KB Output is correct
52 Correct 22 ms 177492 KB Output is correct
53 Correct 23 ms 177300 KB Output is correct
54 Correct 23 ms 177440 KB Output is correct
55 Correct 23 ms 177396 KB Output is correct
56 Correct 22 ms 177496 KB Output is correct
57 Correct 25 ms 177440 KB Output is correct
58 Correct 25 ms 177488 KB Output is correct
59 Correct 23 ms 177500 KB Output is correct
60 Correct 23 ms 177404 KB Output is correct
61 Correct 23 ms 177500 KB Output is correct
62 Correct 23 ms 177500 KB Output is correct
63 Correct 23 ms 177496 KB Output is correct
64 Correct 23 ms 177488 KB Output is correct
65 Correct 26 ms 177788 KB Output is correct
66 Correct 24 ms 177500 KB Output is correct
67 Correct 22 ms 177488 KB Output is correct
68 Correct 22 ms 177496 KB Output is correct
69 Correct 23 ms 177752 KB Output is correct
70 Correct 23 ms 177388 KB Output is correct
71 Correct 22 ms 177500 KB Output is correct
72 Correct 23 ms 177500 KB Output is correct
73 Correct 22 ms 177492 KB Output is correct
74 Correct 25 ms 177492 KB Output is correct
75 Correct 23 ms 177496 KB Output is correct
76 Correct 23 ms 177392 KB Output is correct
77 Correct 22 ms 177492 KB Output is correct
78 Correct 22 ms 177508 KB Output is correct
79 Correct 23 ms 177364 KB Output is correct
80 Correct 23 ms 177496 KB Output is correct
81 Correct 22 ms 177500 KB Output is correct
82 Correct 24 ms 177496 KB Output is correct
83 Correct 23 ms 177496 KB Output is correct
84 Correct 23 ms 177312 KB Output is correct
85 Correct 23 ms 177496 KB Output is correct
86 Correct 23 ms 177488 KB Output is correct
87 Correct 23 ms 177500 KB Output is correct
88 Correct 23 ms 177404 KB Output is correct
89 Correct 24 ms 177488 KB Output is correct
90 Correct 26 ms 177500 KB Output is correct
91 Correct 23 ms 177492 KB Output is correct
92 Correct 24 ms 177412 KB Output is correct
93 Correct 22 ms 177508 KB Output is correct
94 Correct 23 ms 177500 KB Output is correct
95 Correct 25 ms 177344 KB Output is correct
96 Correct 25 ms 177500 KB Output is correct
97 Correct 25 ms 177500 KB Output is correct
98 Correct 23 ms 177500 KB Output is correct
99 Correct 24 ms 177492 KB Output is correct
100 Correct 23 ms 177356 KB Output is correct
101 Correct 26 ms 177496 KB Output is correct
102 Correct 23 ms 177496 KB Output is correct
103 Correct 22 ms 177500 KB Output is correct
104 Correct 24 ms 177496 KB Output is correct
105 Correct 23 ms 177500 KB Output is correct
106 Correct 23 ms 177400 KB Output is correct
107 Correct 24 ms 177500 KB Output is correct
108 Correct 23 ms 177488 KB Output is correct
109 Correct 24 ms 177500 KB Output is correct
110 Correct 24 ms 177500 KB Output is correct
111 Correct 25 ms 177284 KB Output is correct
112 Correct 25 ms 177500 KB Output is correct
113 Correct 26 ms 177500 KB Output is correct
114 Correct 25 ms 177504 KB Output is correct
115 Correct 24 ms 177488 KB Output is correct
116 Correct 37 ms 177372 KB Output is correct
117 Correct 28 ms 177488 KB Output is correct
118 Correct 24 ms 177492 KB Output is correct
119 Correct 23 ms 177488 KB Output is correct
120 Correct 26 ms 177316 KB Output is correct
121 Correct 23 ms 177492 KB Output is correct
122 Correct 24 ms 177500 KB Output is correct
123 Correct 27 ms 177488 KB Output is correct
124 Correct 30 ms 177532 KB Output is correct
125 Correct 30 ms 177492 KB Output is correct
126 Correct 58 ms 177504 KB Output is correct
127 Correct 57 ms 177488 KB Output is correct
128 Correct 244 ms 177512 KB Output is correct
129 Execution timed out 1071 ms 177472 KB Time limit exceeded
130 Halted 0 ms 0 KB -