Guest User

Untitled

a guest
Jul 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Input: ["x"], [] ==> "0"
  2. Input: [], [[3], [-7]] ==> "- 4"
  3. Input: ["x"], [[1,5]] ==> "x^{5}"
  4. Input: ["x"], [[-1,5]] ==> "- x^{5}"
  5. Input: ["x"], [[1,5], [1,5]] ==> "2x^{5}"
  6. Input: ["x"], [[1,5], [-1,5]] ==> "0"
  7. Input: ["x"], [[1,2], [2,1], [3,0]] ==> "3 + 2x + x^{2}"
  8. Input: ["x"], [[3,0], [2,1], [1,2]] ==> "3 + 2x + x^{2}"
  9. Input: ["x", "y", "z"], [[1,0,0,1], [1,1,0,0], [-1,0,1,0]] ==> "x - y + z"
  10. Input: ["x", "y"], [[2,2,2], [3,2,1], [4,2,0], [1,0,0], [-1,1,0],[-2,2,0]] ==>
  11. "1 - x + 2x^{2} + 3x^{2}y + 2x^{2}y^{2}"
Add Comment
Please, Sign In to add comment