제출 #1041200

#제출 시각아이디문제언어결과실행 시간메모리
1041200vjudge1Esej (COCI15_esej)C++17
80 / 80
6 ms1628 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
	int a,b;
	cin>>a>>b;
	for (int ct=0;ct<max(a,b/2);ct++)
	{
		string s;
		int val=ct;
		for (int j=0;j<11;j++)
		{
			int x=val%3;
			s+=char('a'+x);
			val/=3;
		}
		cout<<s<<' ';
	}
	cout<<endl;
	
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...