답안 #1066199

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1066199 2024-08-19T16:17:41 Z PCTprobability Uplifting Excursion (BOI22_vault) C++17
90 / 100
5000 ms 14684 KB
#include <bits/stdc++.h>
using namespace std;
#if __has_include(<atcoder/all>)
#include <atcoder/all>
using namespace atcoder;
#endif
using ll = long long;
using ld = long double;
using ull = unsigned long long;
#define endl "\n"
typedef pair<int, int> Pii;
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REP3(i, m, n) for (int i = (m); (i) < int(n); ++ (i))
#define rep(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define ALL(x) begin(x), end(x)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(s) (s).begin(),(s).end()
#define drep2(i, m, n) for (int i = (m)-1; i >= (n); --i)
#define drep(i, n) drep2(i, n, 0)
#define rever(vec) reverse(vec.begin(), vec.end())
#define sor(vec) sort(vec.begin(), vec.end())
#define fi first
#define FOR_(n) for (ll _ = 0; (_) < (ll)(n); ++(_))
#define FOR(i, n) for (ll i = 0; (i) < (ll)(n); ++(i))
#define se second
#define pb push_back
#define P pair<ll,ll>
#define PQminll priority_queue<ll, vector<ll>, greater<ll>>
#define PQmaxll priority_queue<ll,vector<ll>,less<ll>>
#define PQminP priority_queue<P, vector<P>, greater<P>>
#define PQmaxP priority_queue<P,vector<P>,less<P>>
#define NP next_permutation
#define die(a) {cout<<a<<endl;return 0;}
#define dier(a) {return a;}
//const ll mod = 1000000009;
const ll mod = 998244353;
//const ll mod = 1000000007;
const ll inf = 4000000000000000000ll;
const ld eps = ld(0.00000000001);
static const long double pi = 3.141592653589793;
template<class T>void vcin(vector<T> &n){for(int i=0;i<int(n.size());i++) cin>>n[i];}
template<class T,class K>void vcin(vector<T> &n,vector<K> &m){for(int i=0;i<int(n.size());i++) cin>>n[i]>>m[i];}
template<class T>void vcout(vector<T> &n){for(int i=0;i<int(n.size());i++){cout<<n[i]<<" ";}cout<<endl;}
template<class T>void vcin(vector<vector<T>> &n){for(int i=0;i<int(n.size());i++){for(int j=0;j<int(n[i].size());j++){cin>>n[i][j];}}}
template<class T>void vcout(vector<vector<T>> &n){for(int i=0;i<int(n.size());i++){for(int j=0;j<int(n[i].size());j++){cout<<n[i][j]<<" ";}cout<<endl;}cout<<endl;}
void yes(bool a){cout<<(a?"yes":"no")<<endl;}
void YES(bool a){cout<<(a?"YES":"NO")<<endl;}
void Yes(bool a){cout<<(a?"Yes":"No")<<endl;}
void possible(bool a){ cout<<(a?"possible":"impossible")<<endl; }
void Possible(bool a){ cout<<(a?"Possible":"Impossible")<<endl; }
void POSSIBLE(bool a){ cout<<(a?"POSSIBLE":"IMPOSSIBLE")<<endl; }
#define FOR_R(i, n) for (ll i = (ll)(n)-1; (i) >= 0; --(i))
template<class T>auto min(const T& a){ return *min_element(all(a)); }
//template<class T>auto max(const T& a){ return *max_element(all(a)); }
template<class T,class F>void print(pair<T,F> a){cout<<a.fi<<" "<<a.se<<endl;}
template<class T>bool chmax(T &a,const T b) { if (a<b) { a=b; return 1; } return 0;}
template<class T>bool chmin(T &a,const T b) { if (b<a) { a=b; return 1; } return 0;}
template<class T> void ifmin(T t,T u){if(t>u){cout<<-1<<endl;}else{cout<<t<<endl;}}
template<class T> void ifmax(T t,T u){if(t>u){cout<<-1<<endl;}else{cout<<t<<endl;}}
ll fastgcd(ll u,ll v){ll shl=0;while(u&&v&&u!=v){bool eu=!(u&1);bool ev=!(v&1);if(eu&&ev){++shl;u>>=1;v>>=1;}else if(eu&&!ev){u>>=1;}else if(!eu&&ev){v>>=1;}else if(u>=v){u=(u-v)>>1;}else{ll tmp=u;u=(v-u)>>1;v=tmp;}}return !u?v<<shl:u<<shl;}
ll modPow(ll a, ll n, ll mod) { if(mod==1) return 0;ll ret = 1; ll p = a % mod; while (n) { if (n & 1) ret = ret * p % mod; p = p * p % mod; n >>= 1; } return ret; }
vector<ll> divisor(ll x){ vector<ll> ans; for(ll i = 1; i * i <= x; i++){ if(x % i == 0) {ans.push_back(i); if(i*i!=x){ ans.push_back(x / ans[i]);}}}sor(ans); return ans; }
ll pop(ll x){return __builtin_popcountll(x);}
ll poplong(ll x){ll y=-1;while(x){x/=2;y++;}return y;}
P hyou(P a){ll x=fastgcd(abs(a.fi),abs(a.se));a.fi/=x;a.se/=x;if(a.se<0){a.fi*=-1;a.se*=-1;}return a;}
P Pplus(P a,P b){ return hyou({a.fi*b.se+b.fi*a.se,a.se*b.se});}
P Ptimes(P a,ll b){ return hyou({a.fi*b,a.se});}
P Ptimes(P a,P b){ return hyou({a.fi*b.fi,a.se*b.se});}
P Pminus(P a,P b){ return hyou({a.fi*b.se-b.fi*a.se,a.se*b.se});}
P Pgyaku(P a){ return hyou({a.se,a.fi});}
 
