提交记录 10991


用户 题目 状态 得分 用时 内存 语言 代码长度
zcrzcr 1000. 测测你的 A+B Accepted 100 6.75 us 12 KB C++ 261 B
提交时间 评测时间
2019-10-14 20:20:59 2020-08-01 02:37:12
#include<cstdio>
using namespace std;
 int plus(int a, int b){long long l=-int(1e9)<<1,r=int(1e9)<<1;//左边界和右边界
int c;
     while(r-l>1){c=(l+r)>>1;//二分的步骤啦
         if(c-b<a)l=c;
         else if(c-b>a)r=c;
             else return c;
     }if(l!=r)return r;
 }

CompilationN/AN/ACompile OKScore: N/A

Testcase #16.75 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-27 06:01:11 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用