Cod sursa(job #2917611)

Utilizator UnknownPercentageBuca Mihnea-Vicentiu UnknownPercentage Data 5 august 2022 22:25:23
Problema A+B Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 1.56 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 <typename T, typename... Args> auto vt(size_t n, Args&&... args) {
    if constexpr(sizeof...(args) == 1) {
        return vector <T>(n, args...);
    } else {
        auto a = vt <T>(args...);
        return vector <decltype(a)>(n, a);
    }
}

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() {
    auto dp = vt <int>(3, 0); re(dp);
    wr(dp[1] + dp[2]);
}

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

    Open("adunare");

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

    return 0;
}