백준 마인크래프트 18111번 브루스포스(C언어)


백준 마인크래프트 18111번 브루스포스(C언어)

#include #include int to_high(int high, int** arr, int width, int length,int inventory) { int count = 0;//인벤토리 추가될 블럭 int time = 0; int check; for (int i = 0; i < length; i++) { for (int j = 0; j < width; j++) { check = high - arr[i][j]; if (check > 0) { //printf("up\n"); count -= check; time+=check; } else if (check < 0) { //printf("down\n"); count -= check; time += -2*check; } } } if (count + ..


원문링크 : 백준 마인크래프트 18111번 브루스포스(C언어)