結果
| 問題 | No.10 +か×か |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2020-09-03 08:32:56 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 216 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 156,160 KB |
| 最終ジャッジ日時 | 2026-05-16 19:03:24 |
| 合計ジャッジ時間 | 7,085 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 TLE * 1 -- * 9 |
ソースコード
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
Kude