勿信本题数据范围约定!!
查看原帖
勿信本题数据范围约定!!
925716
STAR_czy楼主2024/1/12 17:27

rt,交上只有1个点符合要求

#include<bits/stdc++.h>
using namespace std;

int main(){
	int n,m,a,b,c,x,k;
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	cin>>n>>m,k=n;
	while(n--) cin>>a>>b>>c;
	while(m--){
		cin>>x,cin>>a>>b>>c;
		if(a<1||a>k) while(1);
		if(b<1||b>k) while(1);
		if(c<1||c>k) while(1);
	}
	return 0;
}
2024/1/12 17:27
加载中...