# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
939581 | LucaIlie | The Xana coup (BOI21_xanadu) | C++17 | 98 ms | 21332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
struct DP {
int dp[2][2];
DP operator+( const DP &b ) const {
DP a = *this;
DP c;
for ( int s = 0; s < 2; s++ ) {
for ( int t = 0; t < 2; t++ )
c.dp[s][t] = INF;
}
for ( int sa = 0; sa < 2; sa++ ) {
for ( int ta = 0; ta < 2; ta++ ) {
for ( int sb = 0; sb < 2; sb++ ) {
for ( int tb = 0; tb < 2; tb++ ) {
if ( sb ^ ta == 1 )
continue;
c.dp[sa ^ tb][ta] = min( c.dp[sa ^ tb][ta], a.dp[sa][ta] + b.dp[sb][tb] );
}
}
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |