#19205: 求救:WA (line:13)


089487 (089487)

學校 : 國立臺灣師範大學附屬高級中學
編號 : 82069
來源 : [140.112.16.132]
最後登入時間 :
2025-04-29 20:27:54

#include<iostream>
using namespace std;
int main()
{
string s;
int line=0;
while(getline(cin,s))
{
if(s.length()==1) cout<<"No\n";
else
{
if(s[s.length()-1]=='\\') cout<<"Yes\n";
else cout<<"No\n";
}
}

}

您的答案為: No
正確答案為: Yes