Cod sursa(job #2273913)

Utilizator RazvanCostinRazvan Costin RazvanCostin Data 1 noiembrie 2018 09:49:07
Problema Fructe Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.3 kb
#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    ifstream fin("fructe.in");
    int t;
    cin>>t;
    int p,b;
    cin>>p>>b;
    ofstream fout("fructe.out");
    if(b%2==0)
        cout<<p<<endl;
    else if(b%2!=0)
        cout<<b<<endl;

    return 0;
}