제출 #1173291

#제출 시각아이디문제언어결과실행 시간메모리
1173291nuutsnoyntonEsej (COCI15_esej)C++20
16 / 80
8 ms4536 KiB
#include<bits/stdc++.h> using namespace std; using ll = long long; int main() { ll n, m, s, r, x, y, i, j, ans, t; cin >> x >> y; vector < string> v; for ( i = 0; i < 26; i ++) { string str = string(1,'a' + i); v.push_back(str); } r = 0; while(v.size() < x) { string str = v[r]; for (j =0; j < 26; j ++) { string str1 = str + char(j + 'a'); v.push_back(str1); } } for (i = 0; i < x; i ++) { cout << v[i] << " "; } }
#Verdict Execution timeMemoryGrader output
Fetching results...