# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1150054 | vladilius | Boat (APIO16_boat) | C++20 | 2095 ms | 2304 KiB |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,inline")
#pragma GCC optimize ("unroll-loops")
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define pb push_back
#define ff first
#define ss second
const int mod = 1e9 + 7;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
auto bin_pow = [&](int x, int y){
int out = x, pr = x; y--;
while (y > 0){
if (y & 1){
out = (1LL * out * pr) % mod;
}
pr = (1LL * pr * pr) % mod;
y >>= 1;
}
return out;
};
auto inv = [&](int x){
if (x < 0) x += mod;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |