結果
問題 |
No.10 +か×か
|
ユーザー |
![]() |
提出日時 | 2020-09-03 08:32:56 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 182,784 KB |
最終ジャッジ日時 | 2024-11-22 19:12:58 |
合計ジャッジ時間 | 43,313 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 TLE * 7 |
ソースコード
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