답안 #113613

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
113613 2019-05-27T06:18:35 Z imsifile 십자가 놓기 (FXCUP4_cross) C++17
8 / 100
66 ms 3564 KB
#include "cross.h"
using namespace std;

typedef long long lld;

lld SelectCross(int N, int K, vector<int> I, vector<int> O) {
	lld mx=0;
	for(int i=0; i<N; i++){
		if(mx < (lld)I[i]*(2*O[i]-I[i])) mx = (lld)I[i]*(2*O[i]-I[i]);
	}
	return mx;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 384 KB Output is correct
2 Correct 1 ms 256 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 2 ms 256 KB Output is correct
5 Correct 5 ms 512 KB Output is correct
6 Correct 64 ms 3564 KB Output is correct
7 Correct 66 ms 3560 KB Output is correct
8 Correct 65 ms 3564 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 384 KB Output is correct
2 Correct 1 ms 256 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 2 ms 256 KB Output is correct
5 Correct 5 ms 512 KB Output is correct
6 Correct 64 ms 3564 KB Output is correct
7 Correct 66 ms 3560 KB Output is correct
8 Correct 65 ms 3564 KB Output is correct
9 Incorrect 2 ms 384 KB Output isn't correct
10 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 384 KB Output is correct
2 Correct 1 ms 256 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 2 ms 256 KB Output is correct
5 Correct 5 ms 512 KB Output is correct
6 Correct 64 ms 3564 KB Output is correct
7 Correct 66 ms 3560 KB Output is correct
8 Correct 65 ms 3564 KB Output is correct
9 Incorrect 2 ms 384 KB Output isn't correct
10 Halted 0 ms 0 KB -