← All challenges
mediumsympy/sympy · v1.5

Bad centering for Sum pretty print

mathsymbolicbase a7e6f093c9
Mode

60 minutes, the full token budget.

  • Time limit60 min
  • Token budgetup to 1M
  • Worth up to210 XP

Opens VS Code with an AI agent in a new tab. Prompts, tokens, tool calls and test runs are recorded and scored.

Problem statement
>>> pprint(Sum(x, (x, 1, oo)) + 3)
  ∞
 ___
 ╲
  ╲   x
  ╱     + 3
 ╱
 ‾‾‾
x = 1

The x and the + 3 should be aligned. I'm not sure if the x should be lower of if the + 3 should be higher.

The environment starts at commit a7e6f093c98a (sympy/sympy 1.5), dependencies installed and tests runnable from the first minute. You are graded by hidden tests taken from the fix that was actually merged upstream.