Submission #338317

#TimeUsernameProblemLanguageResultExecution timeMemory
338317mayflyyh비스킷 담기 (IOI20_biscuits)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #define ll long long ll dp[70]; int64 b[70]; int64 count_tastiness(int64 x, int64[] a){ int end=65; for(int i=0;i<=end;++i) if(a[i]) b[i]=a[i]; else b[i]=0; for(int i=end;i+1;--i){ if(i==end){ dp[i]=1; } else{ for(int j=end;j>=i+1;--j){ ll min=0,max=(1<<end-i)-1; ll ai=0; for(int k=j-1;k>=i;--k){ ai=ai*2+b[i]; ll y_=0; if(k>i){ y_=(ai/x+1)<<(k-i); if(y_>min) min=y_; } else{ y_=ai/x; if(y_<max) max=y_; } } } } } return dp[0]; }

Compilation message (stderr)

biscuits.cpp:4:1: error: 'int64' does not name a type; did you mean 'int64_t'?
    4 | int64 b[70];
      | ^~~~~
      | int64_t
biscuits.cpp:5:1: error: 'int64' does not name a type; did you mean 'int64_t'?
    5 | int64 count_tastiness(int64 x, int64[] a){
      | ^~~~~
      | int64_t