Cod sursa(job #2917599)

Utilizator UnknownPercentageBuca Mihnea-Vicentiu UnknownPercentage Data 5 august 2022 21:20:32
Problema A+B Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 1.51 kb
#include <bits/stdc++.h>

#define pb push_back
#define em emplace
#define emb emplace_back

#define all(x) x.begin() + 1, x.end()

using namespace std;

using ll = long long;
using ld = long double;
using ull = unsigned long long;

using pii = pair <int, int>;
using pll = pair <ll, ll>;

template<class... Args> auto create(size_t n, Args&&... args) {
    if constexpr(sizeof...(args) == 1) 
        return vector(n, args...);
}

void re() {
}

template <typename fir, typename ...sec> void re(fir &x, sec&... y);
template <typename fir, typename ...sec> void re(vector <fir>& x, sec&... y);

template <typename fir, typename ...sec> void re(fir &x, sec&... y) {
    cin >> x;
    re(y...);
}

template <typename fir, typename ...sec> void re(vector <fir>& x, sec&... y) {
    for(int i = 1;i < x.size();i++)
        re(x[i]);
    re(y...);
}

void wr() {
}

template <typename fir, typename ...sec> void wr(fir x, sec... y) {
    cout << x;
    wr(y...);
}

inline void Open(const string Name) {
    #ifndef ONLINE_JUDGE
        (void)!freopen((Name + ".in").c_str(), "r", stdin);
        (void)!freopen((Name + ".out").c_str(), "w", stdout);
    #endif
}

void solve() {
    pair <int, int> a[] = {{1, 1}, {1, 1}};
    for(auto& [x, y] : a) {
        cin >> x;
    }
    wr(a[0].first + a[1].first);
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    Open("adunare");

    int t = 1;
    for(;t;t--) {
        solve();
    }

    return 0;
}