Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n, i;
- scanf("%d", &n);
- int a[n], b[n];
- for(i = 0; i < n; i++) scanf("%d %d", &a[i], &b[i]);
- for(i = 0; i < n; i++)
- {
- if(a[i] != b[i])
- {
- printf("rated\n");
- return 0;
- }
- }
- for(i = 0; i < n-1; i++)
- {
- if(a[i] < a[i+1])
- {
- printf("unrated\n");
- return 0;
- }
- }
- printf("maybe\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment