Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- typedef long long LL;
- typedef pair<int, int> PII;
- typedef vector<int> VI;
- #define MP make_pair
- #define PB push_back
- #define X first
- #define Y second
- #define FOR(i, a, b) for(int i = (a); i < (b); ++i)
- #define RFOR(i, b, a) for(int i = (b) - 1; i >= (a); --i)
- #define ITER(it, a) for(__typeof(a.begin()) it = a.begin(); it != a.end(); ++it)
- #define ALL(a) a.begin(), a.end()
- #define SZ(a) (int)((a).size())
- #define FILL(a, value) memset(a, value, sizeof(a))
- #define debug(a) cout << #a << " = " << a << endl;
- const double PI = acos(-1.0);
- const LL INF = 1e9;
- const LL LINF = INF * INF;
- mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
- int main()
- {
- ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
- //freopen("In.txt", "r", stdin);
- //freopen("Out.txt", "w", stdout);
- int n;
- cin >> n;
- VI a(n);
- for(auto& i: a) cin >> i;
- if (n == 2 && a[0] == a[1])
- {
- cout << "Zenyk\n";
- return 0;
- }
- cout << "Marichka\n";
- int mn = min(a[0], a[1]);
- FOR(i, 0, 2)
- cout << a[i] - mn << ' ';
- FOR(i, 2, n)
- cout << a[i] << ' ';
- cout << '\n';
- cerr << "Time elapsed: " << clock() / (double)CLOCKS_PER_SEC << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement