Submission #1214580

#TimeUsernameProblemLanguageResultExecution timeMemory
1214580michael12콤보 (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include<combo.h> #define ff first #define ss second using namespace std; int dx[4] = {0, 0, -1, 1}; int dy[4] = {-1, 1, 0, 0}; bool vis[100][100]; string guess_sequence(int N){ string S, tmp; string ans = ""; string nn = ""; if(press("AB")){ if(press("A")){ ans += "A"; nn += "BXY"; } else{ ans += "B"; nn += "AXY"; } } else if(press("X")){ ans += "X"; nn += "ABY"; } else{ ans += "Y"; nn += "ABX"; } if(N == 1){ return ans; } for(int i = 1; i < N - 1; i++){ tmp = ans + nn[0] + ans + nn[1] + nn[1] + ans + nn[1] + nn[0] + ans + nn[1] + nn[2]; int rr = press("tmp"); if(rr = ans.size()){ ans += nn[2]; } else if(rr = ans.size() + 1){ ans += nn[0]; } else{ ans += nn[1]; } } if(press(ans + "A") == ans.size() + 1){ return ans + "A"; } else if(press(ans + "B") == ans.size() + 1){ return ans + "B"; } else if(press(ans + "X") == ans.size() + 1){ return ans + "X"; } else{ return ans + "Y"; } }

Compilation message (stderr)

combo.cpp:2:9: fatal error: combo.h: No such file or directory
    2 | #include<combo.h>
      |         ^~~~~~~~~
compilation terminated.