水题直接上代码:
#include<iostream> #include<algorithm> using namespace std; int main() { int n; cin>>n; while(n--) { string s; int x,y; cin>>s>>x>>y; if(x>=15&&x<=20&&y>=50&&y<=70)continue; else cout<<s<<endl; } return 0; }