Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. typedef long long LL;
  5. typedef pair<int, int> PII;
  6. typedef vector<int> VI;
  7. #define MP make_pair
  8. #define PB push_back
  9. #define X first
  10. #define Y second
  11.  
  12. #define FOR(i, a, b) for(int i = (a); i < (b); ++i)
  13. #define RFOR(i, b, a) for(int i = (b) - 1; i >= (a); --i)
  14. #define ITER(it, a) for(__typeof(a.begin()) it = a.begin(); it != a.end(); ++it)
  15. #define ALL(a) a.begin(), a.end()
  16. #define SZ(a) (int)((a).size())
  17. #define FILL(a, value) memset(a, value, sizeof(a))
  18. #define debug(a) cout << #a << " = " << a << endl;
  19.  
  20. const double PI = acos(-1.0);
  21. const LL INF = 1e9;
  22. const LL LINF = INF * INF;
  23. mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  24.  
  25. int main()
  26. {
  27. ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  28. //freopen("In.txt", "r", stdin);
  29. //freopen("Out.txt", "w", stdout);
  30.  
  31. int n;
  32. cin >> n;
  33. VI a(n);
  34. for(auto& i: a) cin >> i;
  35. if (n == 2 && a[0] == a[1])
  36. {
  37. cout << "Zenyk\n";
  38. return 0;
  39. }
  40.  
  41. cout << "Marichka\n";
  42. int mn = min(a[0], a[1]);
  43. FOR(i, 0, 2)
  44. cout << a[i] - mn << ' ';
  45. FOR(i, 2, n)
  46. cout << a[i] << ' ';
  47. cout << '\n';
  48. cerr << "Time elapsed: " << clock() / (double)CLOCKS_PER_SEC << endl;
  49. return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement