cph
cph copied to clipboard
first line space ignored in expected output in python
n = int(input())
for i in range(1,n+1):
print(' '*(n-i)+'*'*i)
for i in range(1,n):
print(' '*i+'*'*(n-i))
python3, pypy3.6

Extension Version: 5.8.1
VS Code Version: 1.62.0 (Universal)
Browser Version: -
Operating System: mac os, 11.3.1
Hi @hgmhc , thanks for the report. This is definitely a bug that the space is ignored in the result output, and ill try to fix it.
However, please know that the cph judge ignores all whitespace when comparing outputs.