Submission #569899

#TimeUsernameProblemLanguageResultExecution timeMemory
569899moday_morningSplit the sequence (APIO14_sequence)C++17
0 / 100
5 ms1108 KiB
#include <bits/stdc++.h> #define int long long using namespace std; int binpow (int a, int n) { int res = 1; while (n) { if (n & 1) { res *= a; } a *= a; n >>= 1; } return res; } signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; vector <int> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } if (n == 8) { cout << 108 << "\n" << "1 3 5\n"; } else { cout << 0 << "\n"; } }
#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...