Submission #149707

# Submission time Handle Problem Language Result Execution time Memory
149707 2019-09-01T07:00:07 Z 티셔츠 콜렉터(#3632, yoni, jisunchae, jsg1504) Crosses on the Grid (FXCUP4_cross) C++17
8 / 100
85 ms 3692 KB
#include "cross.h"

long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
	int N = I.size();
	if (K == 1) {
		long long max = 0;
		for (int i=0; i<N; i++) {
			long long R = O[i];
			long long r = O[i]-I[i];
			long long rec = R*R-r*r;
			if (rec > max) {
				max = rec;
			}
		}
		return max;
	}
	return 0;
}
# 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 6 ms 384 KB Output is correct
4 Correct 5 ms 128 KB Output is correct
5 Correct 10 ms 640 KB Output is correct
6 Correct 83 ms 3692 KB Output is correct
7 Correct 85 ms 3692 KB Output is correct
8 Correct 85 ms 3688 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 6 ms 384 KB Output is correct
4 Correct 5 ms 128 KB Output is correct
5 Correct 10 ms 640 KB Output is correct
6 Correct 83 ms 3692 KB Output is correct
7 Correct 85 ms 3692 KB Output is correct
8 Correct 85 ms 3688 KB Output is correct
9 Incorrect 6 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 6 ms 384 KB Output is correct
4 Correct 5 ms 128 KB Output is correct
5 Correct 10 ms 640 KB Output is correct
6 Correct 83 ms 3692 KB Output is correct
7 Correct 85 ms 3692 KB Output is correct
8 Correct 85 ms 3688 KB Output is correct
9 Incorrect 6 ms 384 KB Output isn't correct
10 Halted 0 ms 0 KB -