Pagini recente » Cod sursa (job #1681373) | preoni2007_runda3_1112 | Cod sursa (job #2448573) | Cod sursa (job #2894331) | Cod sursa (job #954630)
Cod sursa(job #954630)
#include <fstream>
using namespace std;
int main()
{
ifstream fin( "chatnoir.in" );
ofstream fout( "chatnoir.out" );
int t = 0;
fin >> t;
short n = 0, m = 0, x = 0, y = 0;
for ( int i = 0; i < t; i += 1 )
{
fin >> n >> m >> x >> y;
if ( x < 5 || y < 5 || n - x < 5|| n - y < 5 || m - y < 5 || m - x < 5 )
fout << "DA\n";
else
fout << "NU\n";
}
}