제출 #242441

#제출 시각아이디문제언어결과실행 시간메모리
242441joseacaz곤돌라 (IOI14_gondola)C++17
20 / 100
26 ms2424 KiB
#include "gondola.h" #include <bits/stdc++.h> #define pb push_back #define all(x) x.begin(), x.end() using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef pair<int, int> pii; typedef pair<ll, ll> pll; vi input; int valid(int N, int inputSeq[]) { for(int i = 0; i < N; i++) input.pb(inputSeq[i]); for(int i = 0; i < N; i++) input.pb(inputSeq[i]); int ans = 0; for(int i = 0; i < 2*N; i++) { if(input[i] == 1) { for(int j = 0; j < N; j++) if(input[i + j] == j + 1) ans++; break; } } return (ans == N); } int replacement(int N, int gondolaSeq[], int replacementSeq[]) { return 0; } int countReplacement(int N, int inputSeq[]) { return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...