| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84003 | 刘宇轩 | 素数对 | Python3 | Compile Error | 0 MS | 0 KB | 335 | 2024-07-15 10:56:29 |
# include<iostream> using namespace std; int a(int b){ for(int i=2;i<b;i++){ if(b%i==0){ return 0; } } return 1; } int main(){ int n,x=0; cin>>n; for(int i=2;i<=n-2;i++){ if(a(i)==1&&a(i+2)==1){ cout<<i<<' '<<i+2<<endl; x++; } } if(x==0){ cout<<"No"; } return 0; }
File "Main.py", line 2
using namespace std;
^
SyntaxError: invalid syntax