Cod sursa(job #1773353)
Utilizator | Data | 7 octombrie 2016 19:21:37 | |
---|---|---|---|
Problema | Stramosi | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
#include<bits/stdc++.h>
using namespace std;
ifstream f("tictac.in");
ofstream g("tictac.out");
double n,h,m;
int main()
{
f>>n;
while(n--)
{
f>>h>>m;
if(abs(h-((int(h/30))*30)-m/12)<=0.001)
g<<1;
else g<<0;
g<<'\n';
}
return 0;
}