提交记录 9115


用户 题目 状态 得分 用时 内存 语言 代码长度
zhouxiang 1000i. 【传统题】 A+B Problem Accepted 100 154.2 us 104 KB C++11 422 B
提交时间 评测时间
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;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1154.2 us104 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-04 19:41:40 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