結果

問題 No.701 ひとりしりとり
ユーザー takakintakakin
提出日時 2020-05-15 14:38:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 192 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,760 KB
実行使用メモリ 10,144 KB
最終ジャッジ日時 2023-10-19 03:54:17
合計ジャッジ時間 1,707 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,036 KB
testcase_01 AC 31 ms
10,036 KB
testcase_02 AC 30 ms
10,036 KB
testcase_03 AC 30 ms
10,036 KB
testcase_04 AC 31 ms
10,036 KB
testcase_05 AC 32 ms
10,036 KB
testcase_06 AC 30 ms
10,036 KB
testcase_07 AC 30 ms
10,036 KB
testcase_08 AC 30 ms
10,040 KB
testcase_09 AC 32 ms
10,104 KB
testcase_10 AC 45 ms
10,144 KB
testcase_11 AC 192 ms
10,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
def f(x):
  ret=""
  while x>0:
    ret+=chr(97+x%10)
    x//=10
  return ret
for i in range(n-1):
  print("a"+f(i+1)+"a")
print("a"+f(n)+"n")
0