作者:天使犯罪de快乐 | 来源:互联网 | 2024-09-28 08:33
水题。。main.cppPATA1121CreatedbyPhoenixon2018224.Copyright©2018年Phoenix.Allrightsreserve
水题。。
//
// main.cpp
// PATA1121
//
// Created by Phoenix on 2018/2/24.
// Copyright © 2018年 Phoenix. All rights reserved.
//#include
#include
#include
using namespace std;
const int maxn = 100010;
int couple[maxn], exist[maxn] = {0};
bool flag[maxn] = {false};int main(int argc, const char * argv[]) {fill(couple, couple + maxn, -1);int n, m;scanf("%d", &n);for(int i = 0; i }