제출 #315420

#제출 시각아이디문제언어결과실행 시간메모리
315420jungsnowTable Tennis (info1cup20_tabletennis)C++14
49 / 100
34 ms3960 KiB
#include<bits/stdc++.h> using namespace std; const int N = 155010; int n, k, a[N]; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> n >> k; for (int i = 1; i <= n + k; ++i) { cin >> a[i]; } for (int i = 1; i <= k + 1; ++i) { int sum = a[i] + a[i + n - 1]; for (int j = 2; j <= n; ++j) { if (a[i + j - 1] + a[i + n - j] != sum) goto go; } for (int j = i; j <= i + n - 1; ++j) { cout<<a[j]<<' '; } return 0; go:; } }
#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...