https://www.luogu.com.cn/record/89584594 https://www.luogu.com.cn/record/89585506
这两次提交记录的代码分别为
print(input()[::-1]) 和 print(input()[-2::-1])
print(input()[::-1])
print(input()[-2::-1])
在本地运行的时候第一个是没有问题的,但是提交上去 WA 了,然后看错误信息是第一个字符 read (ASCII 13) 也就是 \r,然后我把它从倒数第二位开始输出,才AC,这是怎么会是呢?
read (ASCII 13)
\r