#include "iostream"
#include "stdio.h"
#include <vector>
#include <cstring>
#include <algorithm>
#include <string>
#include <string.h>
#include <stack>
#include <queue>
#include <ctype.h>
#include <functional>
#include <math.h>
using namespace std;
//1448
int mark[101];
struct E{
int nt;
};
vector<E> v[101];
int n,m,a,b;
E tmp;
int main(){
//freopen("input.txt","r",stdin);
while(cin>>n>>m){
if(n==0 && m==0) break;
memset(mark,0,sizeof(mark));
for(int i=0;i<n;i++) v[i].clear();
while(m--){
cin>>a>>b;
tmp.nt=b;
v[a].push_bac
题目1448:Legal or Not
最新推荐文章于 2021-02-11 17:44:13 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)