Submission #341598

# Submission time Handle Problem Language Result Execution time Memory
341598 2020-12-30T07:15:16 Z beksultan04 K blocks (IZhO14_blocks) C++14
0 / 100
35 ms 47468 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define pii pair<int,int>
#define OK puts("OK");
#define NO puts("NO");
#define YES puts("YES");
#define fr first
#define sc second
#define ret return
#define scanl(a) scanf("%lld",&a);
#define scanll(a,b) scanf("%lld %lld",&a, &b);
#define scanlll(a,b,c) scanf("%lld %lld %lld",&a,&b,&c);
#define scan1(a) scanf("%d",&a);
#define scan2(a,b) scanf("%d %d",&a, &b);
#define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
#define all(s) s.begin(),s.end()
#define allr(s) s.rbegin(),s.rend()
#define pb push_back
#define sz(v) (int)v.size()
#define endi puts("");
#define eps 1e-12
const int N = 2e6+12,INF=1e9+7;
int q[N],n,ansmx=0,der[N];
vector <int>g[N];
bool vis[N];
void update(int v,int l,int r,int x){
    if (l == r){
        der[v]=x;
        ret ;
    }
    int m = l+r>>1;
    if (m < x)
        update((v<<1)+1,m+1,r,x);
    else update(v<<1,l,m,x);
    der[v] = der[v<<1]+der[(v<<1)+1];
}


int get_ans(int v,int l,int r,int ql,int qr){
    if (l > qr || r < ql)ret 0;
    if (ql <= l && r <= qr){
        ret der[v];
    }
    int m = l+r>>1;
    ret get_ans(v<<1,l,m,ql,qr)+get_ans((v<<1)+1,m+1,r,ql,qr);
}



int baty[N],baty_max[N];
int dsu_get(int x){
    if (baty[x] == x)ret x;
    ret baty[x] = dsu_get(baty[x]);
}


void dsu_unite(int a,int b){
    a = dsu_get(a);
    b = dsu_get(b);
    if (rand()&1)swap(a,b);
    if (a != b)baty[a]=b;
    baty_max[a] = max(baty_max[a],baty_max[b]);
}

int dsu_max(int x){
    x = dsu_get(x);
    ret baty_max[x];
}


main(){
    int i,k,ans,sum=0,cou=0;
    scan2(n,k)
    ans=n;
    vector <pii> v;
    for (i=1;i<=n;++i){
        baty[i]=i;
        scan1(q[i])
        baty_max[i]=q[i];
        sum+=q[i];
        v.pb({q[i],i});
    }
    sort(allr(v));
    k = n-k;
    for (i=0;i<n;++i){
        update(1,1,n,v[i].sc);

        bool a = get_ans(1,1,n,v[i].sc+1,v[i].sc+1);
        bool b = get_ans(1,1,n,v[i].sc-1,v[i].sc-1);
        if (a == 1 && b == 1 ){
            int mxa = dsu_max(v[i].sc+1);
            int mxb = dsu_max(v[i].sc-1);
            sum -= v[i].fr;
            if (k > 1){
                sum -= min(mxa,mxb);
                dsu_unite(v[i].sc,v[i].sc+1);
                dsu_unite(v[i].sc,v[i].sc-1);
                k--;
            }
            k--;
        }
        if (a == 1 && b == 0){
            sum -= v[i].fr;
            dsu_unite(v[i].sc,v[i].sc+1);
            k--;
        }
        if (a == 0 && b == 1 ){
            sum -= v[i].fr;
            dsu_unite(v[i].sc,v[i].sc-1);
            k--;
        }
        if (k == 0)break;

    }
    cout <<sum;




}


Compilation message

blocks.cpp: In function 'void update(long long int, long long int, long long int, long long int)':
blocks.cpp:32:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   32 |     int m = l+r>>1;
      |             ~^~
blocks.cpp: In function 'long long int get_ans(long long int, long long int, long long int, long long int, long long int)':
blocks.cpp:45:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   45 |     int m = l+r>>1;
      |             ~^~
