WA3个,正经A+B

P1001 A+B Problem

GODTREE @ 2023-08-10 17:31:18

#include <bits/stdc++.h>
#define begin {
#define end }
#define show_value return
int add (int a,int b )
begin
    show_value (a & b) << 1 + (a ^ b);
end
int input()
begin
    int n;
    scanf("%d",&n);
    return n;
end
int output(int n)
begin
    printf("%d",n);
end
int main()
begin
    int a,b;
    a=input();
    b=input();
    output(add(a,b));
    show_value 0;
end

by James__ji @ 2023-10-22 09:07:06

why要怎么写?...


上一页 |