백준 1755 - 숫자놀이
프로그래밍 이모저모/프로그래밍2019. 8. 8. 21:31
#include using namespace std; int main() { // one two three four five six seven eight nine // eight five four nine one seven six three two zero int N, M; cin >> N >> M; bool chk[10] = { false }; int r = 8; int c = 8; int count = 0; int prevR = 0; while (count != M - N + 1) { if (prevR != r && chk[r]==false && r>=N && r