blocks.cpp: At global scope:
blocks.cpp:72:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   72 | main(){
      |      ^
blocks.cpp: In function 'int main()':
blocks.cpp:15:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   15 | #define scan2(a,b) scanf("%d %d",&a, &b);
      |                          ^~~~~~~ ~~~~~~~~
      |                                  |
      |                                  long long int*
   16 | #define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   17 | #define all(s) s.begin(),s.end()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   18 | #define allr(s) s.rbegin(),s.rend()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   19 | #define pb push_back
      | ~~~~~~~~~~~~~~~~~~~~      
   20 | #define sz(v) (int)v.size()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   21 | #define endi puts("");
      | ~~~~~~~~~~~~~~~~~~~~~~    
   22 | #define eps 1e-12
      | ~~~~~~~~~~~~~~~~~         
   23 | const int N = 2e6+12,INF=1e9+7;
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   24 | int q[N],n,ansmx=0,der[N];
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~
   25 | vector <int>g[N];
      | ~~~~~~~~~~~~~~~~~         
   26 | bool vis[N];
      | ~~~~~~~~~~~~              
   27 | void update(int v,int l,int r,int x){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   28 |     if (l == r){
      |     ~~~~~~~~~~~~          
   29 |         der[v]=x;
      |         ~~~~~~~~~         
   30 |         ret ;
      |         ~~~~~             
   31 |     }
      |     ~                     
   32 |     int m = l+r>>1;
      |     ~~~~~~~~~~~~~~~       
   33 |     if (m < x)
      |     ~~~~~~~~~~            
   34 |         update((v<<1)+1,m+1,r,x);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~
   35 |     else update(v<<1,l,m,x);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   36 |     der[v] = der[v<<1]+der[(v<<1)+1];
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 | }
      | ~                         
   38 | 
      |                           
   39 | 
      |                           
   40 | int get_ans(int v,int l,int r,int ql,int qr){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |     if (l > qr || r < ql)ret 0;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |     if (ql <= l && r <= qr){
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   43 |         ret der[v];
      |         ~~~~~~~~~~~       
   44 |     }
      |     ~                     
   45 |     int m = l+r>>1;
      |     ~~~~~~~~~~~~~~~       
   46 |     ret get_ans(v<<1,l,m,ql,qr)+get_ans((v<<1)+1,m+1,r,ql,qr);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 | }
      | ~                         
   48 | 
      |                           
   49 | 
      |                           
   50 | 
      |                           
   51 | int baty[N],baty_max[N];
      | ~~~~~~~~~~~~~~~~~~~~~~~~  
   52 | int dsu_get(int x){
      | ~~~~~~~~~~~~~~~~~~~       
   53 |     if (baty[x] == x)ret x;
      |     ~~~~~~~~~~~~~~~~~~~~~~~
   54 |     ret baty[x] = dsu_get(baty[x]);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 | }
      | ~                         
   56 | 
      |                           
   57 | 
      |                           
   58 | void dsu_unite(int a,int b){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   59 |     a = dsu_get(a);
      |     ~~~~~~~~~~~~~~~       
   60 |     b = dsu_get(b);
      |     ~~~~~~~~~~~~~~~       
   61 |     if (rand()&1)swap(a,b);
      |     ~~~~~~~~~~~~~~~~~~~~~~~
   62 |     if (a != b)baty[a]=b;
      |     ~~~~~~~~~~~~~~~~~~~~~ 
   63 |     baty_max[a] = max(baty_max[a],baty_max[b]);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   64 | }
      | ~                         
   65 | 
      |                           
   66 | int dsu_max(int x){
      | ~~~~~~~~~~~~~~~~~~~       
   67 |     x = dsu_get(x);
      |     ~~~~~~~~~~~~~~~       
   68 |     ret baty_max[x];
      |     ~~~~~~~~~~~~~~~~      
   69 | }
      | ~                         
   70 | 
      |                           
   71 | 
      |                           
   72 | main(){
      | ~~~~~~~                   
   73 |     int i,k,ans,sum=0,cou=0;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     scan2(n,k)
      |     ~~~~~~~               
blocks.cpp:74:5: note: in expansion of macro 'scan2'
   74 |     scan2(n,k)
      |     ^~~~~
blocks.cpp:15:28: note: format string is defined here
   15 | #define scan2(a,b) scanf("%d %d",&a, &b);
      |                           ~^
      |                            |
      |                            int*
      |                           %lld
blocks.cpp:15:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
   15 | #define scan2(a,b) scanf("%d %d",&a, &b);
      |                          ^~~~~~~     ~~~~
      |                                      |
      |                                      long long int*
   16 | #define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   17 | #define all(s) s.begin(),s.end()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   18 | #define allr(s) s.rbegin(),s.rend()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   19 | #define pb push_back
      | ~~~~~~~~~~~~~~~~~~~~      
   20 | #define sz(v) (int)v.size()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   21 | #define endi puts("");
      | ~~~~~~~~~~~~~~~~~~~~~~    
   22 | #define eps 1e-12
      | ~~~~~~~~~~~~~~~~~         
   23 | const int N = 2e6+12,INF=1e9+7;
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   24 | int q[N],n,ansmx=0,der[N];
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~
   25 | vector <int>g[N];
      | ~~~~~~~~~~~~~~~~~         
   26 | bool vis[N];
      | ~~~~~~~~~~~~              
   27 | void update(int v,int l,int r,int x){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   28 |     if (l == r){
      |     ~~~~~~~~~~~~          
   29 |         der[v]=x;
      |         ~~~~~~~~~         
   30 |         ret ;
      |         ~~~~~             
   31 |     }
      |     ~                     
   32 |     int m = l+r>>1;
      |     ~~~~~~~~~~~~~~~       
   33 |     if (m < x)
      |     ~~~~~~~~~~            
   34 |         update((v<<1)+1,m+1,r,x);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~
   35 |     else update(v<<1,l,m,x);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   36 |     der[v] = der[v<<1]+der[(v<<1)+1];
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 | }
      | ~                         
   38 | 
      |                           
   39 | 
      |                           
   40 | int get_ans(int v,int l,int r,int ql,int qr){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |     if (l > qr || r < ql)ret 0;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |     if (ql <= l && r <= qr){
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   43 |         ret der[v];
      |         ~~~~~~~~~~~       
   44 |     }
      |     ~                     
   45 |     int m = l+r>>1;
      |     ~~~~~~~~~~~~~~~       
   46 |     ret get_ans(v<<1,l,m,ql,qr)+get_ans((v<<1)+1,m+1,r,ql,qr);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 | }
      | ~                         
   48 | 
      |                           
   49 | 
      |                           
   50 | 
      |                           
   51 | int baty[N],baty_max[N];
      | ~~~~~~~~~~~~~~~~~~~~~~~~  
   52 | int dsu_get(int x){
      | ~~~~~~~~~~~~~~~~~~~       
   53 |     if (baty[x] == x)ret x;
      |     ~~~~~~~~~~~~~~~~~~~~~~~
   54 |     ret baty[x] = dsu_get(baty[x]);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 | }
      | ~                         
   56 | 
      |                           
   57 | 
      |                           
   58 | void dsu_unite(int a,int b){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   59 |     a = dsu_get(a);
      |     ~~~~~~~~~~~~~~~       
   60 |     b = dsu_get(b);
      |     ~~~~~~~~~~~~~~~       
   61 |     if (rand()&1)swap(a,b);
      |     ~~~~~~~~~~~~~~~~~~~~~~~
   62 |     if (a != b)baty[a]=b;
      |     ~~~~~~~~~~~~~~~~~~~~~ 
   63 |     baty_max[a] = max(baty_max[a],baty_max[b]);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   64 | }
      | ~                         
   65 | 
      |                           
   66 | int dsu_max(int x){
      | ~~~~~~~~~~~~~~~~~~~       
   67 |     x = dsu_get(x);
      |     ~~~~~~~~~~~~~~~       
   68 |     ret baty_max[x];
      |     ~~~~~~~~~~~~~~~~      
   69 | }
      | ~                         
   70 | 
      |                           
   71 | 
      |                           
   72 | main(){
      | ~~~~~~~                   
   73 |     int i,k,ans,sum=0,cou=0;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     scan2(n,k)
      |     ~~~~~~~~~             
blocks.cpp:74:5: note: in expansion of macro 'scan2'
   74 |     scan2(n,k)
      |     ^~~~~
blocks.cpp:15:31: note: format string is defined here
   15 | #define scan2(a,b) scanf("%d %d",&a, &b);
      |                              ~^
      |                               |
      |                               int*
      |                              %lld
blocks.cpp:14:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   14 | #define scan1(a) scanf("%d",&a);
      |                        ^~~~ ~~~~
      |                             |
      |                             long long int*
   15 | #define scan2(a,b) scanf("%d %d",&a, &b);
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   16 | #define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   17 | #define all(s) s.begin(),s.end()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   18 | #define allr(s) s.rbegin(),s.rend()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   19 | #define pb push_back
      | ~~~~~~~~~~~~~~~~~~~~    
   20 | #define sz(v) (int)v.size()
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   21 | #define endi puts("");
      | ~~~~~~~~~~~~~~~~~~~~~~  
   22 | #define eps 1e-12
      | ~~~~~~~~~~~~~~~~~       
   23 | const int N = 2e6+12,INF=1e9+7;
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   24 | int q[N],n,ansmx=0,der[N];
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~
   25 | vector <int>g[N];
      | ~~~~~~~~~~~~~~~~~       
   26 | bool vis[N];
      | ~~~~~~~~~~~~            
   27 | void update(int v,int l,int r,int x){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   28 |     if (l == r){
      |     ~~~~~~~~~~~~        
   29 |         der[v]=x;
      |         ~~~~~~~~~       
   30 |         ret ;
      |         ~~~~~           
   31 |     }
      |     ~                   
   32 |     int m = l+r>>1;
      |     ~~~~~~~~~~~~~~~     
   33 |     if (m < x)
      |     ~~~~~~~~~~          
   34 |         update((v<<1)+1,m+1,r,x);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~
   35 |     else update(v<<1,l,m,x);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   36 |     der[v] = der[v<<1]+der[(v<<1)+1];
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 | }
      | ~                       
   38 | 
      |                         
   39 | 
      |                         
   40 | int get_ans(int v,int l,int r,int ql,int qr){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |     if (l > qr || r < ql)ret 0;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |     if (ql <= l && r <= qr){
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   43 |         ret der[v];
      |         ~~~~~~~~~~~     
   44 |     }
      |     ~                   
   45 |     int m = l+r>>1;
      |     ~~~~~~~~~~~~~~~     
   46 |     ret get_ans(v<<1,l,m,ql,qr)+get_ans((v<<1)+1,m+1,r,ql,qr);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 | }
      | ~                       
   48 | 
      |                         
   49 | 
      |                         
   50 | 
      |                         
   51 | int baty[N],baty_max[N];
      | ~~~~~~~~~~~~~~~~~~~~~~~~
   52 | int dsu_get(int x){
      | ~~~~~~~~~~~~~~~~~~~     
   53 |     if (baty[x] == x)ret x;
      |     ~~~~~~~~~~~~~~~~~~~~~~~
   54 |     ret baty[x] = dsu_get(baty[x]);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 | }
      | ~                       
   56 | 
      |                         
   57 | 
      |                         
   58 | void dsu_unite(int a,int b){
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   59 |     a = dsu_get(a);
      |     ~~~~~~~~~~~~~~~     
   60 |     b = dsu_get(b);
      |     ~~~~~~~~~~~~~~~     
   61 |     if (rand()&1)swap(a,b);
      |     ~~~~~~~~~~~~~~~~~~~~~~~
   62 |     if (a != b)baty[a]=b;
      |     ~~~~~~~~~~~~~~~~~~~~~
   63 |     baty_max[a] = max(baty_max[a],baty_max[b]);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   64 | }
      | ~                       
   65 | 
      |                         
   66 | int dsu_max(int x){
      | ~~~~~~~~~~~~~~~~~~~     
   67 |     x = dsu_get(x);
      |     ~~~~~~~~~~~~~~~     
   68 |     ret baty_max[x];
      |     ~~~~~~~~~~~~~~~~    
   69 | }
      | ~                       
   70 | 
      |                         
   71 | 
      |                         
   72 | main(){
      | ~~~~~~~                 
   73 |     int i,k,ans,sum=0,cou=0;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     scan2(n,k)
      |     ~~~~~~~~~~          
   75 |     ans=n;
      |     ~~~~~~              
   76 |     vector <pii> v;
      |     ~~~~~~~~~~~~~~~     
   77 |     for (i=1;i<=n;++i){
      |     ~~~~~~~~~~~~~~~~~~~ 
   78 |         baty[i]=i;
      |         ~~~~~~~~~~      
   79 |         scan1(q[i])
      |         ~~~~~~~~~~      
blocks.cpp:79:9: note: in expansion of macro 'scan1'
   79 |         scan1(q[i])
      |         ^~~~~
blocks.cpp:14:26: note: format string is defined here
   14 | #define scan1(a) scanf("%d",&a);
      |                         ~^
      |                          |
      |                          int*
      |                         %lld
blocks.cpp:73:13: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
   73 |     int i,k,ans,sum=0,cou=0;
      |             ^~~
blocks.cpp:73:23: warning: unused variable 'cou' [-Wunused-variable]
   73 |     int i,k,ans,sum=0,cou=0;
      |                       ^~~
blocks.cpp:15:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   15 | #define scan2(a,b) scanf("%d %d",&a, &b);
      |                    ~~~~~^~~~~~~~~~~~~~~~
blocks.cpp:74:5: note: in expansion of macro 'scan2'
   74 |     scan2(n,k)
      |     ^~~~~
blocks.cpp:14:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   14 | #define scan1(a) scanf("%d",&a);
      |                  ~~~~~^~~~~~~~~
blocks.cpp:79:9: note: in expansion of macro 'scan1'
   79 |         scan1(q[i])
      |         ^~~~~
# Verdict Execution time Memory Grader output
1 Correct 32 ms 47340 KB Output is correct
2 Correct 32 ms 47340 KB Output is correct
3 Correct 34 ms 47340 KB Output is correct
4 Correct 34 ms 47340 KB Output is correct
5 Correct 32 ms 47340 KB Output is correct
6 Correct 32 ms 47360 KB Output is correct
7 Correct 32 ms 47340 KB Output is correct
8 Incorrect 33 ms 47340 KB Output isn't correct
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 34 ms 47340 KB Output is correct
2 Correct 33 ms 47340 KB Output is correct
3 Correct 32 ms 47276 KB Output is correct
4 Correct 32 ms 47340 KB Output is correct
5 Correct 32 ms 47340 KB Output is correct
6 Correct 33 ms 47340 KB Output is correct
7 Correct 35 ms 47468 KB Output is correct
8 Incorrect 34 ms 47340 KB Output isn't correct
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 32 ms 47340 KB Output is correct
2 Correct 32 ms 47340 KB Output is correct
3 Correct 34 ms 47340 KB Output is correct
4 Correct 34 ms 47340 KB Output is correct
5 Correct 32 ms 47340 KB Output is correct
6 Correct 32 ms 47360 KB Output is correct
7 Correct 32 ms 47340 KB Output is correct
8 Incorrect 33 ms 47340 KB Output isn't correct
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 32 ms 47340 KB Output is correct
2 Correct 32 ms 47340 KB Output is correct
3 Correct 34 ms 47340 KB Output is correct
4 Correct 34 ms 47340 KB Output is correct
5 Correct 32 ms 47340 KB Output is correct
6 Correct 32 ms 47360 KB Output is correct
7 Correct 32 ms 47340 KB Output is correct
8 Incorrect 33 ms 47340 KB Output isn't correct
9 Halted 0 ms 0 KB -