Submission #339910

# Submission time Handle Problem Language Result Execution time Memory
339910 2020-12-26T10:48:10 Z DysonSphere Esej (COCI15_esej) C++14
80 / 80
12 ms 1900 KB
#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 time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 2 ms 492 KB Output is correct
7 Correct 7 ms 1132 KB Output is correct
8 Correct 10 ms 1644 KB Output is correct
9 Correct 12 ms 1900 KB Output is correct
10 Correct 7 ms 1132 KB Output is correct