https://www.acmicpc.net/problem/1107#include #include #include #include using namespace std;int n; // 이동하고자 하는 채널int m; // 고장난 버튼 개수bool ban[10];int main(){ cin >> n >> m; for (int i = 0; i > a; ban[a] = true; } if (n == 100) // 이미 목표일 때 { cout = 0; lower--) { string str = to_string(lower); bool pass = true; for (int i = 0; i