제출 #897908

#제출 시각아이디문제언어결과실행 시간메모리
897908Sir_Ahmed_Imran동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
///~~~LOTA~~~/// #include "grader.h" #include <bits/stdc++.h> using namespace std; #define nl '\n' #define ff first #define ss second #define ll long long #define append push_back #define pii pair<int,int> #define all(x) (x).begin(),(x).end() mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); int ran(){ ll o=rng(); o%=2; o=(o+2)%2; return o; } void exploreCave(int n){ int m,o,p,q,r,s[n],t[n],d[n]; for(int i=0;i<n;i++) s[i]=d[i]=-1; m=0; while(m<n){ for(int j=0;j<1028;j++){ for(int i=0;i<n;i++) if(d[i]<0) s[i]=ran(); o=tryCombination(s); if(o>=m){ m=o; for(int i=0;i<n;i++) t[i]=s[i]; } if(o==-1){ m=n; for(int i=0;i<n;i++) t[i]=s[i]; } } for(int i=0;i<n;i++){ if(d[i]>=0) continue; s[i]=t[i]; t[i]^=1; o=tryCombination(t); if(o==-1) o=n; if(o<m) d[i]=o; t[i]^=1; } } answer(t,d); }

컴파일 시 표준 에러 (stderr) 메시지

cave.cpp:2:10: fatal error: grader.h: No such file or directory
    2 | #include "grader.h"
      |          ^~~~~~~~~~
compilation terminated.