Submission #653620

# Submission time Handle Problem Language Result Execution time Memory
653620 2022-10-27T11:56:08 Z AdamGS Uplifting Excursion (BOI22_vault) C++17
5 / 100
5000 ms 8156 KB
#include<bits/stdc++.h>
#pragma GCC optimize("Ofast, unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt")
 
using namespace std;
typedef long long ll;
 
const int maxn = 100;
 
int M;
ll L;
 
vector<int> pos(maxn+5), neg(maxn+5);
 
void solve(){
  cin >> M >> L;
  for(int i = 1; i <= M; i++)
    cin >> neg[M-i+1];
  ll ans;
  cin >> ans;
  for(int i = 1; i <= M; i++)
    cin >> pos[i];
  int maxn3 = (maxn*maxn+1)/2*maxn;
  vector<ll> knapsack1(maxn3+5, -1e18), knapsack2(maxn3+5, -1e18);
  knapsack1[0] = knapsack2[0] = 0;
  for(int i = 1; i <= M; i++){
    for(int make = maxn3; make >= 0; make--){
      int a=min(pos[i], make/i), b=min(neg[i], make/i);
      for(int use=0, akt=make-i; use < a; ++use, akt-=i) if(knapsack1[make]<knapsack1[akt]+use+1)
        knapsack1[make]=knapsack1[akt]+use+1;
      for(int use=0, akt=make-i; use<b; ++use, akt-=i) if(knapsack2[make]<knapsack2[akt]+use+1)
        knapsack2[make]=knapsack2[akt]+use+1;
    }
  }
  ll add = -1e18;
  for(int i = 0; i <= maxn3; i++){
    ll need = L-i;
    if(need > 0){
      continue;
    }else if(need == 0){
      add = max(add, knapsack1[i]);
    }else if(-need >= maxn3 || knapsack2[-need] < 0 || knapsack1[i] < 0){
      continue;
    }else{
      add = max(add, knapsack1[i] + knapsack2[-need]);
    }
  }
  if(add < 0){
    cout << "impossible\n";
  }else{
    cout << ans+add;
  }
}
 
int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tt = 1;
  // cin >> tt;
  while(tt--){
    solve();
  }
}

Compilation message

