#include #include using namespace std;long long dp[101][101];int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int N, M; long long K; cin >> N >> M >> K; // dp 테이블 초기화 for (int i = 0; i 1000000000) dp[i][j] = 1000000001; // cap 처리 } } } // K번째 문자열이 존재하지 않는 경우 if (dp[N][M] 0 || M > 0) { if (N == 0) { // 남은 건 z 뿐 ..