結果

問題 No.10 +か×か
ユーザー KudeKude
提出日時 2020-09-03 08:32:56
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 216 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 214,968 KB
最終ジャッジ日時 2023-08-14 19:15:30
合計ジャッジ時間 7,264 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

from itertools import product
n = int(input())
tot = int(input())
a = '(' * (n - 1) + input().replace(' ', ')%c')
for p in product('+*', repeat=n-1):
    if eval(a % p) == tot:
        print(''.join(p))
        break
0