提交记录 4370


用户 题目 状态 得分 用时 内存 语言 代码长度
iMMIQ 1000i. 【传统题】 A+B Problem Accepted 100 38.57 us 12 KB C++ 444 B
提交时间 评测时间
2018-07-20 22:19:50 2020-07-31 22:56:42
#include <stdio.h>

inline int read() {
    char ch = getchar();
    int x = 0, f = 1;
    while(ch < '0' || ch > '9') {
        if(ch == '-') f = -1;
        ch = getchar();
    }
    while('0' <= ch && ch <= '9') {
        x = x * 10 + ch - '0';
        ch = getchar();
    }
    return x * f;
}

int main() {
	int n, a, b;
	n = read();
	while(n--) {
                a = read(); b =read();
		printf("%d\n", (a & b) + (a | b));
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #138.57 us12 KBAcceptedScore: 100


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