문자열#정렬#대니스#백준#1181번#단어 정렬#C++#cpp1 백준 1181번 : 단어 정렬 [C++] 주소 : https://www.acmicpc.net/problem/1181 1181번: 단어 정렬 첫째 줄에 단어의 개수 N이 주어진다. (1 ≤ N ≤ 20,000) 둘째 줄부터 N개의 줄에 걸쳐 알파벳 소문자로 이루어진 단어가 한 줄에 하나씩 주어진다. 주어지는 문자열의 길이는 50을 넘지 않는다. www.acmicpc.net 소스 코드 : #define _CRT_SECURE_NO_WARNINGS #include #include #include #include using namespace std; bool compare(string a, string b) { int i = 0; if (a.length() == b.length()) { for (int i = 0; i < a.length(); i++) .. 2022. 8. 5. 이전 1 다음