Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma GCC optimize("O3")
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define double long double
- #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0)
- #define F first
- #define S second
- signed main()
- {
- _FastIO;
- /*
- 1974 alinirmi?
- sortlasaq (balacadan boyuye siralasaq)
- 1479
- ededleri massiv seklinde girekki rahat sortlayaq
- */
- int a[4]; // en azi 4 olculu massiv goturmeliyik
- for(int i = 0; i < 4; i++){
- cin >> a[i];
- }
- // ya da cin >> a[0] >> a[1] >> a[2] >> a[3];
- sort(a , a + 4);
- // indi en balaca element a[0] sonra a[1] sonra a[2] , en boyuk ise a[3]
- // a[0] == neye ve a[1] == neye ve ... bele bele yazib 1479 beraber oldugunu yoxla ifle
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement