# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
861606 | 2023-10-16T14:48:30 Z | faustaadp | 가장 긴 여행 (IOI23_longesttrip) | C++17 | 699 ms | 344 KB |
#include "longesttrip.h" #include<bits/stdc++.h> typedef long long ll; using namespace std; #define pb push_back std::vector<int> longest_trip(int N, int D) { vector<int> ret; vector<ll> cal; for(ll i = 0; i < N; i++) ret.pb(i); for(ll i = 0; i < N; i++) for(ll j = i + 1; j < N; j++) { vector<int> A;A.pb(i); vector<int> B;B.pb(j); bool isi = are_connected(A, B); } return ret; // ll mul = 1; // if(N % 2 == 0) // { // vector<int> A;A.pb(0); // vector<int> B;B.pb(1); // bool isi = are_connected(A, B); // if(!isi) // swap(cal[1], cal[2]); // ret.pb(cal[0]); // ret.pb(cal[1]); // } // else // ret.pb(cal[0]); // for(ll i = mul; i + 1 < N; i += 2) // { // ll now = ret.back(); // vector<int> A;A.pb(now); // vector<int> B;A.pb(cal[i]); // bool isi = are_connected(A, B); // if() // } // return ret; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Incorrect |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 344 KB | Output is correct |
2 | Correct | 24 ms | 344 KB | Output is correct |
3 | Correct | 122 ms | 344 KB | Output is correct |
4 | Correct | 308 ms | 344 KB | Output is correct |
5 | Correct | 691 ms | 344 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 344 KB | Output is correct |
2 | Correct | 19 ms | 344 KB | Output is correct |
3 | Correct | 122 ms | 344 KB | Output is correct |
4 | Correct | 326 ms | 344 KB | Output is correct |
5 | Correct | 688 ms | 344 KB | Output is correct |
6 | Incorrect | 0 ms | 344 KB | Incorrect |
7 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 344 KB | Output is correct |
2 | Correct | 18 ms | 344 KB | Output is correct |
3 | Correct | 114 ms | 344 KB | Output is correct |
4 | Correct | 338 ms | 344 KB | Output is correct |
5 | Correct | 694 ms | 344 KB | Output is correct |
6 | Incorrect | 0 ms | 344 KB | Incorrect |
7 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 344 KB | Output is correct |
2 | Correct | 21 ms | 344 KB | Output is correct |
3 | Partially correct | 122 ms | 344 KB | Output is partially correct |
4 | Partially correct | 322 ms | 344 KB | Output is partially correct |
5 | Partially correct | 699 ms | 344 KB | Output is partially correct |
6 | Incorrect | 0 ms | 344 KB | Incorrect |
7 | Halted | 0 ms | 0 KB | - |