백준 6159번1 [BOJ / C++] 6519번 : 코스튬 파티 문제 It's Halloween! Farmer John is taking the cows to a costume party, but unfortunately he only has one costume. The costume fits precisely two cows with a length of S (1 input; cow.push_back(input); } sort(cow.begin(), cow.end()); int ans = 0; for(int i = 0; i < cow.size(); i++) { for(int j = i + 1; j < cow.size(); j++) { if(cow[i] + cow[j] 2023. 7. 13. 이전 1 다음