結果

問題 No.254 文字列の構成
ユーザー TawaraTawara
提出日時 2015-08-01 20:07:01
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 6,700 KB
実行使用メモリ 9,120 KB
最終ジャッジ日時 2023-09-25 00:25:22
合計ジャッジ時間 3,029 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,860 KB
testcase_01 AC 11 ms
6,036 KB
testcase_02 AC 11 ms
6,080 KB
testcase_03 AC 11 ms
5,952 KB
testcase_04 AC 11 ms
5,884 KB
testcase_05 AC 11 ms
5,940 KB
testcase_06 AC 11 ms
5,860 KB
testcase_07 AC 11 ms
6,012 KB
testcase_08 AC 11 ms
6,048 KB
testcase_09 AC 11 ms
5,996 KB
testcase_10 AC 11 ms
6,008 KB
testcase_11 AC 11 ms
5,904 KB
testcase_12 AC 11 ms
5,904 KB
testcase_13 AC 11 ms
5,868 KB
testcase_14 AC 12 ms
5,976 KB
testcase_15 AC 14 ms
6,136 KB
testcase_16 AC 18 ms
6,792 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 40 ms
8,752 KB
testcase_20 AC 28 ms
7,616 KB
testcase_21 AC 36 ms
8,416 KB
testcase_22 AC 23 ms
7,176 KB
testcase_23 AC 31 ms
7,760 KB
testcase_24 AC 31 ms
7,688 KB
testcase_25 AC 35 ms
8,284 KB
testcase_26 AC 32 ms
8,016 KB
testcase_27 AC 39 ms
8,592 KB
testcase_28 AC 37 ms
8,364 KB
testcase_29 AC 37 ms
8,348 KB
testcase_30 AC 34 ms
8,428 KB
testcase_31 AC 21 ms
6,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
M = 1<<15
for i in xrange(1,1<<15):
	if i**2 <= N < (i+1)**2:
		print "".join([chr(97+(j&1)) for j in range(2*i-1)] + [chr(99+(j%24)) for j in xrange(N-i**2)])
		break
0