提交记录 9115
| 提交时间 |
评测时间 |
| 2019-04-10 19:45:40 |
2020-08-01 01:31:59 |
#include<bits/stdc++.h>
using namespace std;
const int N=65000;
bool vis[65000];
int prime[65000];
int tot;
int main()
{
tot=0;
for(int i=2;i*i<=N;i++)
{
if(vis[i]) continue;
prime[++tot]=i;
int mul;
i==2?mul=1:mul=2;
for(int j=i*i;j<=N;j=j+i*mul) vis[j]=1;
}
int t;
cin>>t;
int a,b;
while(t--)
{
cin>>a>>b;
cout<<a+b<<endl;
}
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 154.2 us | 104 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-04 19:41:40 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