[백준/BOJ] 1755번 - 숫자 놀이 (C++)
문제 링크 코드 #include using namespace std; int main(void) { ios::sync_with_stdio(0); cin.tie(0); vector str = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; vector v; string s; int M, N, i; cin >> M >> N; for (i = M; i = 10) s = str[i/10] + ' ' + str[i%10]; else s = str[i]; v.push_back(make_pair(s, i)); } sort(v.begin(), v.end()); for (i = 0; i < v.size(); i++) {..
2022. 3. 22.