답안 #1066201

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1066201 2024-08-19T16:19:58 Z PCTprobability Uplifting Excursion (BOI22_vault) C++17
100 / 100
4354 ms 13180 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(3*m*m+1,-inf);
  ll md=3*m*m/2;
  //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<=3*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<=3*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<=3*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<=3*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 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 16 ms 600 KB Output is correct
7 Correct 12 ms 604 KB Output is correct
8 Correct 15 ms 736 KB Output is correct
9 Correct 15 ms 604 KB Output is correct
10 Correct 9 ms 604 KB Output is correct
11 Correct 9 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 16 ms 600 KB Output is correct
7 Correct 12 ms 604 KB Output is correct
8 Correct 15 ms 736 KB Output is correct
9 Correct 15 ms 604 KB Output is correct
10 Correct 9 ms 604 KB Output is correct
11 Correct 9 ms 604 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 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 15 ms 604 KB Output is correct
18 Correct 12 ms 600 KB Output is correct
19 Correct 15 ms 604 KB Output is correct
20 Correct 15 ms 696 KB Output is correct
21 Correct 8 ms 604 KB Output is correct
22 Correct 8 ms 600 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 121 ms 1256 KB Output is correct
25 Correct 95 ms 1164 KB Output is correct
26 Correct 119 ms 1632 KB Output is correct
27 Correct 126 ms 1628 KB Output is correct
28 Correct 63 ms 1156 KB Output is correct
29 Correct 64 ms 1244 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 3 ms 348 KB Output is correct
3 Correct 2 ms 348 KB Output is correct
4 Correct 3 ms 496 KB Output is correct
5 Correct 3 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 2 ms 348 KB Output is correct
9 Correct 2 ms 344 KB Output is correct
10 Correct 2 ms 568 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 3 ms 348 KB Output is correct
3 Correct 2 ms 348 KB Output is correct
4 Correct 3 ms 496 KB Output is correct
5 Correct 3 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 2 ms 348 KB Output is correct
9 Correct 2 ms 344 KB Output is correct
10 Correct 2 ms 568 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 3 ms 572 KB Output is correct
16 Correct 2 ms 348 KB Output is correct
17 Correct 3 ms 348 KB Output is correct
18 Correct 3 ms 348 KB Output is correct
19 Correct 3 ms 348 KB Output is correct
20 Correct 2 ms 344 KB Output is correct
21 Correct 2 ms 348 KB Output is correct
22 Correct 2 ms 348 KB Output is correct
23 Correct 2 ms 348 KB Output is correct
24 Correct 4 ms 604 KB Output is correct
25 Correct 2 ms 348 KB Output is correct
26 Correct 4 ms 604 KB Output is correct
27 Correct 4 ms 604 KB Output is correct
28 Correct 4 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 3 ms 348 KB Output is correct
3 Correct 2 ms 348 KB Output is correct
4 Correct 3 ms 496 KB Output is correct
5 Correct 3 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 2 ms 348 KB Output is correct
9 Correct 2 ms 344 KB Output is correct
10 Correct 2 ms 568 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 3 ms 348 KB Output is correct
13 Correct 2 ms 348 KB Output is correct
14 Correct 5 ms 348 KB Output is correct
15 Correct 3 ms 544 KB Output is correct
16 Correct 3 ms 348 KB Output is correct
17 Correct 2 ms 348 KB Output is correct
18 Correct 2 ms 348 KB Output is correct
19 Correct 2 ms 348 KB Output is correct
20 Correct 3 ms 348 KB Output is correct
21 Correct 8 ms 640 KB Output is correct
22 Correct 8 ms 604 KB Output is correct
23 Correct 11 ms 524 KB Output is correct
24 Correct 9 ms 604 KB Output is correct
25 Correct 11 ms 604 KB Output is correct
26 Correct 11 ms 604 KB Output is correct
27 Correct 11 ms 600 KB Output is correct
28 Correct 10 ms 700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 16 ms 600 KB Output is correct
7 Correct 12 ms 604 KB Output is correct
8 Correct 15 ms 736 KB Output is correct
9 Correct 15 ms 604 KB Output is correct
10 Correct 9 ms 604 KB Output is correct
11 Correct 9 ms 604 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 3 ms 348 KB Output is correct
14 Correct 2 ms 348 KB Output is correct
15 Correct 3 ms 496 KB Output is correct
16 Correct 3 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 2 ms 348 KB Output is correct
20 Correct 2 ms 344 KB Output is correct
21 Correct 2 ms 568 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 3 ms 572 KB Output is correct
27 Correct 2 ms 348 KB Output is correct
28 Correct 3 ms 348 KB Output is correct
29 Correct 3 ms 348 KB Output is correct
30 Correct 3 ms 348 KB Output is correct
31 Correct 2 ms 344 KB Output is correct
32 Correct 2 ms 348 KB Output is correct
33 Correct 2 ms 348 KB Output is correct
34 Correct 2 ms 348 KB Output is correct
35 Correct 4 ms 604 KB Output is correct
36 Correct 2 ms 348 KB Output is correct
37 Correct 4 ms 604 KB Output is correct
38 Correct 4 ms 604 KB Output is correct
39 Correct 4 ms 604 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 3 ms 348 KB Output is correct
42 Correct 2 ms 348 KB Output is correct
43 Correct 5 ms 348 KB Output is correct
44 Correct 3 ms 544 KB Output is correct
45 Correct 3 ms 348 KB Output is correct
46 Correct 2 ms 348 KB Output is correct
47 Correct 2 ms 348 KB Output is correct
48 Correct 2 ms 348 KB Output is correct
49 Correct 3 ms 348 KB Output is correct
50 Correct 8 ms 640 KB Output is correct
51 Correct 8 ms 604 KB Output is correct
52 Correct 11 ms 524 KB Output is correct
53 Correct 9 ms 604 KB Output is correct
54 Correct 11 ms 604 KB Output is correct
55 Correct 11 ms 604 KB Output is correct
56 Correct 11 ms 600 KB Output is correct
57 Correct 10 ms 700 KB Output is correct
58 Correct 0 ms 344 KB Output is correct
59 Correct 0 ms 348 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 344 KB Output is correct
63 Correct 15 ms 604 KB Output is correct
64 Correct 11 ms 640 KB Output is correct
65 Correct 18 ms 652 KB Output is correct
66 Correct 15 ms 664 KB Output is correct
67 Correct 8 ms 604 KB Output is correct
68 Correct 8 ms 604 KB Output is correct
69 Correct 3 ms 348 KB Output is correct
70 Correct 2 ms 348 KB Output is correct
71 Correct 3 ms 348 KB Output is correct
72 Correct 3 ms 348 KB Output is correct
73 Correct 3 ms 348 KB Output is correct
74 Correct 2 ms 348 KB Output is correct
75 Correct 2 ms 348 KB Output is correct
76 Correct 2 ms 348 KB Output is correct
77 Correct 2 ms 348 KB Output is correct
78 Correct 4 ms 604 KB Output is correct
79 Correct 3 ms 348 KB Output is correct
80 Correct 4 ms 604 KB Output is correct
81 Correct 3 ms 604 KB Output is correct
82 Correct 3 ms 624 KB Output is correct
83 Correct 11 ms 604 KB Output is correct
84 Correct 11 ms 556 KB Output is correct
85 Correct 11 ms 600 KB Output is correct
86 Correct 13 ms 604 KB Output is correct
87 Correct 13 ms 724 KB Output is correct
88 Correct 10 ms 604 KB Output is correct
89 Correct 15 ms 660 KB Output is correct
90 Correct 15 ms 684 KB Output is correct
91 Correct 15 ms 708 KB Output is correct
92 Correct 15 ms 828 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 3 ms 348 KB Output is correct
3 Correct 2 ms 348 KB Output is correct
4 Correct 3 ms 496 KB Output is correct
5 Correct 3 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 2 ms 348 KB Output is correct
9 Correct 2 ms 344 KB Output is correct
10 Correct 2 ms 568 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 3 ms 348 KB Output is correct
13 Correct 2 ms 348 KB Output is correct
14 Correct 5 ms 348 KB Output is correct
15 Correct 3 ms 544 KB Output is correct
16 Correct 3 ms 348 KB Output is correct
17 Correct 2 ms 348 KB Output is correct
18 Correct 2 ms 348 KB Output is correct
19 Correct 2 ms 348 KB Output is correct
20 Correct 3 ms 348 KB Output is correct
21 Correct 8 ms 640 KB Output is correct
22 Correct 8 ms 604 KB Output is correct
23 Correct 11 ms 524 KB Output is correct
24 Correct 9 ms 604 KB Output is correct
25 Correct 11 ms 604 KB Output is correct
26 Correct 11 ms 604 KB Output is correct
27 Correct 11 ms 600 KB Output is correct
28 Correct 10 ms 700 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 3 ms 348 KB Output is correct
31 Correct 2 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 348 KB Output is correct
35 Correct 2 ms 484 KB Output is correct
36 Correct 4 ms 344 KB Output is correct
37 Correct 2 ms 348 KB Output is correct
38 Correct 2 ms 348 KB Output is correct
39 Correct 9 ms 604 KB Output is correct
40 Correct 8 ms 640 KB Output is correct
41 Correct 11 ms 604 KB Output is correct
42 Correct 9 ms 640 KB Output is correct
43 Correct 11 ms 604 KB Output is correct
44 Correct 11 ms 604 KB Output is correct
45 Correct 11 ms 604 KB Output is correct
46 Correct 10 ms 692 KB Output is correct
47 Correct 67 ms 1168 KB Output is correct
48 Correct 64 ms 1156 KB Output is correct
49 Correct 89 ms 1420 KB Output is correct
50 Correct 81 ms 1156 KB Output is correct
51 Correct 91 ms 1312 KB Output is correct
52 Correct 90 ms 1312 KB Output is correct
53 Correct 92 ms 1308 KB Output is correct
54 Correct 84 ms 1308 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 16 ms 600 KB Output is correct
7 Correct 12 ms 604 KB Output is correct
8 Correct 15 ms 736 KB Output is correct
9 Correct 15 ms 604 KB Output is correct
10 Correct 9 ms 604 KB Output is correct
11 Correct 9 ms 604 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 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 15 ms 604 KB Output is correct
18 Correct 12 ms 600 KB Output is correct
19 Correct 15 ms 604 KB Output is correct
20 Correct 15 ms 696 KB Output is correct
21 Correct 8 ms 604 KB Output is correct
22 Correct 8 ms 600 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 121 ms 1256 KB Output is correct
25 Correct 95 ms 1164 KB Output is correct
26 Correct 119 ms 1632 KB Output is correct
27 Correct 126 ms 1628 KB Output is correct
28 Correct 63 ms 1156 KB Output is correct
29 Correct 64 ms 1244 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 3 ms 348 KB Output is correct
32 Correct 2 ms 348 KB Output is correct
33 Correct 3 ms 496 KB Output is correct
34 Correct 3 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 2 ms 348 KB Output is correct
38 Correct 2 ms 344 KB Output is correct
39 Correct 2 ms 568 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 3 ms 572 KB Output is correct
45 Correct 2 ms 348 KB Output is correct
46 Correct 3 ms 348 KB Output is correct
47 Correct 3 ms 348 KB Output is correct
48 Correct 3 ms 348 KB Output is correct
49 Correct 2 ms 344 KB Output is correct
50 Correct 2 ms 348 KB Output is correct
51 Correct 2 ms 348 KB Output is correct
52 Correct 2 ms 348 KB Output is correct
53 Correct 4 ms 604 KB Output is correct
54 Correct 2 ms 348 KB Output is correct
55 Correct 4 ms 604 KB Output is correct
56 Correct 4 ms 604 KB Output is correct
57 Correct 4 ms 604 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 3 ms 348 KB Output is correct
60 Correct 2 ms 348 KB Output is correct
61 Correct 5 ms 348 KB Output is correct
62 Correct 3 ms 544 KB Output is correct
63 Correct 3 ms 348 KB Output is correct
64 Correct 2 ms 348 KB Output is correct
65 Correct 2 ms 348 KB Output is correct
66 Correct 2 ms 348 KB Output is correct
67 Correct 3 ms 348 KB Output is correct
68 Correct 8 ms 640 KB Output is correct
69 Correct 8 ms 604 KB Output is correct
70 Correct 11 ms 524 KB Output is correct
71 Correct 9 ms 604 KB Output is correct
72 Correct 11 ms 604 KB Output is correct
73 Correct 11 ms 604 KB Output is correct
74 Correct 11 ms 600 KB Output is correct
75 Correct 10 ms 700 KB Output is correct
76 Correct 0 ms 344 KB Output is correct
77 Correct 0 ms 348 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 344 KB Output is correct
81 Correct 15 ms 604 KB Output is correct
82 Correct 11 ms 640 KB Output is correct
83 Correct 18 ms 652 KB Output is correct
84 Correct 15 ms 664 KB Output is correct
85 Correct 8 ms 604 KB Output is correct
86 Correct 8 ms 604 KB Output is correct
87 Correct 3 ms 348 KB Output is correct
88 Correct 2 ms 348 KB Output is correct
89 Correct 3 ms 348 KB Output is correct
90 Correct 3 ms 348 KB Output is correct
91 Correct 3 ms 348 KB Output is correct
92 Correct 2 ms 348 KB Output is correct
93 Correct 2 ms 348 KB Output is correct
94 Correct 2 ms 348 KB Output is correct
95 Correct 2 ms 348 KB Output is correct
96 Correct 4 ms 604 KB Output is correct
97 Correct 3 ms 348 KB Output is correct
98 Correct 4 ms 604 KB Output is correct
99 Correct 3 ms 604 KB Output is correct
100 Correct 3 ms 624 KB Output is correct
101 Correct 11 ms 604 KB Output is correct
102 Correct 11 ms 556 KB Output is correct
103 Correct 11 ms 600 KB Output is correct
104 Correct 13 ms 604 KB Output is correct
105 Correct 13 ms 724 KB Output is correct
106 Correct 10 ms 604 KB Output is correct
107 Correct 15 ms 660 KB Output is correct
108 Correct 15 ms 684 KB Output is correct
109 Correct 15 ms 708 KB Output is correct
110 Correct 15 ms 828 KB Output is correct
111 Correct 1 ms 348 KB Output is correct
112 Correct 3 ms 348 KB Output is correct
113 Correct 2 ms 348 KB Output is correct
114 Correct 3 ms 348 KB Output is correct
115 Correct 3 ms 348 KB Output is correct
116 Correct 3 ms 348 KB Output is correct
117 Correct 2 ms 484 KB Output is correct
118 Correct 4 ms 344 KB Output is correct
119 Correct 2 ms 348 KB Output is correct
120 Correct 2 ms 348 KB Output is correct
121 Correct 9 ms 604 KB Output is correct
122 Correct 8 ms 640 KB Output is correct
123 Correct 11 ms 604 KB Output is correct
124 Correct 9 ms 640 KB Output is correct
125 Correct 11 ms 604 KB Output is correct
126 Correct 11 ms 604 KB Output is correct
127 Correct 11 ms 604 KB Output is correct
128 Correct 10 ms 692 KB Output is correct
129 Correct 67 ms 1168 KB Output is correct
130 Correct 64 ms 1156 KB Output is correct
131 Correct 89 ms 1420 KB Output is correct
132 Correct 81 ms 1156 KB Output is correct
133 Correct 91 ms 1312 KB Output is correct
134 Correct 90 ms 1312 KB Output is correct
135 Correct 92 ms 1308 KB Output is correct
136 Correct 84 ms 1308 KB Output is correct
137 Correct 0 ms 348 KB Output is correct
138 Correct 0 ms 348 KB Output is correct
139 Correct 0 ms 348 KB Output is correct
140 Correct 1 ms 600 KB Output is correct
141 Correct 0 ms 348 KB Output is correct
142 Correct 15 ms 736 KB Output is correct
143 Correct 11 ms 600 KB Output is correct
144 Correct 15 ms 604 KB Output is correct
145 Correct 15 ms 708 KB Output is correct
146 Correct 8 ms 604 KB Output is correct
147 Correct 8 ms 604 KB Output is correct
148 Correct 0 ms 348 KB Output is correct
149 Correct 117 ms 1228 KB Output is correct
150 Correct 84 ms 1164 KB Output is correct
151 Correct 118 ms 1632 KB Output is correct
152 Correct 128 ms 1632 KB Output is correct
153 Correct 63 ms 1168 KB Output is correct
154 Correct 66 ms 1228 KB Output is correct
155 Correct 3 ms 348 KB Output is correct
156 Correct 2 ms 540 KB Output is correct
157 Correct 3 ms 348 KB Output is correct
158 Correct 3 ms 348 KB Output is correct
159 Correct 3 ms 348 KB Output is correct
160 Correct 2 ms 348 KB Output is correct
161 Correct 2 ms 348 KB Output is correct
162 Correct 2 ms 348 KB Output is correct
163 Correct 2 ms 348 KB Output is correct
164 Correct 11 ms 604 KB Output is correct
165 Correct 9 ms 520 KB Output is correct
166 Correct 11 ms 724 KB Output is correct
167 Correct 11 ms 688 KB Output is correct
168 Correct 12 ms 604 KB Output is correct
169 Correct 10 ms 692 KB Output is correct
170 Correct 3 ms 620 KB Output is correct
171 Correct 3 ms 348 KB Output is correct
172 Correct 4 ms 604 KB Output is correct
173 Correct 4 ms 604 KB Output is correct
174 Correct 3 ms 624 KB Output is correct
175 Correct 15 ms 748 KB Output is correct
176 Correct 15 ms 764 KB Output is correct
177 Correct 15 ms 708 KB Output is correct
178 Correct 20 ms 656 KB Output is correct
179 Correct 90 ms 1316 KB Output is correct
180 Correct 82 ms 1252 KB Output is correct
181 Correct 109 ms 1316 KB Output is correct
182 Correct 97 ms 1304 KB Output is correct
183 Correct 98 ms 1304 KB Output is correct
184 Correct 84 ms 1304 KB Output is correct
185 Correct 126 ms 1820 KB Output is correct
186 Correct 122 ms 1544 KB Output is correct
187 Correct 121 ms 1860 KB Output is correct
188 Correct 121 ms 1772 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 3 ms 348 KB Output is correct
3 Correct 2 ms 348 KB Output is correct
4 Correct 3 ms 496 KB Output is correct
5 Correct 3 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 2 ms 348 KB Output is correct
9 Correct 2 ms 344 KB Output is correct
10 Correct 2 ms 568 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 3 ms 348 KB Output is correct
13 Correct 2 ms 348 KB Output is correct
14 Correct 5 ms 348 KB Output is correct
15 Correct 3 ms 544 KB Output is correct
16 Correct 3 ms 348 KB Output is correct
17 Correct 2 ms 348 KB Output is correct
18 Correct 2 ms 348 KB Output is correct
19 Correct 2 ms 348 KB Output is correct
20 Correct 3 ms 348 KB Output is correct
21 Correct 8 ms 640 KB Output is correct
22 Correct 8 ms 604 KB Output is correct
23 Correct 11 ms 524 KB Output is correct
24 Correct 9 ms 604 KB Output is correct
25 Correct 11 ms 604 KB Output is correct
26 Correct 11 ms 604 KB Output is correct
27 Correct 11 ms 600 KB Output is correct
28 Correct 10 ms 700 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 3 ms 348 KB Output is correct
31 Correct 2 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 348 KB Output is correct
35 Correct 2 ms 484 KB Output is correct
36 Correct 4 ms 344 KB Output is correct
37 Correct 2 ms 348 KB Output is correct
38 Correct 2 ms 348 KB Output is correct
39 Correct 9 ms 604 KB Output is correct
40 Correct 8 ms 640 KB Output is correct
41 Correct 11 ms 604 KB Output is correct
42 Correct 9 ms 640 KB Output is correct
43 Correct 11 ms 604 KB Output is correct
44 Correct 11 ms 604 KB Output is correct
45 Correct 11 ms 604 KB Output is correct
46 Correct 10 ms 692 KB Output is correct
47 Correct 67 ms 1168 KB Output is correct
48 Correct 64 ms 1156 KB Output is correct
49 Correct 89 ms 1420 KB Output is correct
50 Correct 81 ms 1156 KB Output is correct
51 Correct 91 ms 1312 KB Output is correct
52 Correct 90 ms 1312 KB Output is correct
53 Correct 92 ms 1308 KB Output is correct
54 Correct 84 ms 1308 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 3 ms 572 KB Output is correct
57 Correct 2 ms 348 KB Output is correct
58 Correct 3 ms 348 KB Output is correct
59 Correct 3 ms 348 KB Output is correct
60 Correct 3 ms 348 KB Output is correct
61 Correct 2 ms 348 KB Output is correct
62 Correct 2 ms 348 KB Output is correct
63 Correct 2 ms 348 KB Output is correct
64 Correct 2 ms 348 KB Output is correct
65 Correct 7 ms 604 KB Output is correct
66 Correct 8 ms 640 KB Output is correct
67 Correct 11 ms 604 KB Output is correct
68 Correct 9 ms 604 KB Output is correct
69 Correct 11 ms 604 KB Output is correct
70 Correct 11 ms 528 KB Output is correct
71 Correct 11 ms 604 KB Output is correct
72 Correct 10 ms 604 KB Output is correct
73 Correct 65 ms 1216 KB Output is correct
74 Correct 70 ms 1268 KB Output is correct
75 Correct 89 ms 1316 KB Output is correct
76 Correct 70 ms 1156 KB Output is correct
77 Correct 98 ms 1308 KB Output is correct
78 Correct 100 ms 1248 KB Output is correct
79 Correct 92 ms 1432 KB Output is correct
80 Correct 92 ms 1316 KB Output is correct
81 Correct 3056 ms 10940 KB Output is correct
82 Correct 2898 ms 8876 KB Output is correct
83 Correct 3215 ms 10896 KB Output is correct
84 Correct 3210 ms 12048 KB Output is correct
85 Correct 2426 ms 8880 KB Output is correct
86 Correct 2395 ms 8860 KB Output is correct
87 Correct 3092 ms 10936 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 16 ms 600 KB Output is correct
7 Correct 12 ms 604 KB Output is correct
8 Correct 15 ms 736 KB Output is correct
9 Correct 15 ms 604 KB Output is correct
10 Correct 9 ms 604 KB Output is correct
11 Correct 9 ms 604 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 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 15 ms 604 KB Output is correct
18 Correct 12 ms 600 KB Output is correct
19 Correct 15 ms 604 KB Output is correct
20 Correct 15 ms 696 KB Output is correct
21 Correct 8 ms 604 KB Output is correct
22 Correct 8 ms 600 KB Output is correct
23 Correct 0 ms 344 KB Output is correct
24 Correct 121 ms 1256 KB Output is correct
25 Correct 95 ms 1164 KB Output is correct
26 Correct 119 ms 1632 KB Output is correct
27 Correct 126 ms 1628 KB Output is correct
28 Correct 63 ms 1156 KB Output is correct
29 Correct 64 ms 1244 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 3 ms 348 KB Output is correct
32 Correct 2 ms 348 KB Output is correct
33 Correct 3 ms 496 KB Output is correct
34 Correct 3 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 2 ms 348 KB Output is correct
38 Correct 2 ms 344 KB Output is correct
39 Correct 2 ms 568 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 3 ms 572 KB Output is correct
45 Correct 2 ms 348 KB Output is correct
46 Correct 3 ms 348 KB Output is correct
47 Correct 3 ms 348 KB Output is correct
48 Correct 3 ms 348 KB Output is correct
49 Correct 2 ms 344 KB Output is correct
50 Correct 2 ms 348 KB Output is correct
51 Correct 2 ms 348 KB Output is correct
52 Correct 2 ms 348 KB Output is correct
53 Correct 4 ms 604 KB Output is correct
54 Correct 2 ms 348 KB Output is correct
55 Correct 4 ms 604 KB Output is correct
56 Correct 4 ms 604 KB Output is correct
57 Correct 4 ms 604 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 3 ms 348 KB Output is correct
60 Correct 2 ms 348 KB Output is correct
61 Correct 5 ms 348 KB Output is correct
62 Correct 3 ms 544 KB Output is correct
63 Correct 3 ms 348 KB Output is correct
64 Correct 2 ms 348 KB Output is correct
65 Correct 2 ms 348 KB Output is correct
66 Correct 2 ms 348 KB Output is correct
67 Correct 3 ms 348 KB Output is correct
68 Correct 8 ms 640 KB Output is correct
69 Correct 8 ms 604 KB Output is correct
70 Correct 11 ms 524 KB Output is correct
71 Correct 9 ms 604 KB Output is correct
72 Correct 11 ms 604 KB Output is correct
73 Correct 11 ms 604 KB Output is correct
74 Correct 11 ms 600 KB Output is correct
75 Correct 10 ms 700 KB Output is correct
76 Correct 0 ms 344 KB Output is correct
77 Correct 0 ms 348 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 344 KB Output is correct
81 Correct 15 ms 604 KB Output is correct
82 Correct 11 ms 640 KB Output is correct
83 Correct 18 ms 652 KB Output is correct
84 Correct 15 ms 664 KB Output is correct
85 Correct 8 ms 604 KB Output is correct
86 Correct 8 ms 604 KB Output is correct
87 Correct 3 ms 348 KB Output is correct
88 Correct 2 ms 348 KB Output is correct
89 Correct 3 ms 348 KB Output is correct
90 Correct 3 ms 348 KB Output is correct
91 Correct 3 ms 348 KB Output is correct
92 Correct 2 ms 348 KB Output is correct
93 Correct 2 ms 348 KB Output is correct
94 Correct 2 ms 348 KB Output is correct
95 Correct 2 ms 348 KB Output is correct
96 Correct 4 ms 604 KB Output is correct
97 Correct 3 ms 348 KB Output is correct
98 Correct 4 ms 604 KB Output is correct
99 Correct 3 ms 604 KB Output is correct
100 Correct 3 ms 624 KB Output is correct
101 Correct 11 ms 604 KB Output is correct
102 Correct 11 ms 556 KB Output is correct
103 Correct 11 ms 600 KB Output is correct
104 Correct 13 ms 604 KB Output is correct
105 Correct 13 ms 724 KB Output is correct
106 Correct 10 ms 604 KB Output is correct
107 Correct 15 ms 660 KB Output is correct
108 Correct 15 ms 684 KB Output is correct
109 Correct 15 ms 708 KB Output is correct
110 Correct 15 ms 828 KB Output is correct
111 Correct 1 ms 348 KB Output is correct
112 Correct 3 ms 348 KB Output is correct
113 Correct 2 ms 348 KB Output is correct
114 Correct 3 ms 348 KB Output is correct
115 Correct 3 ms 348 KB Output is correct
116 Correct 3 ms 348 KB Output is correct
117 Correct 2 ms 484 KB Output is correct
118 Correct 4 ms 344 KB Output is correct
119 Correct 2 ms 348 KB Output is correct
120 Correct 2 ms 348 KB Output is correct
121 Correct 9 ms 604 KB Output is correct
122 Correct 8 ms 640 KB Output is correct
123 Correct 11 ms 604 KB Output is correct
124 Correct 9 ms 640 KB Output is correct
125 Correct 11 ms 604 KB Output is correct
126 Correct 11 ms 604 KB Output is correct
127 Correct 11 ms 604 KB Output is correct
128 Correct 10 ms 692 KB Output is correct
129 Correct 67 ms 1168 KB Output is correct
130 Correct 64 ms 1156 KB Output is correct
131 Correct 89 ms 1420 KB Output is correct
132 Correct 81 ms 1156 KB Output is correct
133 Correct 91 ms 1312 KB Output is correct
134 Correct 90 ms 1312 KB Output is correct
135 Correct 92 ms 1308 KB Output is correct
136 Correct 84 ms 1308 KB Output is correct
137 Correct 0 ms 348 KB Output is correct
138 Correct 0 ms 348 KB Output is correct
139 Correct 0 ms 348 KB Output is correct
140 Correct 1 ms 600 KB Output is correct
141 Correct 0 ms 348 KB Output is correct
142 Correct 15 ms 736 KB Output is correct
143 Correct 11 ms 600 KB Output is correct
144 Correct 15 ms 604 KB Output is correct
145 Correct 15 ms 708 KB Output is correct
146 Correct 8 ms 604 KB Output is correct
147 Correct 8 ms 604 KB Output is correct
148 Correct 0 ms 348 KB Output is correct
149 Correct 117 ms 1228 KB Output is correct
150 Correct 84 ms 1164 KB Output is correct
151 Correct 118 ms 1632 KB Output is correct
152 Correct 128 ms 1632 KB Output is correct
153 Correct 63 ms 1168 KB Output is correct
154 Correct 66 ms 1228 KB Output is correct
155 Correct 3 ms 348 KB Output is correct
156 Correct 2 ms 540 KB Output is correct
157 Correct 3 ms 348 KB Output is correct
158 Correct 3 ms 348 KB Output is correct
159 Correct 3 ms 348 KB Output is correct
160 Correct 2 ms 348 KB Output is correct
161 Correct 2 ms 348 KB Output is correct
162 Correct 2 ms 348 KB Output is correct
163 Correct 2 ms 348 KB Output is correct
164 Correct 11 ms 604 KB Output is correct
165 Correct 9 ms 520 KB Output is correct
166 Correct 11 ms 724 KB Output is correct
167 Correct 11 ms 688 KB Output is correct
168 Correct 12 ms 604 KB Output is correct
169 Correct 10 ms 692 KB Output is correct
170 Correct 3 ms 620 KB Output is correct
171 Correct 3 ms 348 KB Output is correct
172 Correct 4 ms 604 KB Output is correct
173 Correct 4 ms 604 KB Output is correct
174 Correct 3 ms 624 KB Output is correct
175 Correct 15 ms 748 KB Output is correct
176 Correct 15 ms 764 KB Output is correct
177 Correct 15 ms 708 KB Output is correct
178 Correct 20 ms 656 KB Output is correct
179 Correct 90 ms 1316 KB Output is correct
180 Correct 82 ms 1252 KB Output is correct
181 Correct 109 ms 1316 KB Output is correct
182 Correct 97 ms 1304 KB Output is correct
183 Correct 98 ms 1304 KB Output is correct
184 Correct 84 ms 1304 KB Output is correct
185 Correct 126 ms 1820 KB Output is correct
186 Correct 122 ms 1544 KB Output is correct
187 Correct 121 ms 1860 KB Output is correct
188 Correct 121 ms 1772 KB Output is correct
189 Correct 0 ms 348 KB Output is correct
190 Correct 3 ms 572 KB Output is correct
191 Correct 2 ms 348 KB Output is correct
192 Correct 3 ms 348 KB Output is correct
193 Correct 3 ms 348 KB Output is correct
194 Correct 3 ms 348 KB Output is correct
195 Correct 2 ms 348 KB Output is correct
196 Correct 2 ms 348 KB Output is correct
197 Correct 2 ms 348 KB Output is correct
198 Correct 2 ms 348 KB Output is correct
199 Correct 7 ms 604 KB Output is correct
200 Correct 8 ms 640 KB Output is correct
201 Correct 11 ms 604 KB Output is correct
202 Correct 9 ms 604 KB Output is correct
203 Correct 11 ms 604 KB Output is correct
204 Correct 11 ms 528 KB Output is correct
205 Correct 11 ms 604 KB Output is correct
206 Correct 10 ms 604 KB Output is correct
207 Correct 65 ms 1216 KB Output is correct
208 Correct 70 ms 1268 KB Output is correct
209 Correct 89 ms 1316 KB Output is correct
210 Correct 70 ms 1156 KB Output is correct
211 Correct 98 ms 1308 KB Output is correct
212 Correct 100 ms 1248 KB Output is correct
213 Correct 92 ms 1432 KB Output is correct
214 Correct 92 ms 1316 KB Output is correct
215 Correct 3056 ms 10940 KB Output is correct
216 Correct 2898 ms 8876 KB Output is correct
217 Correct 3215 ms 10896 KB Output is correct
218 Correct 3210 ms 12048 KB Output is correct
219 Correct 2426 ms 8880 KB Output is correct
220 Correct 2395 ms 8860 KB Output is correct
221 Correct 3092 ms 10936 KB Output is correct
222 Correct 0 ms 348 KB Output is correct
223 Correct 3 ms 348 KB Output is correct
224 Correct 2 ms 348 KB Output is correct
225 Correct 4 ms 348 KB Output is correct
226 Correct 3 ms 348 KB Output is correct
227 Correct 3 ms 348 KB Output is correct
228 Correct 2 ms 344 KB Output is correct
229 Correct 2 ms 348 KB Output is correct
230 Correct 2 ms 576 KB Output is correct
231 Correct 2 ms 576 KB Output is correct
232 Correct 8 ms 528 KB Output is correct
233 Correct 8 ms 548 KB Output is correct
234 Correct 11 ms 604 KB Output is correct
235 Correct 11 ms 644 KB Output is correct
236 Correct 11 ms 724 KB Output is correct
237 Correct 11 ms 688 KB Output is correct
238 Correct 11 ms 604 KB Output is correct
239 Correct 10 ms 604 KB Output is correct
240 Correct 63 ms 1168 KB Output is correct
241 Correct 64 ms 1244 KB Output is correct
242 Correct 94 ms 1316 KB Output is correct
243 Correct 71 ms 1248 KB Output is correct
244 Correct 90 ms 1308 KB Output is correct
245 Correct 98 ms 1280 KB Output is correct
246 Correct 93 ms 1308 KB Output is correct
247 Correct 84 ms 1256 KB Output is correct
248 Correct 0 ms 344 KB Output is correct
249 Correct 1 ms 348 KB Output is correct
250 Correct 0 ms 348 KB Output is correct
251 Correct 0 ms 348 KB Output is correct
252 Correct 18 ms 652 KB Output is correct
253 Correct 11 ms 528 KB Output is correct
254 Correct 15 ms 652 KB Output is correct
255 Correct 15 ms 744 KB Output is correct
256 Correct 0 ms 348 KB Output is correct
257 Correct 116 ms 1304 KB Output is correct
258 Correct 84 ms 1164 KB Output is correct
259 Correct 118 ms 1628 KB Output is correct
260 Correct 120 ms 1632 KB Output is correct
261 Correct 3 ms 604 KB Output is correct
262 Correct 3 ms 348 KB Output is correct
263 Correct 3 ms 604 KB Output is correct
264 Correct 3 ms 604 KB Output is correct
265 Correct 3 ms 604 KB Output is correct
266 Correct 15 ms 660 KB Output is correct
267 Correct 15 ms 684 KB Output is correct
268 Correct 15 ms 708 KB Output is correct
269 Correct 15 ms 672 KB Output is correct
270 Correct 115 ms 1788 KB Output is correct
271 Correct 129 ms 1540 KB Output is correct
272 Correct 127 ms 1800 KB Output is correct
273 Correct 129 ms 1524 KB Output is correct
274 Correct 2936 ms 10740 KB Output is correct
275 Correct 2849 ms 8888 KB Output is correct
276 Correct 3240 ms 10744 KB Output is correct
277 Correct 3287 ms 11924 KB Output is correct
278 Correct 2508 ms 8832 KB Output is correct
279 Correct 2567 ms 8864 KB Output is correct
280 Correct 3132 ms 10904 KB Output is correct
281 Correct 3825 ms 11052 KB Output is correct
282 Correct 4354 ms 13168 KB Output is correct
283 Correct 4043 ms 13180 KB Output is correct