# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1038687 | vjudge1 | Esej (COCI15_esej) | C++17 | 134 ms | 1948 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int const N=2e5+5;
int const mod=1e9+7;
int A,B;
int cnt=0;
void fun(string s){
if(cnt==B||s.length()>15)
return;
cnt++;
cout<<s<<' ';
for (int i = 'a'; i <='z'; ++i)
fun(s+char(i));
}
int main(){
cin>>A>>B;
fun("a");
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |