| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148249 | 于墨轩 | 素数判断 | C++ | Wrong Answer | 0 MS | 276 KB | 246 | 2026-02-10 14:01:50 |
#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; }
------Input------
9973
------Answer-----
prime
------Your output-----
no