結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー rulerruler
提出日時 2021-07-30 20:41:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 9,824 KB
最終ジャッジ日時 2023-10-14 02:56:53
合計ジャッジ時間 1,529 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
9,752 KB
testcase_01 AC 32 ms
9,600 KB
testcase_02 AC 31 ms
9,624 KB
testcase_03 AC 32 ms
9,672 KB
testcase_04 AC 31 ms
9,728 KB
testcase_05 AC 31 ms
9,684 KB
testcase_06 AC 32 ms
9,664 KB
testcase_07 AC 32 ms
9,740 KB
testcase_08 AC 32 ms
9,752 KB
testcase_09 AC 31 ms
9,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import typing 



def main() -> typing.NoReturn:
  n = int(input())
  *c, = map(
    int, input().split(),
  )
  m = ''
  for i in range(9):
    m += str(i + 1) * c[i]
  print(m[::-1])


main()
0