結果

問題 No.254 文字列の構成
ユーザー nebukuro09nebukuro09
提出日時 2017-03-16 16:59:57
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 6,580 KB
実行使用メモリ 6,324 KB
最終ジャッジ日時 2023-09-17 05:14:31
合計ジャッジ時間 2,757 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,232 KB
testcase_01 AC 12 ms
6,084 KB
testcase_02 AC 14 ms
6,184 KB
testcase_03 AC 14 ms
6,228 KB
testcase_04 AC 13 ms
6,192 KB
testcase_05 AC 12 ms
6,152 KB
testcase_06 AC 13 ms
6,164 KB
testcase_07 AC 13 ms
6,212 KB
testcase_08 AC 13 ms
6,232 KB
testcase_09 AC 13 ms
6,176 KB
testcase_10 AC 13 ms
6,184 KB
testcase_11 AC 13 ms
6,296 KB
testcase_12 AC 13 ms
6,084 KB
testcase_13 AC 17 ms
6,164 KB
testcase_14 AC 13 ms
6,296 KB
testcase_15 AC 14 ms
6,256 KB
testcase_16 AC 15 ms
6,208 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 27 ms
6,300 KB
testcase_20 AC 20 ms
6,260 KB
testcase_21 AC 24 ms
6,300 KB
testcase_22 AC 17 ms
6,136 KB
testcase_23 AC 23 ms
6,248 KB
testcase_24 AC 23 ms
6,160 KB
testcase_25 AC 24 ms
6,236 KB
testcase_26 AC 21 ms
6,240 KB
testcase_27 AC 27 ms
6,168 KB
testcase_28 AC 27 ms
6,256 KB
testcase_29 AC 24 ms
6,168 KB
testcase_30 AC 22 ms
6,324 KB
testcase_31 AC 16 ms
6,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from string import ascii_lowercase

N = input()
S = ''
alp = 'vwxyz'

N -= 1
S += 'a'
i = 3
while i <= N:
    S += 'ba'
    N -= i
    i += 2
for i in xrange(N):
    S += alp[i%5]
        
print S
    
0