Submission #832365

# Submission time Handle Problem Language Result Execution time Memory
832365 2023-08-21T09:44:02 Z Liudas Crosses on the Grid (FXCUP4_cross) C++17
0 / 100
0 ms 304 KB
#include <iostream>
#include <vector>
#include <set>
using namespace std;
struct cross{
    int i, o;
    long long s;
};
int SelectCross(int K, vector<int> I, vector<int> O){
    int N = I.size();
    vector<cross> arr(N);
    for(int i = 0; i < N;  i++){
        arr[i] = {I[i], O[i], 1ll * I[i] * O[i] * 2 - 1ll * I[i] * I[i]};
    }
    return arr[0].s;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 304 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 304 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 304 KB Output isn't correct
2 Halted 0 ms 0 KB -