# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
925516 | NK_ | Zapina (COCI20_zapina) | C++17 | 289 ms | 600 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// Success consists of going from failure to failure without loss of enthusiasm
#include <bits/stdc++.h>
using namespace std;
#define nl '\n'
#define pb push_back
template<class T> using V = vector<T>;
using vi = V<int>;
const int MOD = 1e9 + 7;
int main() {
cin.tie(0)->sync_with_stdio(0);
auto add = [&](int &x, int y) {
x += y; if (x >= MOD) x -= MOD;
};
auto mul = [&](int &x, int y) {
x = (x * 1LL * y) % MOD;
};
auto POW = [&](int a, int p) {
int ans = 1;
for(; p; p /= 2, mul(a, a)) if (p & 1) mul(ans, a);
return ans;
};
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |