# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1036714 | model_code | Bring Down the Grading Server (CEOI23_gradingserver) | C++17 | 790 ms | 23020 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll S;
struct State{
ll a1, d1, a2, d2;
bool operator==(const State& other) const {return a1==other.a1 && a2 == other.a2 && d1 == other.d1 && d2 == other.d2;}
};
State sab(State state){
return {state.a2, max(0ll, state.d2 - 1), state.a1, state.d1};
}
State att(State state){
return {state.a2 - (state.a1 - S*state.d2), state.d2, state.a1, state.d1};
}
vector<vector<vector<int>>> dp;
bool half_sab_win(State state){
ll sab_cnt = state.d2 / 2;
state.a1 -= sab_cnt * (state.a2 - S*state.d1);
state.d2 -= sab_cnt;
state = att(state);
state.a1 -= state.d2 * (state.a2 - S*state.d1);
state.d2 = 0;
state = att(state);
ll alpha1 = state.a1 - S*state.d2;
# | 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... |
# | 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... |