Cod sursa(job #2420417)

Utilizator baltoi.teodorTeodor Baltoi baltoi.teodor Data 11 mai 2019 20:41:08
Problema A+B Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.81 kb
#include <bits/stdc++.h>

#define NMAX 100001
#define MOD 100001
#define ff first
#define sd second

using namespace std;

ifstream fin("adunare.in");
ofstream fout("adunare.out");

typedef long long ll;
typedef long double ld;
ll lgput(ll a, ll b)
{
    ll Nr=1;
    while(b)
    {
        while(b%2==0) {a*=a,b/=2;}
        if(b%2) Nr*=a,b--;
    }
    return Nr;
}
ll inv(ll a, ll b)
{
    ll Nr=1;
    b-=2;
    while(b)
    {
        while(b%2==0) {a*=a;a%=MOD;b/=2;}
        if(b%2) Nr*=a,Nr%=MOD,b--;
    }
    return Nr;
}
int dx[]={-1,0,1,0};
int dy[]={0,1,0,-1};


int main()
{
    /*ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    */

    int A,B;
    fin>>A>>B;
    for(int i=1;i<=B;++i)
        A++;
    fout<<A<<"\n";
    return 0;
}