https://www.acmicpc.net/problem/1015 #include #define endl "\n"using namespace std;/******** 전역변수 ********/int B[52];int P[52];/******** 함 수 ********/int main(void) { /******** C++ INIT ********/ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); /******** 지역변수 ********/ int input1; int input2; int num = 0; /******** 구 현 ********/ cin >> input1; // B 배열에 숫자 입력 for (int i = 0; i >..