My issue
include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while (t–) {
int a, b, c, d, k;
cin >> a >> b >> c >> d >> k;
int dist = abs(a - c) + abs(b - d);
if (k >= dist && k % 2 == dist % 2)
cout << “YES\n”;
else
cout << “NO\n”;
}
return 0;
}
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
}
Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP301/problems/MEANMEDIAN