Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88464 倪士燊 回文字符串I C++ Wrong Answer 0 MS 268 KB 293 2024-08-19 10:49:41

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; char s[1001]; int main(){ cin >> s; int n = strlen(s); int l = 0, r = n-1; while(l <= r) { if(s[l] ==s[r]) { l++; r--; } else { cout << "no"; return 0; } } return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----