Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146275 左锶焜 素数判断 C++ Wrong Answer 1 MS 280 KB 248 2026-01-27 19:35:25

Tests(0/1):


Code:

#include<iostream> using namespace std; int main() { char s[10000]; int i,n,flag=1; cin>>s>>n; for(i=0;i<=n/2;i++){ if(s[i]!=s[n-1-i]){ flag=0; break; } } if(flag) cout<<"yes"<<endl; else cout<<"no"<<endl; }


Run Info:

------Input------
9973
------Answer-----
prime
------Your output-----
no