Submission #1002711

# Submission time Handle Problem Language Result Execution time Memory
1002711 2024-06-19T18:31:05 Z gabistroeh Izvanzemaljci (COI21_izvanzemaljci) C++14
0 / 100
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;

int inf = 3*(1e9 + 10);

int main(){
	int n, k;
	cin >> n >> k;
	int maxx = 0, maxy = 0, minx = inf, miny = inf;
	for(int i=0; i<n; i++){
		int x, y;
		cin >> x >> y;
		minx = min(x, minx);
		miny = min(y, miny);
		maxx = max(x, maxx);
		maxy = max(y, maxy);
	}

	int l = max(maxx-minx, maxy-miny);
	cout << minx << " " << miny << " " << l;
}

Compilation message

izvanzemaljci.cpp:4:12: warning: overflow in conversion from 'double' to 'int' changes value from '3.00000003e+9' to '2147483647' [-Woverflow]
    4 | int inf = 3*(1e9 + 10);
      |           ~^~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -