結果
| 問題 | No.10 +か×か |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-13 02:46:22 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 77,344 KB |
| 最終ジャッジ日時 | 2025-12-03 20:10:05 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 TLE * 1 -- * 7 |
ソースコード
n=input() t=input() a=map(int,raw_input().split()) def solve(c,d,e): if d>=n: if c==t: return e return False if c>t: return False r=solve(c+a[d],d+1,e+"+") if r==False: r=solve(c*a[d],d+1,e+"*") if r==False: return False return r print solve(a[0],1,"")
taba