結果

問題 No.10 +か×か
ユーザー KudeKude
提出日時 2020-09-03 08:32:56
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 216 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,392 KB
最終ジャッジ日時 2024-05-02 07:17:14
合計ジャッジ時間 6,829 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,392 KB
testcase_01 AC 39 ms
52,352 KB
testcase_02 AC 39 ms
52,096 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