Submission #339910

#TimeUsernameProblemLanguageResultExecution timeMemory
339910DysonSphereEsej (COCI15_esej)C++14
80 / 80
12 ms1900 KiB
#include<bits/stdc++.h>
using namespace std;

string s = "aaaaaaaaaaaaaaa";
int a, b, ind = 0;
int main(){
	cin>>a>>b;
	while(ind < a || ind < b/2 + 1){
		cout<<s<<" ";
		for(int i=0;i<15;i++){
			if(s[i] < 'z'){
				s[i]++;
				break;
			}
			s[i] = 'a';
		}
		ind++;
	}
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...