17952 과제는 끝나지 않아! 문제풀이 #include #include using namespace std; void fast_io(void) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int main() { fast_io(); int n, res = 0; stack s; cin >> n; while (n--) { bool num; cin >> num; if (num) //1일때 { int a, b; cin >> a >> b; //점수 소요시간 s.push(make_pair(a, b)); } if (!s.empty()) { s.top().second--; if (s.top().second == 0)//다했으면 이전 과제 {..