1 條題解

  • 0
    @ 2026-1-31 11:02:55
    #include<bits/stdc++.h>
    using namespace std;
    string s1,s2;
    int main(){
    	getline(cin,s1);
    	s2 = s1;
    	reverse(s1.begin(),s1.end());
    	if(s1==s2) cout<<"yes";
    	else cout<<"no";
    	return 0;
    }
    

    資訊

    ID
    347
    時間
    1000ms
    記憶體
    128MiB
    難度
    9
    標籤
    遞交數
    12
    已透過
    4
    上傳者