結果

問題 No.10 +か×か
ユーザー miztommiztom
提出日時 2024-03-12 16:00:51
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 202 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 848,228 KB
最終ジャッジ日時 2024-03-12 16:00:56
合計ジャッジ時間 4,977 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,460 KB
testcase_01 AC 33 ms
53,460 KB
testcase_02 AC 39 ms
53,460 KB
testcase_03 MLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
t=int(input())
a=map(int,input().split())
l=[(next(a),"")]
for i in a:l=[m for j,k in l for m in[(j*i,k+"*"),(j+i,k+"+")]if m[0]<=t]
r=" "*n
for i,j in l:
    if i==t and r<j:r=j
print(r)
0