Cod sursa(job #851175)

Utilizator stoicatheoFlirk Navok stoicatheo Data 9 ianuarie 2013 17:33:57
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.31 kb
#include <iostream>
#include <fstream>
using namespace std;
ifstream ifs("fructe.in");
ofstream ofs("fructe.out");
 
int main(){
    int T;
    ifs>>T;
     
     
    long long int p,b;
    for(int i=0;i<T;i++){
        ifs>>p>>b;
        if(b%2) ofs<<1<<endl;
        else ofs<<0<<endl;
    }
}