vault.cpp:2:43: warning: bad option '-f unroll-loops' to pragma 'optimize' [-Wpragmas]
    2 | #pragma GCC optimize("Ofast, unroll-loops")
      |                                           ^
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
    3 | #pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt")
      |                                                ^
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
vault.cpp:3:48: warning: bad option '-f u
# Verdict Execution time Memory Grader output
1 Correct 27 ms 8148 KB Output is correct
2 Correct 23 ms 8148 KB Output is correct
3 Correct 14 ms 8148 KB Output is correct
4 Correct 85 ms 8148 KB Output is correct
5 Correct 2657 ms 8148 KB Output is correct
6 Correct 2731 ms 8148 KB Output is correct
7 Correct 1196 ms 8148 KB Output is correct
8 Correct 2740 ms 8148 KB Output is correct
9 Correct 4710 ms 8148 KB Output is correct
10 Correct 311 ms 8148 KB Output is correct
11 Correct 268 ms 8148 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 27 ms 8148 KB Output is correct
2 Correct 23 ms 8148 KB Output is correct
3 Correct 14 ms 8148 KB Output is correct
4 Correct 85 ms 8148 KB Output is correct
5 Correct 2657 ms 8148 KB Output is correct
6 Correct 2731 ms 8148 KB Output is correct
7 Correct 1196 ms 8148 KB Output is correct
8 Correct 2740 ms 8148 KB Output is correct
9 Correct 4710 ms 8148 KB Output is correct
10 Correct 311 ms 8148 KB Output is correct
11 Correct 268 ms 8148 KB Output is correct
12 Correct 22 ms 8156 KB Output is correct
13 Correct 22 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 95 ms 8148 KB Output is correct
16 Correct 2772 ms 8148 KB Output is correct
17 Correct 2830 ms 8148 KB Output is correct
18 Correct 1194 ms 8148 KB Output is correct
19 Correct 2734 ms 8148 KB Output is correct
20 Correct 4814 ms 8136 KB Output is correct
21 Correct 263 ms 8148 KB Output is correct
22 Correct 253 ms 8148 KB Output is correct
23 Execution timed out 5005 ms 8148 KB Time limit exceeded
24 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 85 ms 8148 KB Output is correct
2 Execution timed out 5035 ms 8148 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 85 ms 8148 KB Output is correct
2 Execution timed out 5035 ms 8148 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 85 ms 8148 KB Output is correct
2 Execution timed out 5035 ms 8148 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 27 ms 8148 KB Output is correct
2 Correct 23 ms 8148 KB Output is correct
3 Correct 14 ms 8148 KB Output is correct
4 Correct 85 ms 8148 KB Output is correct
5 Correct 2657 ms 8148 KB Output is correct
6 Correct 2731 ms 8148 KB Output is correct
7 Correct 1196 ms 8148 KB Output is correct
8 Correct 2740 ms 8148 KB Output is correct
9 Correct 4710 ms 8148 KB Output is correct
10 Correct 311 ms 8148 KB Output is correct
11 Correct 268 ms 8148 KB Output is correct
12 Correct 85 ms 8148 KB Output is correct
13 Execution timed out 5035 ms 8148 KB Time limit exceeded
14 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 85 ms 8148 KB Output is correct
2 Execution timed out 5035 ms 8148 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 27 ms 8148 KB Output is correct
2 Correct 23 ms 8148 KB Output is correct
3 Correct 14 ms 8148 KB Output is correct
4 Correct 85 ms 8148 KB Output is correct
5 Correct 2657 ms 8148 KB Output is correct
6 Correct 2731 ms 8148 KB Output is correct
7 Correct 1196 ms 8148 KB Output is correct
8 Correct 2740 ms 8148 KB Output is correct
9 Correct 4710 ms 8148 KB Output is correct
10 Correct 311 ms 8148 KB Output is correct
11 Correct 268 ms 8148 KB Output is correct
12 Correct 22 ms 8156 KB Output is correct
13 Correct 22 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 95 ms 8148 KB Output is correct
16 Correct 2772 ms 8148 KB Output is correct
17 Correct 2830 ms 8148 KB Output is correct
18 Correct 1194 ms 8148 KB Output is correct
19 Correct 2734 ms 8148 KB Output is correct
20 Correct 4814 ms 8136 KB Output is correct
21 Correct 263 ms 8148 KB Output is correct
22 Correct 253 ms 8148 KB Output is correct
23 Execution timed out 5005 ms 8148 KB Time limit exceeded
24 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 85 ms 8148 KB Output is correct
2 Execution timed out 5035 ms 8148 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 27 ms 8148 KB Output is correct
2 Correct 23 ms 8148 KB Output is correct
3 Correct 14 ms 8148 KB Output is correct
4 Correct 85 ms 8148 KB Output is correct
5 Correct 2657 ms 8148 KB Output is correct
6 Correct 2731 ms 8148 KB Output is correct
7 Correct 1196 ms 8148 KB Output is correct
8 Correct 2740 ms 8148 KB Output is correct
9 Correct 4710 ms 8148 KB Output is correct
10 Correct 311 ms 8148 KB Output is correct
11 Correct 268 ms 8148 KB Output is correct
12 Correct 22 ms 8156 KB Output is correct
13 Correct 22 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 95 ms 8148 KB Output is correct
16 Correct 2772 ms 8148 KB Output is correct
17 Correct 2830 ms 8148 KB Output is correct
18 Correct 1194 ms 8148 KB Output is correct
19 Correct 2734 ms 8148 KB Output is correct
20 Correct 4814 ms 8136 KB Output is correct
21 Correct 263 ms 8148 KB Output is correct
22 Correct 253 ms 8148 KB Output is correct
23 Execution timed out 5005 ms 8148 KB Time limit exceeded
24 Halted 0 ms 0 KB -