Submission #915306

#TimeUsernameProblemLanguageResultExecution timeMemory
915306Trisanu_Das휴가 (IOI14_holiday)C++17
Compilation error
0 ms0 KiB
#include <bit/stdc++.h>
#include "holiday.h"
using namespace std;

long long findMaxAttraction(int n, int s, int k, int a[]){
  long long ans = 0;
  if(s == 0){
    multiset<int> ss; long long curr;
    for(int j = 0; j < min(n, k - 1); j++){
      ss.insert(a[i]);
      curr += a[i];
      while(j + ss.size() > k){
        curr -= *ss.begin();
        s.erase(s.begin());
      }
      ans = max(ans, curr);
    }
    return ans;
  }
}

Compilation message (stderr)

holiday.cpp:1:10: fatal error: bit/stdc++.h: No such file or directory
    1 | #include <bit/stdc++.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.