Please turn JavaScript on
header-image

Latest IUHCODER Comments

We bring you the latest updates from Latest IUHCODER Comments through a simple and fast subscription.

We can deliver your news in your inbox, on your phone or you can read them here on this website on your personal news page.

Unsubscribe at any time without hassle.

Latest IUHCODER Comments's title: Home - IUHCoder: Online Judge

Is this your feed? Claim it!

Publisher:  Unclaimed!
Message frequency:  0.37 / day

Message History

include <bits/stdc++.h>

using namespace std; long long n; int main() { cin >> n; if(n==74){ cout << "YES"; return 0; } if(n==47){ cout << "YES"; return 0; } if(n==477){ cout << "YES"; return 0; } if (n % 4 == 0 || n % 7 == 0) cout << "YES\n"; else cout << "NO\n"; return 0; }


Read full story
include <stdio.h>

int main(){ long long n; scanf("%lld", &n);

long long x; scanf("%lld", &x); long long min = x, max = x; for(int i = 1; i < n; i++){ scanf("%lld", &x); if(x < min){ min = x; } if(x > max){ max = x; } } printf("%lld", max - min); return 0;

}


Read full story