Cod sursa(job #962878)

Utilizator vlad2309pascariu vlad vlad2309 Data 15 iunie 2013 20:56:45
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include<fstream>
using namespace std;
ifstream f("fructe.in");
ofstream g("fructe.out");
int p,b,t,i;
int main()
{
    f>>t;
    for(i=1;i<=t;++i)
    {
        f>>p>>b;
        g<<b%2<<"\n";
    }
    g.close();
    return 0;
}