Submission #979429

# Submission time Handle Problem Language Result Execution time Memory
979429 2024-05-10T23:58:38 Z vjudge1 Hexagonal Territory (APIO21_hexagon) C++17
0 / 100
1277 ms 404 KB
#include "hexagon.h"

#include <vector>

int draw_territory(int N, int A, int B,
                   std::vector<int> D, std::vector<int> L) {
    long long ans=0,x=L[0],i=0,mod=1e9+7;
    ans=x*(x+1)/2%mod*A%mod;
    for(;i<x;i++)
        ans=(ans+i*(i+1)%mod*B%mod)%mod;
    return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1261 ms 400 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1247 ms 400 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 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1277 ms 400 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 1247 ms 404 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 -