| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84184 | 石茂诤 | 寻找绝对素数 | C++ | Compile Error | 0 MS | 0 KB | 546 | 2024-07-15 12:15:24 |
# include<bits/stdc++.h> # includ<cmath> using namespace std; bool s(int a){ if(a==1){ return 0; } for(int j=2;j<sqrt(a);j++){ if(a%j==0){ return 0; } } return 1; } int fx (int a){ int m=0; while(a>0){ m=m*10+a%10; a=a/10; } return m; } int main(){ int n,m,k,f=0; cin>>m>>n; for(int i=m;i<n;i++){ k=fx(i); if(s(i)&&s(k)){ if(f==0){ cout<<i; f=1; } else{ cout<<','<<i; } } } if(f==0){ cout<<"No"; } return 0; }
Main.cc:2:3: error: invalid preprocessing directive #includ # includ ^