void cincout(){
  ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
  cout<< fixed << setprecision(15);
}
vector<ll> solve(vector<ll> a,ll p,ll x,ll q){
  if(x==0) return a;
  //a[i] = max_{0<=j<=x} a[i+p*j] + q*j
  if(p==-1){
    rever(a);
    auto b=solve(a,1,x,q);
    rever(b);
    return b;
  }
  ll n=a.size();
  //a[i] = -q*i + max_{0<=j<=x} a[i+j] + q*(i+j)
  for(int i=0;i<n;i++) a[i]+=q*i;
  vector<ll> b(n);
  deque<ll> id;
  ll l=0;
  for(int i=0;i<n;i++){
    while(l<n&&l<=i+x){
      while(id.size()&&a[id.back()]<a[l]) id.pop_back();
      id.push_back(l);
      l++;
    }
    while(id.size()&&id.front()<i) id.pop_front();
    b[i]=a[id.front()];
  }
  for(int i=0;i<n;i++) b[i]-=q*i;
  return b;
}
int main(){
  cincout();
  //小さい方から追加していく
  //全部追加しても L に到達しなかったら?
  //全部 -1 倍すれば到達したことになる
  //負を全部入れても駄目なら絶対駄目
  ll m,l;
  cin>>m>>l;
  vector<ll> a(2*m+1);
  vcin(a);
  ll sum=0;
  for(int i=0;i<=2*m;i++) sum+=a[i]*(i-m);
  if(sum<l){
    l*=-1;
    rever(a);
  }
  ll sum2=0;
  for(int i=0;i<=m;i++) sum2+=a[i]*(i-m);
  if(sum2>l){
    cout<<"impossible"<<endl;
    return 0;
  }
  vector<ll> used(2*m+1);
  for(int i=0;i<=m;i++) used[i]=a[i];
  for(int i=1;i<=m;i++){
    if(sum2+a[i+m]*i<=l){
      sum2+=a[i+m]*i;
      used[i+m]=a[i+m];
    }
    else{
      ll v=(l-sum2)/i;
      used[i+m]=v;
      sum2+=v*i;
    }
  }
  ll cnt=0;
  for(auto e:used) cnt+=e;
  vector<ll> dp(4*m*m+1,-inf);
  ll md=2*m*m;
  //dp[md] が l
  dp[md-l+sum2]=cnt;
  for(int i=0;i<=2*m;i++){
    {
      ll w=i-m;
      ll x=used[i];
      //x 個を削除する遷移
      //dp[i] = max_{0<=j<=x} dp[i+w*j]-j
      for(int j=0;j<abs(w);j++){
        vector<ll> dp2;
        for(int k=j;k<=4*m*m;k+=abs(w)) dp2.pb(dp[k]);
        //dp2[i] = max_{0<=j<=x} dp2[i+abs(w)/w*j]-j
        dp2=solve(dp2,abs(w)/w,x,-1);
        for(int k=j;k<=4*m*m;k+=abs(w)) dp[k]=dp2[(k-j)/abs(w)];
      }
    }
    {
      ll w=i-m;
      ll x=a[i]-used[i];
      //x 個を追加する遷移
      //dp[i] = max_{0<=j<=x} dp[i-w*j]+j
      for(int j=0;j<abs(w);j++){
        vector<ll> dp2;
        for(int k=j;k<=4*m*m;k+=abs(w)) dp2.pb(dp[k]);
        //dp2[i] = max_{0<=j<=x} dp2[i-abs(w)/w*j]+j
        dp2=solve(dp2,-abs(w)/w,x,1);
        for(int k=j;k<=4*m*m;k+=abs(w)) dp[k]=dp2[(k-j)/abs(w)];
      }
    }
  }
  if(dp[md]<-inf/2){
    cout<<"impossible"<<endl;
  }
  else{
    cout<<dp[md]<<endl;
  }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 21 ms 760 KB Output is correct
7 Correct 16 ms 716 KB Output is correct
8 Correct 21 ms 760 KB Output is correct
9 Correct 20 ms 756 KB Output is correct
10 Correct 11 ms 604 KB Output is correct
11 Correct 11 ms 716 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 21 ms 760 KB Output is correct
7 Correct 16 ms 716 KB Output is correct
8 Correct 21 ms 760 KB Output is correct
9 Correct 20 ms 756 KB Output is correct
10 Correct 11 ms 604 KB Output is correct
11 Correct 11 ms 716 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 456 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 20 ms 756 KB Output is correct
18 Correct 15 ms 716 KB Output is correct
19 Correct 20 ms 756 KB Output is correct
20 Correct 21 ms 800 KB Output is correct
21 Correct 11 ms 604 KB Output is correct
22 Correct 15 ms 760 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 164 ms 1672 KB Output is correct
25 Correct 135 ms 1536 KB Output is correct
26 Correct 165 ms 2032 KB Output is correct
27 Correct 168 ms 2028 KB Output is correct
28 Correct 109 ms 1512 KB Output is correct
29 Correct 101 ms 1512 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 452 KB Output is correct
4 Correct 4 ms 348 KB Output is correct
5 Correct 4 ms 348 KB Output is correct
6 Correct 3 ms 348 KB Output is correct
7 Correct 2 ms 348 KB Output is correct
8 Correct 3 ms 348 KB Output is correct
9 Correct 3 ms 540 KB Output is correct
10 Correct 3 ms 492 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 452 KB Output is correct
4 Correct 4 ms 348 KB Output is correct
5 Correct 4 ms 348 KB Output is correct
6 Correct 3 ms 348 KB Output is correct
7 Correct 2 ms 348 KB Output is correct
8 Correct 3 ms 348 KB Output is correct
9 Correct 3 ms 540 KB Output is correct
10 Correct 3 ms 492 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 0 ms 344 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 344 KB Output is correct
15 Correct 4 ms 348 KB Output is correct
16 Correct 3 ms 348 KB Output is correct
17 Correct 3 ms 496 KB Output is correct
18 Correct 3 ms 460 KB Output is correct
19 Correct 4 ms 600 KB Output is correct
20 Correct 3 ms 348 KB Output is correct
21 Correct 3 ms 348 KB Output is correct
22 Correct 3 ms 348 KB Output is correct
23 Correct 3 ms 512 KB Output is correct
24 Correct 5 ms 604 KB Output is correct
25 Correct 3 ms 588 KB Output is correct
26 Correct 5 ms 604 KB Output is correct
27 Correct 5 ms 604 KB Output is correct
28 Correct 5 ms 452 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 452 KB Output is correct
4 Correct 4 ms 348 KB Output is correct
5 Correct 4 ms 348 KB Output is correct
6 Correct 3 ms 348 KB Output is correct
7 Correct 2 ms 348 KB Output is correct
8 Correct 3 ms 348 KB Output is correct
9 Correct 3 ms 540 KB Output is correct
10 Correct 3 ms 492 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 4 ms 348 KB Output is correct
13 Correct 3 ms 344 KB Output is correct
14 Correct 4 ms 348 KB Output is correct
15 Correct 4 ms 348 KB Output is correct
16 Correct 4 ms 348 KB Output is correct
17 Correct 3 ms 452 KB Output is correct
18 Correct 3 ms 348 KB Output is correct
19 Correct 3 ms 348 KB Output is correct
20 Correct 4 ms 604 KB Output is correct
21 Correct 11 ms 752 KB Output is correct
22 Correct 11 ms 856 KB Output is correct
23 Correct 15 ms 776 KB Output is correct
24 Correct 13 ms 604 KB Output is correct
25 Correct 14 ms 796 KB Output is correct
26 Correct 15 ms 776 KB Output is correct
27 Correct 16 ms 776 KB Output is correct
28 Correct 14 ms 776 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 21 ms 760 KB Output is correct
7 Correct 16 ms 716 KB Output is correct
8 Correct 21 ms 760 KB Output is correct
9 Correct 20 ms 756 KB Output is correct
10 Correct 11 ms 604 KB Output is correct
11 Correct 11 ms 716 KB Output is correct
12 Correct 0 ms 344 KB Output is correct
13 Correct 4 ms 348 KB Output is correct
14 Correct 3 ms 452 KB Output is correct
15 Correct 4 ms 348 KB Output is correct
16 Correct 4 ms 348 KB Output is correct
17 Correct 3 ms 348 KB Output is correct
18 Correct 2 ms 348 KB Output is correct
19 Correct 3 ms 348 KB Output is correct
20 Correct 3 ms 540 KB Output is correct
21 Correct 3 ms 492 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 4 ms 348 KB Output is correct
27 Correct 3 ms 348 KB Output is correct
28 Correct 3 ms 496 KB Output is correct
29 Correct 3 ms 460 KB Output is correct
30 Correct 4 ms 600 KB Output is correct
31 Correct 3 ms 348 KB Output is correct
32 Correct 3 ms 348 KB Output is correct
33 Correct 3 ms 348 KB Output is correct
34 Correct 3 ms 512 KB Output is correct
35 Correct 5 ms 604 KB Output is correct
36 Correct 3 ms 588 KB Output is correct
37 Correct 5 ms 604 KB Output is correct
38 Correct 5 ms 604 KB Output is correct
39 Correct 5 ms 452 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 4 ms 348 KB Output is correct
42 Correct 3 ms 344 KB Output is correct
43 Correct 4 ms 348 KB Output is correct
44 Correct 4 ms 348 KB Output is correct
45 Correct 4 ms 348 KB Output is correct
46 Correct 3 ms 452 KB Output is correct
47 Correct 3 ms 348 KB Output is correct
48 Correct 3 ms 348 KB Output is correct
49 Correct 4 ms 604 KB Output is correct
50 Correct 11 ms 752 KB Output is correct
51 Correct 11 ms 856 KB Output is correct
52 Correct 15 ms 776 KB Output is correct
53 Correct 13 ms 604 KB Output is correct
54 Correct 14 ms 796 KB Output is correct
55 Correct 15 ms 776 KB Output is correct
56 Correct 16 ms 776 KB Output is correct
57 Correct 14 ms 776 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 0 ms 452 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 30 ms 728 KB Output is correct
64 Correct 15 ms 716 KB Output is correct
65 Correct 20 ms 756 KB Output is correct
66 Correct 20 ms 756 KB Output is correct
67 Correct 11 ms 604 KB Output is correct
68 Correct 11 ms 664 KB Output is correct
69 Correct 4 ms 348 KB Output is correct
70 Correct 3 ms 348 KB Output is correct
71 Correct 3 ms 348 KB Output is correct
72 Correct 4 ms 348 KB Output is correct
73 Correct 4 ms 596 KB Output is correct
74 Correct 3 ms 344 KB Output is correct
75 Correct 3 ms 500 KB Output is correct
76 Correct 3 ms 344 KB Output is correct
77 Correct 3 ms 576 KB Output is correct
78 Correct 7 ms 604 KB Output is correct
79 Correct 4 ms 348 KB Output is correct
80 Correct 5 ms 600 KB Output is correct
81 Correct 5 ms 604 KB Output is correct
82 Correct 5 ms 496 KB Output is correct
83 Correct 16 ms 724 KB Output is correct
84 Correct 12 ms 604 KB Output is correct
85 Correct 14 ms 728 KB Output is correct
86 Correct 16 ms 716 KB Output is correct
87 Correct 15 ms 776 KB Output is correct
88 Correct 14 ms 776 KB Output is correct
89 Correct 21 ms 720 KB Output is correct
90 Correct 20 ms 752 KB Output is correct
91 Correct 20 ms 812 KB Output is correct
92 Correct 20 ms 704 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 452 KB Output is correct
4 Correct 4 ms 348 KB Output is correct
5 Correct 4 ms 348 KB Output is correct
6 Correct 3 ms 348 KB Output is correct
7 Correct 2 ms 348 KB Output is correct
8 Correct 3 ms 348 KB Output is correct
9 Correct 3 ms 540 KB Output is correct
10 Correct 3 ms 492 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 4 ms 348 KB Output is correct
13 Correct 3 ms 344 KB Output is correct
14 Correct 4 ms 348 KB Output is correct
15 Correct 4 ms 348 KB Output is correct
16 Correct 4 ms 348 KB Output is correct
17 Correct 3 ms 452 KB Output is correct
18 Correct 3 ms 348 KB Output is correct
19 Correct 3 ms 348 KB Output is correct
20 Correct 4 ms 604 KB Output is correct
21 Correct 11 ms 752 KB Output is correct
22 Correct 11 ms 856 KB Output is correct
23 Correct 15 ms 776 KB Output is correct
24 Correct 13 ms 604 KB Output is correct
25 Correct 14 ms 796 KB Output is correct
26 Correct 15 ms 776 KB Output is correct
27 Correct 16 ms 776 KB Output is correct
28 Correct 14 ms 776 KB Output is correct
29 Correct 1 ms 344 KB Output is correct
30 Correct 4 ms 580 KB Output is correct
31 Correct 3 ms 348 KB Output is correct
32 Correct 4 ms 348 KB Output is correct
33 Correct 3 ms 576 KB Output is correct
34 Correct 4 ms 344 KB Output is correct
35 Correct 3 ms 344 KB Output is correct
36 Correct 3 ms 348 KB Output is correct
37 Correct 3 ms 596 KB Output is correct
38 Correct 4 ms 348 KB Output is correct
39 Correct 13 ms 716 KB Output is correct
40 Correct 11 ms 604 KB Output is correct
41 Correct 15 ms 772 KB Output is correct
42 Correct 13 ms 604 KB Output is correct
43 Correct 15 ms 776 KB Output is correct
44 Correct 17 ms 776 KB Output is correct
45 Correct 20 ms 772 KB Output is correct
46 Correct 14 ms 776 KB Output is correct
47 Correct 92 ms 1568 KB Output is correct
48 Correct 98 ms 1592 KB Output is correct
49 Correct 130 ms 1944 KB Output is correct
50 Correct 110 ms 1564 KB Output is correct
51 Correct 148 ms 1912 KB Output is correct
52 Correct 141 ms 1736 KB Output is correct
53 Correct 163 ms 1896 KB Output is correct
54 Correct 128 ms 1700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 21 ms 760 KB Output is correct
7 Correct 16 ms 716 KB Output is correct
8 Correct 21 ms 760 KB Output is correct
9 Correct 20 ms 756 KB Output is correct
10 Correct 11 ms 604 KB Output is correct
11 Correct 11 ms 716 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 456 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 20 ms 756 KB Output is correct
18 Correct 15 ms 716 KB Output is correct
19 Correct 20 ms 756 KB Output is correct
20 Correct 21 ms 800 KB Output is correct
21 Correct 11 ms 604 KB Output is correct
22 Correct 15 ms 760 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 164 ms 1672 KB Output is correct
25 Correct 135 ms 1536 KB Output is correct
26 Correct 165 ms 2032 KB Output is correct
27 Correct 168 ms 2028 KB Output is correct
28 Correct 109 ms 1512 KB Output is correct
29 Correct 101 ms 1512 KB Output is correct
30 Correct 0 ms 344 KB Output is correct
31 Correct 4 ms 348 KB Output is correct
32 Correct 3 ms 452 KB Output is correct
33 Correct 4 ms 348 KB Output is correct
34 Correct 4 ms 348 KB Output is correct
35 Correct 3 ms 348 KB Output is correct
36 Correct 2 ms 348 KB Output is correct
37 Correct 3 ms 348 KB Output is correct
38 Correct 3 ms 540 KB Output is correct
39 Correct 3 ms 492 KB Output is correct
40 Correct 1 ms 344 KB Output is correct
41 Correct 0 ms 344 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 344 KB Output is correct
44 Correct 4 ms 348 KB Output is correct
45 Correct 3 ms 348 KB Output is correct
46 Correct 3 ms 496 KB Output is correct
47 Correct 3 ms 460 KB Output is correct
48 Correct 4 ms 600 KB Output is correct
49 Correct 3 ms 348 KB Output is correct
50 Correct 3 ms 348 KB Output is correct
51 Correct 3 ms 348 KB Output is correct
52 Correct 3 ms 512 KB Output is correct
53 Correct 5 ms 604 KB Output is correct
54 Correct 3 ms 588 KB Output is correct
55 Correct 5 ms 604 KB Output is correct
56 Correct 5 ms 604 KB Output is correct
57 Correct 5 ms 452 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 4 ms 348 KB Output is correct
60 Correct 3 ms 344 KB Output is correct
61 Correct 4 ms 348 KB Output is correct
62 Correct 4 ms 348 KB Output is correct
63 Correct 4 ms 348 KB Output is correct
64 Correct 3 ms 452 KB Output is correct
65 Correct 3 ms 348 KB Output is correct
66 Correct 3 ms 348 KB Output is correct
67 Correct 4 ms 604 KB Output is correct
68 Correct 11 ms 752 KB Output is correct
69 Correct 11 ms 856 KB Output is correct
70 Correct 15 ms 776 KB Output is correct
71 Correct 13 ms 604 KB Output is correct
72 Correct 14 ms 796 KB Output is correct
73 Correct 15 ms 776 KB Output is correct
74 Correct 16 ms 776 KB Output is correct
75 Correct 14 ms 776 KB Output is correct
76 Correct 1 ms 348 KB Output is correct
77 Correct 0 ms 452 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 348 KB Output is correct
81 Correct 30 ms 728 KB Output is correct
82 Correct 15 ms 716 KB Output is correct
83 Correct 20 ms 756 KB Output is correct
84 Correct 20 ms 756 KB Output is correct
85 Correct 11 ms 604 KB Output is correct
86 Correct 11 ms 664 KB Output is correct
87 Correct 4 ms 348 KB Output is correct
88 Correct 3 ms 348 KB Output is correct
89 Correct 3 ms 348 KB Output is correct
90 Correct 4 ms 348 KB Output is correct
91 Correct 4 ms 596 KB Output is correct
92 Correct 3 ms 344 KB Output is correct
93 Correct 3 ms 500 KB Output is correct
94 Correct 3 ms 344 KB Output is correct
95 Correct 3 ms 576 KB Output is correct
96 Correct 7 ms 604 KB Output is correct
97 Correct 4 ms 348 KB Output is correct
98 Correct 5 ms 600 KB Output is correct
99 Correct 5 ms 604 KB Output is correct
100 Correct 5 ms 496 KB Output is correct
101 Correct 16 ms 724 KB Output is correct
102 Correct 12 ms 604 KB Output is correct
103 Correct 14 ms 728 KB Output is correct
104 Correct 16 ms 716 KB Output is correct
105 Correct 15 ms 776 KB Output is correct
106 Correct 14 ms 776 KB Output is correct
107 Correct 21 ms 720 KB Output is correct
108 Correct 20 ms 752 KB Output is correct
109 Correct 20 ms 812 KB Output is correct
110 Correct 20 ms 704 KB Output is correct
111 Correct 1 ms 344 KB Output is correct
112 Correct 4 ms 580 KB Output is correct
113 Correct 3 ms 348 KB Output is correct
114 Correct 4 ms 348 KB Output is correct
115 Correct 3 ms 576 KB Output is correct
116 Correct 4 ms 344 KB Output is correct
117 Correct 3 ms 344 KB Output is correct
118 Correct 3 ms 348 KB Output is correct
119 Correct 3 ms 596 KB Output is correct
120 Correct 4 ms 348 KB Output is correct
121 Correct 13 ms 716 KB Output is correct
122 Correct 11 ms 604 KB Output is correct
123 Correct 15 ms 772 KB Output is correct
124 Correct 13 ms 604 KB Output is correct
125 Correct 15 ms 776 KB Output is correct
126 Correct 17 ms 776 KB Output is correct
127 Correct 20 ms 772 KB Output is correct
128 Correct 14 ms 776 KB Output is correct
129 Correct 92 ms 1568 KB Output is correct
130 Correct 98 ms 1592 KB Output is correct
131 Correct 130 ms 1944 KB Output is correct
132 Correct 110 ms 1564 KB Output is correct
133 Correct 148 ms 1912 KB Output is correct
134 Correct 141 ms 1736 KB Output is correct
135 Correct 163 ms 1896 KB Output is correct
136 Correct 128 ms 1700 KB Output is correct
137 Correct 0 ms 348 KB Output is correct
138 Correct 0 ms 348 KB Output is correct
139 Correct 1 ms 348 KB Output is correct
140 Correct 1 ms 616 KB Output is correct
141 Correct 0 ms 348 KB Output is correct
142 Correct 22 ms 760 KB Output is correct
143 Correct 22 ms 716 KB Output is correct
144 Correct 22 ms 764 KB Output is correct
145 Correct 24 ms 760 KB Output is correct
146 Correct 12 ms 604 KB Output is correct
147 Correct 12 ms 604 KB Output is correct
148 Correct 0 ms 452 KB Output is correct
149 Correct 175 ms 1936 KB Output is correct
150 Correct 154 ms 1540 KB Output is correct
151 Correct 171 ms 1980 KB Output is correct
152 Correct 169 ms 1980 KB Output is correct
153 Correct 92 ms 1516 KB Output is correct
154 Correct 94 ms 1512 KB Output is correct
155 Correct 4 ms 348 KB Output is correct
156 Correct 3 ms 348 KB Output is correct
157 Correct 4 ms 348 KB Output is correct
158 Correct 3 ms 576 KB Output is correct
159 Correct 4 ms 592 KB Output is correct
160 Correct 3 ms 348 KB Output is correct
161 Correct 3 ms 348 KB Output is correct
162 Correct 6 ms 348 KB Output is correct
163 Correct 3 ms 584 KB Output is correct
164 Correct 19 ms 776 KB Output is correct
165 Correct 13 ms 604 KB Output is correct
166 Correct 15 ms 776 KB Output is correct
167 Correct 15 ms 776 KB Output is correct
168 Correct 15 ms 776 KB Output is correct
169 Correct 14 ms 732 KB Output is correct
170 Correct 5 ms 604 KB Output is correct
171 Correct 3 ms 348 KB Output is correct
172 Correct 5 ms 604 KB Output is correct
173 Correct 5 ms 604 KB Output is correct
174 Correct 5 ms 604 KB Output is correct
175 Correct 23 ms 768 KB Output is correct
176 Correct 21 ms 776 KB Output is correct
177 Correct 20 ms 784 KB Output is correct
178 Correct 21 ms 884 KB Output is correct
179 Correct 149 ms 1956 KB Output is correct
180 Correct 102 ms 1508 KB Output is correct
181 Correct 127 ms 1952 KB Output is correct
182 Correct 137 ms 1908 KB Output is correct
183 Correct 131 ms 1952 KB Output is correct
184 Correct 121 ms 1708 KB Output is correct
185 Correct 166 ms 2128 KB Output is correct
186 Correct 176 ms 2104 KB Output is correct
187 Correct 175 ms 2020 KB Output is correct
188 Correct 177 ms 2092 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 452 KB Output is correct
4 Correct 4 ms 348 KB Output is correct
5 Correct 4 ms 348 KB Output is correct
6 Correct 3 ms 348 KB Output is correct
7 Correct 2 ms 348 KB Output is correct
8 Correct 3 ms 348 KB Output is correct
9 Correct 3 ms 540 KB Output is correct
10 Correct 3 ms 492 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 4 ms 348 KB Output is correct
13 Correct 3 ms 344 KB Output is correct
14 Correct 4 ms 348 KB Output is correct
15 Correct 4 ms 348 KB Output is correct
16 Correct 4 ms 348 KB Output is correct
17 Correct 3 ms 452 KB Output is correct
18 Correct 3 ms 348 KB Output is correct
19 Correct 3 ms 348 KB Output is correct
20 Correct 4 ms 604 KB Output is correct
21 Correct 11 ms 752 KB Output is correct
22 Correct 11 ms 856 KB Output is correct
23 Correct 15 ms 776 KB Output is correct
24 Correct 13 ms 604 KB Output is correct
25 Correct 14 ms 796 KB Output is correct
26 Correct 15 ms 776 KB Output is correct
27 Correct 16 ms 776 KB Output is correct
28 Correct 14 ms 776 KB Output is correct
29 Correct 1 ms 344 KB Output is correct
30 Correct 4 ms 580 KB Output is correct
31 Correct 3 ms 348 KB Output is correct
32 Correct 4 ms 348 KB Output is correct
33 Correct 3 ms 576 KB Output is correct
34 Correct 4 ms 344 KB Output is correct
35 Correct 3 ms 344 KB Output is correct
36 Correct 3 ms 348 KB Output is correct
37 Correct 3 ms 596 KB Output is correct
38 Correct 4 ms 348 KB Output is correct
39 Correct 13 ms 716 KB Output is correct
40 Correct 11 ms 604 KB Output is correct
41 Correct 15 ms 772 KB Output is correct
42 Correct 13 ms 604 KB Output is correct
43 Correct 15 ms 776 KB Output is correct
44 Correct 17 ms 776 KB Output is correct
45 Correct 20 ms 772 KB Output is correct
46 Correct 14 ms 776 KB Output is correct
47 Correct 92 ms 1568 KB Output is correct
48 Correct 98 ms 1592 KB Output is correct
49 Correct 130 ms 1944 KB Output is correct
50 Correct 110 ms 1564 KB Output is correct
51 Correct 148 ms 1912 KB Output is correct
52 Correct 141 ms 1736 KB Output is correct
53 Correct 163 ms 1896 KB Output is correct
54 Correct 128 ms 1700 KB Output is correct
55 Correct 1 ms 344 KB Output is correct
56 Correct 4 ms 348 KB Output is correct
57 Correct 3 ms 348 KB Output is correct
58 Correct 3 ms 348 KB Output is correct
59 Correct 4 ms 344 KB Output is correct
60 Correct 4 ms 588 KB Output is correct
61 Correct 3 ms 348 KB Output is correct
62 Correct 3 ms 348 KB Output is correct
63 Correct 3 ms 348 KB Output is correct
64 Correct 3 ms 348 KB Output is correct
65 Correct 11 ms 756 KB Output is correct
66 Correct 11 ms 604 KB Output is correct
67 Correct 14 ms 776 KB Output is correct
68 Correct 14 ms 604 KB Output is correct
69 Correct 20 ms 776 KB Output is correct
70 Correct 15 ms 772 KB Output is correct
71 Correct 16 ms 772 KB Output is correct
72 Correct 13 ms 776 KB Output is correct
73 Correct 92 ms 1512 KB Output is correct
74 Correct 92 ms 1508 KB Output is correct
75 Correct 137 ms 1952 KB Output is correct
76 Correct 98 ms 1576 KB Output is correct
77 Correct 128 ms 1892 KB Output is correct
78 Correct 135 ms 1728 KB Output is correct
79 Correct 128 ms 1956 KB Output is correct
80 Correct 119 ms 1700 KB Output is correct
81 Correct 4548 ms 13076 KB Output is correct
82 Correct 3892 ms 10316 KB Output is correct
83 Correct 4531 ms 13036 KB Output is correct
84 Correct 4417 ms 14040 KB Output is correct
85 Correct 3325 ms 10244 KB Output is correct
86 Correct 3370 ms 10260 KB Output is correct
87 Correct 4333 ms 13060 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 21 ms 760 KB Output is correct
7 Correct 16 ms 716 KB Output is correct
8 Correct 21 ms 760 KB Output is correct
9 Correct 20 ms 756 KB Output is correct
10 Correct 11 ms 604 KB Output is correct
11 Correct 11 ms 716 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 456 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 20 ms 756 KB Output is correct
18 Correct 15 ms 716 KB Output is correct
19 Correct 20 ms 756 KB Output is correct
20 Correct 21 ms 800 KB Output is correct
21 Correct 11 ms 604 KB Output is correct
22 Correct 15 ms 760 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 164 ms 1672 KB Output is correct
25 Correct 135 ms 1536 KB Output is correct
26 Correct 165 ms 2032 KB Output is correct
27 Correct 168 ms 2028 KB Output is correct
28 Correct 109 ms 1512 KB Output is correct
29 Correct 101 ms 1512 KB Output is correct
30 Correct 0 ms 344 KB Output is correct
31 Correct 4 ms 348 KB Output is correct
32 Correct 3 ms 452 KB Output is correct
33 Correct 4 ms 348 KB Output is correct
34 Correct 4 ms 348 KB Output is correct
35 Correct 3 ms 348 KB Output is correct
36 Correct 2 ms 348 KB Output is correct
37 Correct 3 ms 348 KB Output is correct
38 Correct 3 ms 540 KB Output is correct
39 Correct 3 ms 492 KB Output is correct
40 Correct 1 ms 344 KB Output is correct
41 Correct 0 ms 344 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 344 KB Output is correct
44 Correct 4 ms 348 KB Output is correct
45 Correct 3 ms 348 KB Output is correct
46 Correct 3 ms 496 KB Output is correct
47 Correct 3 ms 460 KB Output is correct
48 Correct 4 ms 600 KB Output is correct
49 Correct 3 ms 348 KB Output is correct
50 Correct 3 ms 348 KB Output is correct
51 Correct 3 ms 348 KB Output is correct
52 Correct 3 ms 512 KB Output is correct
53 Correct 5 ms 604 KB Output is correct
54 Correct 3 ms 588 KB Output is correct
55 Correct 5 ms 604 KB Output is correct
56 Correct 5 ms 604 KB Output is correct
57 Correct 5 ms 452 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 4 ms 348 KB Output is correct
60 Correct 3 ms 344 KB Output is correct
61 Correct 4 ms 348 KB Output is correct
62 Correct 4 ms 348 KB Output is correct
63 Correct 4 ms 348 KB Output is correct
64 Correct 3 ms 452 KB Output is correct
65 Correct 3 ms 348 KB Output is correct
66 Correct 3 ms 348 KB Output is correct
67 Correct 4 ms 604 KB Output is correct
68 Correct 11 ms 752 KB Output is correct
69 Correct 11 ms 856 KB Output is correct
70 Correct 15 ms 776 KB Output is correct
71 Correct 13 ms 604 KB Output is correct
72 Correct 14 ms 796 KB Output is correct
73 Correct 15 ms 776 KB Output is correct
74 Correct 16 ms 776 KB Output is correct
75 Correct 14 ms 776 KB Output is correct
76 Correct 1 ms 348 KB Output is correct
77 Correct 0 ms 452 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 348 KB Output is correct
81 Correct 30 ms 728 KB Output is correct
82 Correct 15 ms 716 KB Output is correct
83 Correct 20 ms 756 KB Output is correct
84 Correct 20 ms 756 KB Output is correct
85 Correct 11 ms 604 KB Output is correct
86 Correct 11 ms 664 KB Output is correct
87 Correct 4 ms 348 KB Output is correct
88 Correct 3 ms 348 KB Output is correct
89 Correct 3 ms 348 KB Output is correct
90 Correct 4 ms 348 KB Output is correct
91 Correct 4 ms 596 KB Output is correct
92 Correct 3 ms 344 KB Output is correct
93 Correct 3 ms 500 KB Output is correct
94 Correct 3 ms 344 KB Output is correct
95 Correct 3 ms 576 KB Output is correct
96 Correct 7 ms 604 KB Output is correct
97 Correct 4 ms 348 KB Output is correct
98 Correct 5 ms 600 KB Output is correct
99 Correct 5 ms 604 KB Output is correct
100 Correct 5 ms 496 KB Output is correct
101 Correct 16 ms 724 KB Output is correct
102 Correct 12 ms 604 KB Output is correct
103 Correct 14 ms 728 KB Output is correct
104 Correct 16 ms 716 KB Output is correct
105 Correct 15 ms 776 KB Output is correct
106 Correct 14 ms 776 KB Output is correct
107 Correct 21 ms 720 KB Output is correct
108 Correct 20 ms 752 KB Output is correct
109 Correct 20 ms 812 KB Output is correct
110 Correct 20 ms 704 KB Output is correct
111 Correct 1 ms 344 KB Output is correct
112 Correct 4 ms 580 KB Output is correct
113 Correct 3 ms 348 KB Output is correct
114 Correct 4 ms 348 KB Output is correct
115 Correct 3 ms 576 KB Output is correct
116 Correct 4 ms 344 KB Output is correct
117 Correct 3 ms 344 KB Output is correct
118 Correct 3 ms 348 KB Output is correct
119 Correct 3 ms 596 KB Output is correct
120 Correct 4 ms 348 KB Output is correct
121 Correct 13 ms 716 KB Output is correct
122 Correct 11 ms 604 KB Output is correct
123 Correct 15 ms 772 KB Output is correct
124 Correct 13 ms 604 KB Output is correct
125 Correct 15 ms 776 KB Output is correct
126 Correct 17 ms 776 KB Output is correct
127 Correct 20 ms 772 KB Output is correct
128 Correct 14 ms 776 KB Output is correct
129 Correct 92 ms 1568 KB Output is correct
130 Correct 98 ms 1592 KB Output is correct
131 Correct 130 ms 1944 KB Output is correct
132 Correct 110 ms 1564 KB Output is correct
133 Correct 148 ms 1912 KB Output is correct
134 Correct 141 ms 1736 KB Output is correct
135 Correct 163 ms 1896 KB Output is correct
136 Correct 128 ms 1700 KB Output is correct
137 Correct 0 ms 348 KB Output is correct
138 Correct 0 ms 348 KB Output is correct
139 Correct 1 ms 348 KB Output is correct
140 Correct 1 ms 616 KB Output is correct
141 Correct 0 ms 348 KB Output is correct
142 Correct 22 ms 760 KB Output is correct
143 Correct 22 ms 716 KB Output is correct
144 Correct 22 ms 764 KB Output is correct
145 Correct 24 ms 760 KB Output is correct
146 Correct 12 ms 604 KB Output is correct
147 Correct 12 ms 604 KB Output is correct
148 Correct 0 ms 452 KB Output is correct
149 Correct 175 ms 1936 KB Output is correct
150 Correct 154 ms 1540 KB Output is correct
151 Correct 171 ms 1980 KB Output is correct
152 Correct 169 ms 1980 KB Output is correct
153 Correct 92 ms 1516 KB Output is correct
154 Correct 94 ms 1512 KB Output is correct
155 Correct 4 ms 348 KB Output is correct
156 Correct 3 ms 348 KB Output is correct
157 Correct 4 ms 348 KB Output is correct
158 Correct 3 ms 576 KB Output is correct
159 Correct 4 ms 592 KB Output is correct
160 Correct 3 ms 348 KB Output is correct
161 Correct 3 ms 348 KB Output is correct
162 Correct 6 ms 348 KB Output is correct
163 Correct 3 ms 584 KB Output is correct
164 Correct 19 ms 776 KB Output is correct
165 Correct 13 ms 604 KB Output is correct
166 Correct 15 ms 776 KB Output is correct
167 Correct 15 ms 776 KB Output is correct
168 Correct 15 ms 776 KB Output is correct
169 Correct 14 ms 732 KB Output is correct
170 Correct 5 ms 604 KB Output is correct
171 Correct 3 ms 348 KB Output is correct
172 Correct 5 ms 604 KB Output is correct
173 Correct 5 ms 604 KB Output is correct
174 Correct 5 ms 604 KB Output is correct
175 Correct 23 ms 768 KB Output is correct
176 Correct 21 ms 776 KB Output is correct
177 Correct 20 ms 784 KB Output is correct
178 Correct 21 ms 884 KB Output is correct
179 Correct 149 ms 1956 KB Output is correct
180 Correct 102 ms 1508 KB Output is correct
181 Correct 127 ms 1952 KB Output is correct
182 Correct 137 ms 1908 KB Output is correct
183 Correct 131 ms 1952 KB Output is correct
184 Correct 121 ms 1708 KB Output is correct
185 Correct 166 ms 2128 KB Output is correct
186 Correct 176 ms 2104 KB Output is correct
187 Correct 175 ms 2020 KB Output is correct
188 Correct 177 ms 2092 KB Output is correct
189 Correct 1 ms 344 KB Output is correct
190 Correct 4 ms 348 KB Output is correct
191 Correct 3 ms 348 KB Output is correct
192 Correct 3 ms 348 KB Output is correct
193 Correct 4 ms 344 KB Output is correct
194 Correct 4 ms 588 KB Output is correct
195 Correct 3 ms 348 KB Output is correct
196 Correct 3 ms 348 KB Output is correct
197 Correct 3 ms 348 KB Output is correct
198 Correct 3 ms 348 KB Output is correct
199 Correct 11 ms 756 KB Output is correct
200 Correct 11 ms 604 KB Output is correct
201 Correct 14 ms 776 KB Output is correct
202 Correct 14 ms 604 KB Output is correct
203 Correct 20 ms 776 KB Output is correct
204 Correct 15 ms 772 KB Output is correct
205 Correct 16 ms 772 KB Output is correct
206 Correct 13 ms 776 KB Output is correct
207 Correct 92 ms 1512 KB Output is correct
208 Correct 92 ms 1508 KB Output is correct
209 Correct 137 ms 1952 KB Output is correct
210 Correct 98 ms 1576 KB Output is correct
211 Correct 128 ms 1892 KB Output is correct
212 Correct 135 ms 1728 KB Output is correct
213 Correct 128 ms 1956 KB Output is correct
214 Correct 119 ms 1700 KB Output is correct
215 Correct 4548 ms 13076 KB Output is correct
216 Correct 3892 ms 10316 KB Output is correct
217 Correct 4531 ms 13036 KB Output is correct
218 Correct 4417 ms 14040 KB Output is correct
219 Correct 3325 ms 10244 KB Output is correct
220 Correct 3370 ms 10260 KB Output is correct
221 Correct 4333 ms 13060 KB Output is correct
222 Correct 1 ms 344 KB Output is correct
223 Correct 4 ms 348 KB Output is correct
224 Correct 3 ms 456 KB Output is correct
225 Correct 3 ms 344 KB Output is correct
226 Correct 5 ms 492 KB Output is correct
227 Correct 4 ms 360 KB Output is correct
228 Correct 3 ms 348 KB Output is correct
229 Correct 2 ms 348 KB Output is correct
230 Correct 4 ms 596 KB Output is correct
231 Correct 3 ms 348 KB Output is correct
232 Correct 11 ms 708 KB Output is correct
233 Correct 11 ms 604 KB Output is correct
234 Correct 14 ms 720 KB Output is correct
235 Correct 12 ms 604 KB Output is correct
236 Correct 14 ms 772 KB Output is correct
237 Correct 15 ms 776 KB Output is correct
238 Correct 15 ms 776 KB Output is correct
239 Correct 14 ms 776 KB Output is correct
240 Correct 90 ms 1576 KB Output is correct
241 Correct 92 ms 1508 KB Output is correct
242 Correct 139 ms 1952 KB Output is correct
243 Correct 102 ms 1512 KB Output is correct
244 Correct 129 ms 1896 KB Output is correct
245 Correct 126 ms 1952 KB Output is correct
246 Correct 139 ms 1952 KB Output is correct
247 Correct 120 ms 1700 KB Output is correct
248 Correct 0 ms 344 KB Output is correct
249 Correct 0 ms 348 KB Output is correct
250 Correct 0 ms 348 KB Output is correct
251 Correct 0 ms 344 KB Output is correct
252 Correct 21 ms 788 KB Output is correct
253 Correct 15 ms 716 KB Output is correct
254 Correct 21 ms 708 KB Output is correct
255 Correct 20 ms 756 KB Output is correct
256 Correct 0 ms 348 KB Output is correct
257 Correct 164 ms 1932 KB Output is correct
258 Correct 119 ms 1540 KB Output is correct
259 Correct 172 ms 2100 KB Output is correct
260 Correct 166 ms 2028 KB Output is correct
261 Correct 5 ms 604 KB Output is correct
262 Correct 4 ms 348 KB Output is correct
263 Correct 5 ms 604 KB Output is correct
264 Correct 5 ms 604 KB Output is correct
265 Correct 5 ms 856 KB Output is correct
266 Correct 20 ms 748 KB Output is correct
267 Correct 23 ms 1004 KB Output is correct
268 Correct 20 ms 836 KB Output is correct
269 Correct 20 ms 704 KB Output is correct
270 Correct 167 ms 2400 KB Output is correct
271 Correct 188 ms 2116 KB Output is correct
272 Correct 180 ms 2024 KB Output is correct
273 Correct 180 ms 2096 KB Output is correct
274 Correct 4536 ms 12916 KB Output is correct
275 Correct 3797 ms 10312 KB Output is correct
276 Correct 4368 ms 12980 KB Output is correct
277 Correct 4504 ms 13964 KB Output is correct
278 Correct 3318 ms 10260 KB Output is correct
279 Correct 3289 ms 10184 KB Output is correct
280 Correct 4275 ms 13056 KB Output is correct
281 Execution timed out 5054 ms 14684 KB Time limit exceeded
282 Halted 0 ms 0 KB -