1번#include #include #include using namespace std;// 끝자리가 작은 순으로, 끝자리가 같다면 숫자 자체가 작은 순으로 정렬하는 함수bool custom_sort(int a, int b) { if (a % 10 == b % 10) // 끝자리가 같다면 숫자 자체가 작은 순 return a > N; vector numbers(N); // N개의 정수를 저장할 벡터 // N개의 숫자 입력 for (int i = 0; i > numbers[i]; } // 정렬 sort(numbers.begin(), numbers.end(), custom_sort); // 결과 출력 for (int i..