https://www.acmicpc.net/problem/1874 제출 코드(개선 전)#include #include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; vector v(n); stack s; vector res; for (int i = 0; i > v[i]; int pnt = 1; for (int i = 0; i pnt) { res.push_back('+'); s.push(pnt); pnt++; }..