Submission #240633

# Submission time Handle Problem Language Result Execution time Memory
240633 2020-06-20T10:17:28 Z GREGOIRELC Hamburg Steak (JOI20_hamburg) C++14
2 / 100
125 ms 384 KB
#include <iostream>

using namespace std;

const int COORD_MAX = 1e9;

int N, K;

int main()
{
	ios::sync_with_stdio(false);

	cin >> N >> K;
	int xBasRect = 0, yBasRect = 0, xHautRect = COORD_MAX + 1, yHautRect = COORD_MAX + 1;
	for(int i = 0; i < N; i++)
	{
		int xBas, yBas, xHaut, yHaut;
		cin >> xBas >> yBas >> xHaut >> yHaut;
		xBasRect = max(xBasRect, xBas);
		yBasRect = max(yBasRect, yBas);
		xHautRect = min(xHaut, xHautRect);
		yHautRect = min(yHaut, yHautRect);
	}
	cout << xBasRect << " " << yBasRect << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 2 ms 384 KB Output is correct
4 Correct 2 ms 384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 2 ms 384 KB Output is correct
4 Correct 2 ms 384 KB Output is correct
5 Correct 99 ms 384 KB Output is correct
6 Correct 93 ms 384 KB Output is correct
7 Correct 125 ms 384 KB Output is correct
8 Correct 94 ms 384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -