P1055求助

灌水区

[https://www.luogu.org/problemnew/show/P1055](这里是地址)
by YoursHugo @ 2019-02-14 18:20:29


https://www.luogu.org/problemnew/show/P1055 楼上那个链接是错的
by _Misaka_Mikoto @ 2019-02-14 18:21:36


@[cheung](/space/show?uid=138904) 嗯,谢谢呀.
by YoursHugo @ 2019-02-14 18:23:50


getline换成scanf || cin
by _Misaka_Mikoto @ 2019-02-14 18:26:43


@[cheung](/space/show?uid=138904) 嗯,因为getline会读入回车吧?那么cin,scanf又会不会读入呢?
by YoursHugo @ 2019-02-14 18:28:50


@[YoursHugo](/space/show?uid=133745) 唔识,可能是因为你读入 比如这段 ``` for(int i=0;i<=leng-2;i++) cout<<s[i]; cout<<c<<endl; } ``` 问题在于i=leng-2=11 而读入的只有10 //大脑有点混乱
by _Misaka_Mikoto @ 2019-02-14 18:35:19


@[cheung](/space/show?uid=138904) 懂了,谢谢
by YoursHugo @ 2019-02-14 18:42:20


|