Input
The first line of the input contains a single integer n (1 ≤ n ≤ 100) — the number of participants Anton has outscored in this contest . The next n lines describe participants results: the i-th of them consists of a participant handle namei and two integers beforei and afteri ( - 4000 ≤ beforei, afteri ≤ 4000) — participant's rating before and after the contest, respectively. Each handle is a non-empty string, consisting of no more than 10 characters, which might be lowercase and uppercase English letters, digits, characters «_» and «-» characters. It is guaranteed that all handles are distinct.Output
Print «YES» (quotes for clarity), if Anton has performed good in the contest and «NO» (quotes for clarity) otherwise.Example Input
3 Burunduk1 2526 2537 BudAlNik 2084 2214 subscriber 2833 2749 Output YES Input 3 Applejack 2400 2400 Fluttershy 2390 2431 Pinkie_Pie -2500 -2450 Output NONote
In the first sample, Anton has outscored user with handle Burunduk1, whose handle was colored red before the contest and his rating has increased after the contest. In the second sample, Applejack's rating has not increased after the contest, while both Fluttershy's and Pinkie_Pie's handles were not colored red before the contest. /* 很简单的结构体,题目意思是当举出来的人有一个人满足 before》=2400且有增加 则为Good */ #include<stdio.h> struct people { char name[10]; int m,n; }; int main() { struct people a[100]; int i,n,flag=0; scanf("%d",&n); for(i=0;i<n;i++) scanf("%s%d%d",a[i].name,&a[i].n,&a[i].m); for(i=0;i<n;i++) { if(a[i].n>=2400&&a[i].n<a[i].m) { printf("YES\n"); flag=1; break; } } if(flag==0) printf("NO\n"); return 0; }