Submission #583855

#TimeUsernameProblemLanguageResultExecution timeMemory
583855MilosMilutinovicEsej (COCI15_esej)C++14
0 / 80
45 ms25736 KiB
/** * author: wxhtzdy * created: 26.06.2022 12:23:35 **/ #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int a, b; cin >> a >> b; vector<vector<char>> s; for (char i = 'a'; i <= 'z'; i++) { for (char j = 'a'; j <= 'z'; j++) { for (char k = 'a'; k <= 'z'; k++) { for (char p = 'a'; p <= 'z'; p++) { s.push_back({i, j, k, p}); } } } } function<void(vector<char>)> Print = [&](vector<char> c) { for (int i = 0; i < 4; i++) { cout << c[i]; } cout << '\n'; }; while (a--) { Print(s.back()); s.pop_back(); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...