Submission #994775

# Submission time Handle Problem Language Result Execution time Memory
994775 2024-06-08T05:35:47 Z thelegendary08 Hexagonal Territory (APIO21_hexagon) C++14
0 / 100
166 ms 412 KB
#include "hexagon.h"
#include<bits/stdc++.h>
#define ll long long int

using namespace std;
int draw_territory(int N, int A, int B, std::vector<int> D, std::vector<int> L) {
    ll n = L[0] + 1;
    ll sz = n * (n + 1)/2;
    ll sdist = 0;
    for(int i = 0;i<n;i++){
    	sdist += i * (i + 1);
    }
	return sz * A + sdist * B;
}
# Verdict Execution time Memory Grader output
1 Incorrect 163 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 163 ms 412 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 166 ms 412 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 164 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -