提交记录 7678


用户 题目 状态 得分 用时 内存 语言 代码长度
dvb 1000i. 【传统题】 A+B Problem Accepted 100 44.85 us 16 KB C++ 295 B
提交时间 评测时间
2019-01-25 09:22:02 2020-08-01 01:07:09
#include<cstdio>
int T,a,b;
int plus(register int a,register int b) {
    if(!a || !b) return a|b;
    return plus((a & b) << 1,a ^ b);
}

int main() {
	scanf("%d",&T);
    for(register int i = 1;i <= T;++i) {
        scanf("%d%d",&a,&b);
        printf("%d\n",plus(a,b));
    }
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #144.85 us16 KBAcceptedScore: 100


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