Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int n,i,j,k;
- scanf("%lld",&n);
- long long int arr[n+5],mx=0,cnt=0;
- for(i=0;i<n;i++)
- {
- scanf("%lld",&arr[i]);
- if(arr[i]>=mx)
- {
- mx=arr[i];
- cnt++;
- }
- }
- if(cnt>1)
- printf("The world is doomed! :(\n");
- else
- printf("%lld\n",mx);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement