vector

입출력        풀이 #include#include#includeusing namespace std;int main(){ ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.tie(nullptr); int ACnt, BCnt; cin >> ACnt >> BCnt; int a, b; set s; vector v; for (int i = 0; i > a; s.insert(a); v.push_back(a); } for (int i = 0; i > b; s.insert(b); v.push_back(b); } int result = 0; res..
입출력   풀이 #include #include #include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int cnt; cin >> cnt; string word; int key; vector> words; for (int i = 0; i > word; key = word.length(); words.push_back(make_pair(key, word)); } sort(words.begin(), words.end()); words.erase(uniq..
연Gennie
'vector' 태그의 글 목록