답안 #150858

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
150858 2019-09-01T08:59:56 Z 모현보유국(#3693, jhnah917, stonejjun03, ahgus89) 십자가 놓기 (FXCUP4_cross) C++17
8 / 100
93 ms 3688 KB
#include "cross.h"
using namespace std;
long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
	long long n = I.size();
	long long i, ret=0;
	for(i=0;i<n;i++) ret=max(ret, (long long)O[i]*I[i]*2-(long long)I[i]*I[i]);
	return ret;
}
# 결과 실행 시간 메모리 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 10 ms 588 KB Output is correct
6 Correct 84 ms 3560 KB Output is correct
7 Correct 84 ms 3688 KB Output is correct
8 Correct 93 ms 3688 KB Output is correct
# 결과 실행 시간 메모리 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 10 ms 588 KB Output is correct
6 Correct 84 ms 3560 KB Output is correct
7 Correct 84 ms 3688 KB Output is correct
8 Correct 93 ms 3688 KB Output is correct
9 Incorrect 5 ms 304 KB Output isn't correct
10 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 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 10 ms 588 KB Output is correct
6 Correct 84 ms 3560 KB Output is correct
7 Correct 84 ms 3688 KB Output is correct
8 Correct 93 ms 3688 KB Output is correct
9 Incorrect 5 ms 304 KB Output isn't correct
10 Halted 0 ms 0 KB -