cph icon indicating copy to clipboard operation
cph copied to clipboard

first line space ignored in expected output in python

Open d0h000n opened this issue 3 years ago • 1 comments

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

스크린샷 2021-11-13 오후 5 14 40

Extension Version: 5.8.1

VS Code Version: 1.62.0 (Universal)

Browser Version: -

Operating System: mac os, 11.3.1

d0h000n avatar Nov 13 '21 08:11 d0h000n

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.

agrawal-d avatar Nov 18 '21 02:11 agrawal-d