結果

問題 No.254 文字列の構成
ユーザー pluto77pluto77
提出日時 2020-03-24 09:30:02
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 995 ms
コンパイル使用メモリ 7,156 KB
実行使用メモリ 6,516 KB
最終ジャッジ日時 2023-08-30 05:11:04
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,876 KB
testcase_01 AC 11 ms
6,412 KB
testcase_02 AC 12 ms
6,308 KB
testcase_03 WA -
testcase_04 AC 11 ms
6,388 KB
testcase_05 AC 11 ms
6,448 KB
testcase_06 WA -
testcase_07 AC 11 ms
6,444 KB
testcase_08 AC 11 ms
6,256 KB
testcase_09 AC 11 ms
6,396 KB
testcase_10 AC 12 ms
6,408 KB
testcase_11 AC 12 ms
6,256 KB
testcase_12 AC 12 ms
6,268 KB
testcase_13 AC 11 ms
6,384 KB
testcase_14 AC 11 ms
6,348 KB
testcase_15 AC 11 ms
6,272 KB
testcase_16 AC 12 ms
6,352 KB
testcase_17 AC 12 ms
6,328 KB
testcase_18 AC 12 ms
6,444 KB
testcase_19 AC 11 ms
6,388 KB
testcase_20 AC 12 ms
6,312 KB
testcase_21 AC 11 ms
6,504 KB
testcase_22 AC 12 ms
6,280 KB
testcase_23 AC 11 ms
6,308 KB
testcase_24 AC 12 ms
6,476 KB
testcase_25 AC 11 ms
6,292 KB
testcase_26 AC 11 ms
6,432 KB
testcase_27 AC 11 ms
6,460 KB
testcase_28 AC 12 ms
6,468 KB
testcase_29 AC 11 ms
6,516 KB
testcase_30 AC 11 ms
6,400 KB
testcase_31 AC 11 ms
6,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki254
s='abcdefghijklmnopqrstuvwxyz'
n=int(raw_input())
def f(n,s):
 if n<=1:
  return 'a'*n
 m=int(n**0.5)+1
 while m*(m+1)>n:
  m-=1
 x=n-m*(m+1)
 return s[:2]*m+f(x,s[2:])
print f(n,s)
0