답안 #968566

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

using namespace std;

#ifdef sus
const int N=100, M=20;
#else
const int N=15e3+10, M=510;
#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 5 ms 30556 KB Output is correct
2 Correct 4 ms 30552 KB Output is correct
3 Correct 5 ms 30556 KB Output is correct
4 Correct 4 ms 30556 KB Output is correct
5 Correct 5 ms 30556 KB Output is correct
6 Correct 5 ms 30552 KB Output is correct
7 Correct 5 ms 30556 KB Output is correct
8 Correct 5 ms 30556 KB Output is correct
9 Correct 5 ms 30552 KB Output is correct
10 Correct 25 ms 30556 KB Output is correct
11 Correct 9 ms 30668 KB Output is correct
12 Correct 9 ms 30552 KB Output is correct
13 Correct 6 ms 30556 KB Output is correct
14 Correct 9 ms 30676 KB Output is correct
15 Correct 8 ms 30668 KB Output is correct
16 Correct 10 ms 30556 KB Output is correct
17 Correct 5 ms 30556 KB Output is correct
18 Correct 5 ms 30556 KB Output is correct
19 Correct 5 ms 30556 KB Output is correct
20 Correct 5 ms 30556 KB Output is correct
21 Correct 7 ms 30664 KB Output is correct
22 Correct 9 ms 30556 KB Output is correct
23 Correct 9 ms 30556 KB Output is correct
24 Correct 7 ms 30812 KB Output is correct
25 Correct 5 ms 30432 KB Output is correct
26 Correct 6 ms 30556 KB Output is correct
27 Correct 6 ms 30556 KB Output is correct
28 Correct 6 ms 30668 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 30556 KB Output is correct
2 Correct 4 ms 30556 KB Output is correct
3 Correct 5 ms 30556 KB Output is correct
4 Correct 5 ms 30556 KB Output is correct
5 Correct 5 ms 30556 KB Output is correct
6 Correct 5 ms 30672 KB Output is correct
7 Correct 5 ms 30556 KB Output is correct
8 Correct 5 ms 30464 KB Output is correct
9 Correct 5 ms 31064 KB Output is correct
10 Correct 7 ms 31384 KB Output is correct
11 Correct 4 ms 30556 KB Output is correct
12 Correct 4 ms 30556 KB Output is correct
13 Correct 5 ms 30552 KB Output is correct
14 Correct 5 ms 30552 KB Output is correct
15 Correct 5 ms 30556 KB Output is correct
16 Correct 5 ms 30552 KB Output is correct
17 Correct 5 ms 30416 KB Output is correct
18 Correct 7 ms 30812 KB Output is correct
19 Correct 9 ms 31068 KB Output is correct
20 Correct 6 ms 30808 KB Output is correct
21 Correct 7 ms 30552 KB Output is correct
22 Correct 6 ms 30556 KB Output is correct
23 Correct 5 ms 30808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 30556 KB Output is correct
2 Correct 5 ms 30556 KB Output is correct
3 Correct 4 ms 30556 KB Output is correct
4 Correct 5 ms 30552 KB Output is correct
5 Correct 5 ms 30556 KB Output is correct
6 Correct 5 ms 30552 KB Output is correct
7 Correct 5 ms 30556 KB Output is correct
8 Correct 5 ms 30556 KB Output is correct
9 Correct 5 ms 30556 KB Output is correct
10 Correct 5 ms 30556 KB Output is correct
11 Correct 4 ms 30556 KB Output is correct
12 Correct 4 ms 30672 KB Output is correct
13 Correct 5 ms 30556 KB Output is correct
14 Correct 5 ms 30552 KB Output is correct
15 Correct 4 ms 30468 KB Output is correct
16 Correct 5 ms 30552 KB Output is correct
17 Correct 4 ms 30552 KB Output is correct
18 Correct 5 ms 30556 KB Output is correct
19 Correct 4 ms 30552 KB Output is correct
20 Correct 5 ms 30572 KB Output is correct
21 Correct 4 ms 30556 KB Output is correct
22 Correct 4 ms 30556 KB Output is correct
23 Correct 4 ms 30556 KB Output is correct
24 Correct 5 ms 30556 KB Output is correct
25 Correct 5 ms 30556 KB Output is correct
26 Correct 5 ms 30556 KB Output is correct
27 Correct 5 ms 30556 KB Output is correct
28 Correct 5 ms 30556 KB Output is correct
29 Correct 5 ms 30416 KB Output is correct
30 Correct 5 ms 30556 KB Output is correct
31 Correct 5 ms 30556 KB Output is correct
32 Correct 4 ms 30556 KB Output is correct
33 Correct 5 ms 30556 KB Output is correct
34 Correct 5 ms 30556 KB Output is correct
35 Correct 5 ms 30448 KB Output is correct
36 Correct 5 ms 30552 KB Output is correct
37 Correct 5 ms 30556 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 30556 KB Output is correct
2 Correct 4 ms 30552 KB Output is correct
3 Correct 5 ms 30556 KB Output is correct
4 Correct 4 ms 30556 KB Output is correct
5 Correct 5 ms 30556 KB Output is correct
6 Correct 5 ms 30552 KB Output is correct
7 Correct 5 ms 30556 KB Output is correct
8 Correct 5 ms 30556 KB Output is correct
9 Correct 5 ms 30552 KB Output is correct
10 Correct 25 ms 30556 KB Output is correct
11 Correct 9 ms 30668 KB Output is correct
12 Correct 9 ms 30552 KB Output is correct
13 Correct 6 ms 30556 KB Output is correct
14 Correct 9 ms 30676 KB Output is correct
15 Correct 8 ms 30668 KB Output is correct
16 Correct 10 ms 30556 KB Output is correct
17 Correct 5 ms 30556 KB Output is correct
18 Correct 5 ms 30556 KB Output is correct
19 Correct 5 ms 30556 KB Output is correct
20 Correct 5 ms 30556 KB Output is correct
21 Correct 7 ms 30664 KB Output is correct
22 Correct 9 ms 30556 KB Output is correct
23 Correct 9 ms 30556 KB Output is correct
24 Correct 7 ms 30812 KB Output is correct
25 Correct 5 ms 30432 KB Output is correct
26 Correct 6 ms 30556 KB Output is correct
27 Correct 6 ms 30556 KB Output is correct
28 Correct 6 ms 30668 KB Output is correct
29 Correct 5 ms 30556 KB Output is correct
30 Correct 5 ms 30556 KB Output is correct
31 Correct 4 ms 30556 KB Output is correct
32 Correct 5 ms 30552 KB Output is correct
33 Correct 5 ms 30556 KB Output is correct
34 Correct 5 ms 30552 KB Output is correct
35 Correct 5 ms 30556 KB Output is correct
36 Correct 5 ms 30556 KB Output is correct
37 Correct 5 ms 30556 KB Output is correct
38 Correct 5 ms 30556 KB Output is correct
39 Correct 4 ms 30556 KB Output is correct
40 Correct 4 ms 30672 KB Output is correct
41 Correct 5 ms 30556 KB Output is correct
42 Correct 5 ms 30552 KB Output is correct
43 Correct 4 ms 30468 KB Output is correct
44 Correct 5 ms 30552 KB Output is correct
45 Correct 4 ms 30552 KB Output is correct
46 Correct 5 ms 30556 KB Output is correct
47 Correct 4 ms 30552 KB Output is correct
48 Correct 5 ms 30572 KB Output is correct
49 Correct 4 ms 30556 KB Output is correct
50 Correct 4 ms 30556 KB Output is correct
51 Correct 4 ms 30556 KB Output is correct
52 Correct 5 ms 30556 KB Output is correct
53 Correct 5 ms 30556 KB Output is correct
54 Correct 5 ms 30556 KB Output is correct
55 Correct 5 ms 30556 KB Output is correct
56 Correct 5 ms 30556 KB Output is correct
57 Correct 5 ms 30416 KB Output is correct
58 Correct 5 ms 30556 KB Output is correct
59 Correct 5 ms 30556 KB Output is correct
60 Correct 4 ms 30556 KB Output is correct
61 Correct 5 ms 30556 KB Output is correct
62 Correct 5 ms 30556 KB Output is correct
63 Correct 5 ms 30448 KB Output is correct
64 Correct 5 ms 30552 KB Output is correct
65 Correct 5 ms 30556 KB Output is correct
66 Correct 5 ms 30564 KB Output is correct
67 Correct 6 ms 30560 KB Output is correct
68 Correct 5 ms 30484 KB Output is correct
69 Correct 4 ms 30428 KB Output is correct
70 Correct 5 ms 30684 KB Output is correct
71 Correct 6 ms 30440 KB Output is correct
72 Correct 5 ms 30564 KB Output is correct
73 Correct 5 ms 30560 KB Output is correct
74 Correct 5 ms 30552 KB Output is correct
75 Correct 5 ms 30552 KB Output is correct
76 Correct 4 ms 30556 KB Output is correct
77 Correct 5 ms 30564 KB Output is correct
78 Correct 5 ms 30556 KB Output is correct
79 Correct 5 ms 30484 KB Output is correct
80 Correct 4 ms 30560 KB Output is correct
81 Correct 4 ms 30472 KB Output is correct
82 Correct 5 ms 30556 KB Output is correct
83 Correct 5 ms 30556 KB Output is correct
84 Correct 5 ms 30556 KB Output is correct
85 Correct 5 ms 30556 KB Output is correct
86 Correct 5 ms 30556 KB Output is correct
87 Correct 7 ms 30556 KB Output is correct
88 Correct 6 ms 30556 KB Output is correct
89 Correct 6 ms 30452 KB Output is correct
90 Correct 6 ms 30556 KB Output is correct
91 Correct 6 ms 30556 KB Output is correct
92 Correct 6 ms 30444 KB Output is correct
93 Correct 18 ms 30556 KB Output is correct
94 Correct 9 ms 30556 KB Output is correct
95 Correct 5 ms 30556 KB Output is correct
96 Correct 5 ms 30484 KB Output is correct
97 Correct 5 ms 30556 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 30556 KB Output is correct
2 Correct 4 ms 30552 KB Output is correct
3 Correct 5 ms 30556 KB Output is correct
4 Correct 4 ms 30556 KB Output is correct
5 Correct 5 ms 30556 KB Output is correct
6 Correct 5 ms 30552 KB Output is correct
7 Correct 5 ms 30556 KB Output is correct
8 Correct 5 ms 30556 KB Output is correct
9 Correct 5 ms 30552 KB Output is correct
10 Correct 25 ms 30556 KB Output is correct
11 Correct 9 ms 30668 KB Output is correct
12 Correct 9 ms 30552 KB Output is correct
13 Correct 6 ms 30556 KB Output is correct
14 Correct 9 ms 30676 KB Output is correct
15 Correct 8 ms 30668 KB Output is correct
16 Correct 10 ms 30556 KB Output is correct
17 Correct 5 ms 30556 KB Output is correct
18 Correct 5 ms 30556 KB Output is correct
19 Correct 5 ms 30556 KB Output is correct
20 Correct 5 ms 30556 KB Output is correct
21 Correct 7 ms 30664 KB Output is correct
22 Correct 9 ms 30556 KB Output is correct
23 Correct 9 ms 30556 KB Output is correct
24 Correct 7 ms 30812 KB Output is correct
25 Correct 5 ms 30432 KB Output is correct
26 Correct 6 ms 30556 KB Output is correct
27 Correct 6 ms 30556 KB Output is correct
28 Correct 6 ms 30668 KB Output is correct
29 Correct 5 ms 30556 KB Output is correct
30 Correct 5 ms 30556 KB Output is correct
31 Correct 4 ms 30556 KB Output is correct
32 Correct 5 ms 30552 KB Output is correct
33 Correct 5 ms 30556 KB Output is correct
34 Correct 5 ms 30552 KB Output is correct
35 Correct 5 ms 30556 KB Output is correct
36 Correct 5 ms 30556 KB Output is correct
37 Correct 5 ms 30556 KB Output is correct
38 Correct 5 ms 30556 KB Output is correct
39 Correct 4 ms 30556 KB Output is correct
40 Correct 4 ms 30672 KB Output is correct
41 Correct 5 ms 30556 KB Output is correct
42 Correct 5 ms 30552 KB Output is correct
43 Correct 4 ms 30468 KB Output is correct
44 Correct 5 ms 30552 KB Output is correct
45 Correct 4 ms 30552 KB Output is correct
46 Correct 5 ms 30556 KB Output is correct
47 Correct 4 ms 30552 KB Output is correct
48 Correct 5 ms 30572 KB Output is correct
49 Correct 4 ms 30556 KB Output is correct
50 Correct 4 ms 30556 KB Output is correct
51 Correct 4 ms 30556 KB Output is correct
52 Correct 5 ms 30556 KB Output is correct
53 Correct 5 ms 30556 KB Output is correct
54 Correct 5 ms 30556 KB Output is correct
55 Correct 5 ms 30556 KB Output is correct
56 Correct 5 ms 30556 KB Output is correct
57 Correct 5 ms 30416 KB Output is correct
58 Correct 5 ms 30556 KB Output is correct
59 Correct 5 ms 30556 KB Output is correct
60 Correct 4 ms 30556 KB Output is correct
61 Correct 5 ms 30556 KB Output is correct
62 Correct 5 ms 30556 KB Output is correct
63 Correct 5 ms 30448 KB Output is correct
64 Correct 5 ms 30552 KB Output is correct
65 Correct 5 ms 30556 KB Output is correct
66 Correct 5 ms 30564 KB Output is correct
67 Correct 6 ms 30560 KB Output is correct
68 Correct 5 ms 30484 KB Output is correct
69 Correct 4 ms 30428 KB Output is correct
70 Correct 5 ms 30684 KB Output is correct
71 Correct 6 ms 30440 KB Output is correct
72 Correct 5 ms 30564 KB Output is correct
73 Correct 5 ms 30560 KB Output is correct
74 Correct 5 ms 30552 KB Output is correct
75 Correct 5 ms 30552 KB Output is correct
76 Correct 4 ms 30556 KB Output is correct
77 Correct 5 ms 30564 KB Output is correct
78 Correct 5 ms 30556 KB Output is correct
79 Correct 5 ms 30484 KB Output is correct
80 Correct 4 ms 30560 KB Output is correct
81 Correct 4 ms 30472 KB Output is correct
82 Correct 5 ms 30556 KB Output is correct
83 Correct 5 ms 30556 KB Output is correct
84 Correct 5 ms 30556 KB Output is correct
85 Correct 5 ms 30556 KB Output is correct
86 Correct 5 ms 30556 KB Output is correct
87 Correct 7 ms 30556 KB Output is correct
88 Correct 6 ms 30556 KB Output is correct
89 Correct 6 ms 30452 KB Output is correct
90 Correct 6 ms 30556 KB Output is correct
91 Correct 6 ms 30556 KB Output is correct
92 Correct 6 ms 30444 KB Output is correct
93 Correct 18 ms 30556 KB Output is correct
94 Correct 9 ms 30556 KB Output is correct
95 Correct 5 ms 30556 KB Output is correct
96 Correct 5 ms 30484 KB Output is correct
97 Correct 5 ms 30556 KB Output is correct
98 Correct 5 ms 30812 KB Output is correct
99 Correct 5 ms 30556 KB Output is correct
100 Runtime error 37 ms 61696 KB Execution killed with signal 11
101 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 30556 KB Output is correct
2 Correct 4 ms 30552 KB Output is correct
3 Correct 5 ms 30556 KB Output is correct
4 Correct 4 ms 30556 KB Output is correct
5 Correct 5 ms 30556 KB Output is correct
6 Correct 5 ms 30552 KB Output is correct
7 Correct 5 ms 30556 KB Output is correct
8 Correct 5 ms 30556 KB Output is correct
9 Correct 5 ms 30552 KB Output is correct
10 Correct 25 ms 30556 KB Output is correct
11 Correct 9 ms 30668 KB Output is correct
12 Correct 9 ms 30552 KB Output is correct
13 Correct 6 ms 30556 KB Output is correct
14 Correct 9 ms 30676 KB Output is correct
15 Correct 8 ms 30668 KB Output is correct
16 Correct 10 ms 30556 KB Output is correct
17 Correct 5 ms 30556 KB Output is correct
18 Correct 5 ms 30556 KB Output is correct
19 Correct 5 ms 30556 KB Output is correct
20 Correct 5 ms 30556 KB Output is correct
21 Correct 7 ms 30664 KB Output is correct
22 Correct 9 ms 30556 KB Output is correct
23 Correct 9 ms 30556 KB Output is correct
24 Correct 7 ms 30812 KB Output is correct
25 Correct 5 ms 30432 KB Output is correct
26 Correct 6 ms 30556 KB Output is correct
27 Correct 6 ms 30556 KB Output is correct
28 Correct 6 ms 30668 KB Output is correct
29 Correct 5 ms 30556 KB Output is correct
30 Correct 4 ms 30556 KB Output is correct
31 Correct 5 ms 30556 KB Output is correct
32 Correct 5 ms 30556 KB Output is correct
33 Correct 5 ms 30556 KB Output is correct
34 Correct 5 ms 30672 KB Output is correct
35 Correct 5 ms 30556 KB Output is correct
36 Correct 5 ms 30464 KB Output is correct
37 Correct 5 ms 31064 KB Output is correct
38 Correct 7 ms 31384 KB Output is correct
39 Correct 4 ms 30556 KB Output is correct
40 Correct 4 ms 30556 KB Output is correct
41 Correct 5 ms 30552 KB Output is correct
42 Correct 5 ms 30552 KB Output is correct
43 Correct 5 ms 30556 KB Output is correct
44 Correct 5 ms 30552 KB Output is correct
45 Correct 5 ms 30416 KB Output is correct
46 Correct 7 ms 30812 KB Output is correct
47 Correct 9 ms 31068 KB Output is correct
48 Correct 6 ms 30808 KB Output is correct
49 Correct 7 ms 30552 KB Output is correct
50 Correct 6 ms 30556 KB Output is correct
51 Correct 5 ms 30808 KB Output is correct
52 Correct 5 ms 30556 KB Output is correct
53 Correct 5 ms 30556 KB Output is correct
54 Correct 4 ms 30556 KB Output is correct
55 Correct 5 ms 30552 KB Output is correct
56 Correct 5 ms 30556 KB Output is correct
57 Correct 5 ms 30552 KB Output is correct
58 Correct 5 ms 30556 KB Output is correct
59 Correct 5 ms 30556 KB Output is correct
60 Correct 5 ms 30556 KB Output is correct
61 Correct 5 ms 30556 KB Output is correct
62 Correct 4 ms 30556 KB Output is correct
63 Correct 4 ms 30672 KB Output is correct
64 Correct 5 ms 30556 KB Output is correct
65 Correct 5 ms 30552 KB Output is correct
66 Correct 4 ms 30468 KB Output is correct
67 Correct 5 ms 30552 KB Output is correct
68 Correct 4 ms 30552 KB Output is correct
69 Correct 5 ms 30556 KB Output is correct
70 Correct 4 ms 30552 KB Output is correct
71 Correct 5 ms 30572 KB Output is correct
72 Correct 4 ms 30556 KB Output is correct
73 Correct 4 ms 30556 KB Output is correct
74 Correct 4 ms 30556 KB Output is correct
75 Correct 5 ms 30556 KB Output is correct
76 Correct 5 ms 30556 KB Output is correct
77 Correct 5 ms 30556 KB Output is correct
78 Correct 5 ms 30556 KB Output is correct
79 Correct 5 ms 30556 KB Output is correct
80 Correct 5 ms 30416 KB Output is correct
81 Correct 5 ms 30556 KB Output is correct
82 Correct 5 ms 30556 KB Output is correct
83 Correct 4 ms 30556 KB Output is correct
84 Correct 5 ms 30556 KB Output is correct
85 Correct 5 ms 30556 KB Output is correct
86 Correct 5 ms 30448 KB Output is correct
87 Correct 5 ms 30552 KB Output is correct
88 Correct 5 ms 30556 KB Output is correct
89 Correct 5 ms 30564 KB Output is correct
90 Correct 6 ms 30560 KB Output is correct
91 Correct 5 ms 30484 KB Output is correct
92 Correct 4 ms 30428 KB Output is correct
93 Correct 5 ms 30684 KB Output is correct
94 Correct 6 ms 30440 KB Output is correct
95 Correct 5 ms 30564 KB Output is correct
96 Correct 5 ms 30560 KB Output is correct
97 Correct 5 ms 30552 KB Output is correct
98 Correct 5 ms 30552 KB Output is correct
99 Correct 4 ms 30556 KB Output is correct
100 Correct 5 ms 30564 KB Output is correct
101 Correct 5 ms 30556 KB Output is correct
102 Correct 5 ms 30484 KB Output is correct
103 Correct 4 ms 30560 KB Output is correct
104 Correct 4 ms 30472 KB Output is correct
105 Correct 5 ms 30556 KB Output is correct
106 Correct 5 ms 30556 KB Output is correct
107 Correct 5 ms 30556 KB Output is correct
108 Correct 5 ms 30556 KB Output is correct
109 Correct 5 ms 30556 KB Output is correct
110 Correct 7 ms 30556 KB Output is correct
111 Correct 6 ms 30556 KB Output is correct
112 Correct 6 ms 30452 KB Output is correct
113 Correct 6 ms 30556 KB Output is correct
114 Correct 6 ms 30556 KB Output is correct
115 Correct 6 ms 30444 KB Output is correct
116 Correct 18 ms 30556 KB Output is correct
117 Correct 9 ms 30556 KB Output is correct
118 Correct 5 ms 30556 KB Output is correct
119 Correct 5 ms 30484 KB Output is correct
120 Correct 5 ms 30556 KB Output is correct
121 Correct 5 ms 30812 KB Output is correct
122 Correct 5 ms 30556 KB Output is correct
123 Runtime error 37 ms 61696 KB Execution killed with signal 11
124 Halted 0 ms 0 KB -