正文
增加 2 行删除 2 行
108 行未改动全部展开1091101111121131141151161179 行未改动12712812913013113213313413529 行未改动108 行未改动全部展开qgreater.push(i);qless.push(i);}}//"最优情况"int maxn=0,ans=0;while(!qgreater.empty()){int x=qgreater.top();qgreater.pop();9 行未改动}}}printf("%d\n",ans);//"最劣情况"maxn=0,ans=0;while(!qless.empty()){int x=qless.top();if(x>maxn){29 行未改动108 行未改动全部展开1091101111121131141151161179 行未改动12712812913013113213313413529 行未改动108 行未改动全部展开qgreater.push(i);qless.push(i);}}//"最优情况"int maxn=0,ans=0;while(!qgreater.empty()){int x=qgreater.top();qgreater.pop();9 行未改动}}}printf("%d\n",ans);//"最劣情况"maxn=0,ans=0;while(!qless.empty()){int x=qless.top();if(x>maxn){29 行未改动