Submission #718617

# Submission time Handle Problem Language Result Execution time Memory
718617 2023-04-04T12:22:16 Z lam Hexagonal Territory (APIO21_hexagon) C++14
0 / 100
2 ms 340 KB
#include "hexagon.h"
#include <bits/stdc++.h>
#include <vector>
#define ll long long
using namespace std;
const ll mod = 1e9 + 7;
ll ppow(ll x, ll y)
{
    ll temp = 1LL;
    while (y>0)
    {
        if (y&1) temp=temp*x%mod;
        x=x*x%mod;
        y/=2;
    }
    return temp;
}
int32_t draw_territory(int32_t N, int32_t A, int32_t B, std::vector<int32_t> D, std::vector<int32_t> L) {
    ll dist = L[0];
//    ll ans = dist*(dist+2)%mod*(dist+1)%mod*ppow(3LL,mod-2)%mod;
    assert(L[0]==L[1]&&L[1]==L[2]);
    ll ans = (dist+1)*L[0]%mod;
  return int(ans);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 340 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 340 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 340 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 340 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -