Submission #149590

# Submission time Handle Problem Language Result Execution time Memory
149590 2019-09-01T06:47:52 Z (대충 적당한 팀명)(#3621, rose0310, cos18, baikdohyup) Crosses on the Grid (FXCUP4_cross) C++17
8 / 100
87 ms 3688 KB
#include "cross.h"

long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
	int N = I.size();
	long long maxsize = 0;
	for(int i=0;i<N;i++){
		long long now = (long long)O[i]*(long long)O[i] - ((long long)O[i]-(long long)I[i])*((long long)O[i]-(long long)I[i]);
		maxsize = (maxsize>now)?maxsize:now;
	}
	return maxsize;
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 5 ms 384 KB Output is correct
3 Correct 5 ms 384 KB Output is correct
4 Correct 6 ms 384 KB Output is correct
5 Correct 12 ms 640 KB Output is correct
6 Correct 84 ms 3688 KB Output is correct
7 Correct 87 ms 3564 KB Output is correct
8 Correct 86 ms 3684 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 5 ms 384 KB Output is correct
3 Correct 5 ms 384 KB Output is correct
4 Correct 6 ms 384 KB Output is correct
5 Correct 12 ms 640 KB Output is correct
6 Correct 84 ms 3688 KB Output is correct
7 Correct 87 ms 3564 KB Output is correct
8 Correct 86 ms 3684 KB Output is correct
9 Incorrect 5 ms 384 KB Output isn't correct
10 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 5 ms 384 KB Output is correct
3 Correct 5 ms 384 KB Output is correct
4 Correct 6 ms 384 KB Output is correct
5 Correct 12 ms 640 KB Output is correct
6 Correct 84 ms 3688 KB Output is correct
7 Correct 87 ms 3564 KB Output is correct
8 Correct 86 ms 3684 KB Output is correct
9 Incorrect 5 ms 384 KB Output isn't correct
10 Halted 0 ms 0 KB -