Cod sursa(job #1994979)

Utilizator ajeccAjechiloae Eugen ajecc Data 26 iunie 2017 19:00:39
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 1.58 kb
#include <bits/stdc++.h>
#define for0(i, n) for(int i = 0; i < n; i++)
#define for1(i, n) for(int i = 1; i <= n; i++)
#define pb push_back
#define mp make_pair
#define all(v) v.begin(), v.end()
#define V vector<int>
#define VP vector<pair<int, int> >
#define clr(A, x) memset(A, x, sizeof(A))
#define cpy(A, B) memcpy(A, B, sizeof(B))
#define g(s) getline(cin, s) ///ai grija la fin/cin ///
#define FASTIO ios_base::sync_with_stdio(0)
using namespace std;
ifstream fin("adunare.in");
ofstream fout("adunare.out");
#if defined(_WIN32) || defined(WIN32) || defined (__WIN32__) || defined(_WIN64) || defined(WIN64) || defined (__WIN64__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__BORLANDC__)
#include <windows.h>
#define print(x) PRINT(x, #x)
template<typename T> inline const void PRINT(T VARIABLE, string NAME)
{
    #ifndef ONLINE_JUDGE
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    SetConsoleTextAttribute(hConsole, 10);
    cerr << NAME << " = " << VARIABLE << endl;
    SetConsoleTextAttribute(hConsole, 7);
    #endif
}
#else
#define print(x) 0
#endif
typedef long long ll;
typedef unsigned long long ull;
const ll INFLL = 2 * (ll)1e18 + 100;
const int INFINT = 2 * (int)1e9 + 100;
void die()
{
    cout << "-1";
    exit(0);
}
const int NMAX = 1e6 + 5;
const int MOD = 1e9 + 7; /// careful here (7 or 9, 66.. etc)
const double PI = atan(1) * 4;
const double EPS = 1e-12;


int main()
{
    FASTIO;
    int a, b;
    string test = "hello world!";
    print(test);
    fin >> a >> b;
    fout << a + b;




    return 0;
}