文章
1
粉丝
67
获赞
0
访问
2.7k
#include<iostream>
#include<algorithm>
using namespace std;
const int MAXN = 100;
struct Node{
int add;
int size;
bool flag = true;
}nodes[MAXN];
int main(){
freopen("in.txt","r",stdin);
int n;
cin >> n;
for (int i = 0; i < n; i++){
cin >> nodes[i].add >> nodes[i].size;
}
bool leave = false;
int loc = 0;
int length = n;
int newsize = 0;
int delloc = -1;
while (true){
cin >> newsize;//cin >> newsize
if(newsize == -1){
for(int i = 0; i < n; i++){//打印剩余...
登录后发布评论
暂无评论,来抢沙发