結果

問題 No.701 ひとりしりとり
ユーザー aguroshouaguroshou
提出日時 2018-06-15 23:39:52
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 817 bytes
コンパイル時間 557 ms
コンパイル使用メモリ 62,116 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 05:23:03
合計ジャッジ時間 3,028 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include <algorithm>
#include<string>
#include <bitset>
#include <vector>
using namespace std;
int main()
{
	//int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, ans = 0;
	long a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, k = 0, l = 0, ans = 0;
	//cout << LONG_MAX << endl;
	//string s[1001];
	char buffer[33];

	cin >> a;
	b = 0;
	//for ( b = 0; b < a; b++)
	{
		for (c = 97; c < 123; c++)
		{
			for (d = 97; d < 123; d++)
			{
				for (e = 97; e < 123; e++)
				{
					for (f = 97; f < 123; f++)
					{
						printf("a%c%c%c%c%ca\n", c, d, e, f);
						b++;
						if (b == a-1)
						{
							cout << "an" << endl;
							return 0;
						}
					}
				}
			}
		}
		//c = 'a';
		//c += b;
		//cout << "a" << c << endl;
	}





	//cout << ans << endl;
	return 0;
}
0