This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int N, M;
vector<int> x;
vector<int> y;
int main()
{
ios_base::sync_with_stdio(false);
cin >> N >> M;
for (int i = 0; i < 4; i ++)
{
int X,Y;
cin >> X >> Y;
x.push_back(X);
y.push_back(Y);
}
sort(y.begin(), y.end());
if ((y[3]-y[0])%2)
{
cout << 0;
return 0;
}
cout << (M/2)*2;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |