# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
132263 | amoo_safar | Sailing Race (CEOI12_race) | C++14 | 2081 ms | 2756 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
const int Maxn = 5e2 + 10;
const int Inf = 10000;
bool G[Maxn][Maxn];
int n, dp[Maxn][Maxn][2], dp2[Maxn], dp3[Maxn];
int nxt(int y){
return (y == n - 1 ? 0 : y + 1);
}
int prev(int y){
return (y == 0 ? n - 1 : y- 1);
}
int main(){
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int k;
cin >> n >> k;
int adj;
for(int i = 0; i < n; i++){
while(true){
cin >> adj;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |