谁能翻译出来?(最抽象代码)

P1001 A+B Problem

_std_O2 @ 2024-08-15 21:17:52

最抽象代码

#include<iostream>
#define OOOOO using namespace std;
#define begin {
#define end }
#define OoOoO main
#define ooO int 
#define OooO bool
#define oooO void
#define oO if
#define oOoo else
#define Ooo for
#define bb (
#define ee )
#define oOoO >>
#define OoOo << 
#define oooooo return
OOOOO
OooO ffs bb ooO x ee begin
    oO bb x ee oooooo 1;
    oOoo oooooo 1;
end
oooO ssf bb ooO a,ooO b ee begin
    a^=b;
    b^=a;
    a^=b;
end
ooO OoOoO bb ee
begin
    ooO a,b;
    cin oOoO a oOoO b;
    ssf bb a,b ee;
    oO bb ffs bb a ee ee begin
        oO bb b>0 ee begin
            Ooo bb ooO i=1;i<=b;i++ ee a-=0xffffffff;
        end
        oOoo Ooo bb ooO i=1;i<=-1*b;i++ ee a+=0xffffffff;
        cout OoOo a;
    end
end

by wujunxi206 @ 2024-08-15 21:26:56

#include<iostream>
using namespace std;
bool ffs ( int x ) {
    if ( x ) return 1;
    else return 1;
}
void ssf ( int a,int b ) {
    a^=b;
    b^=a;
    a^=b;
}
int main ( )
{
    int a,b;
    cin >> a >> b;
    ssf ( a,b );
    if ( ffs ( a ) ) {
        if ( b>0 ) {
            for ( int i=1;i<=b;i++ ) a-=0xffffffff;
        }
        else for ( int i=1;i<=-1*b;i++ ) a+=0xffffffff;
        cout <<  a;
    }
}

by yyddcc @ 2024-08-16 11:43:52

@yuhuaibo 抽象


by BD_AZZR_CN @ 2024-08-30 17:57:41

我看到这代码的时候我小脑萎缩了一下这是Pascal吗(怎么有end


by wuyuemumuxin @ 2024-09-07 11:27:23

(https://www.luogu.com.cn/record/176108884)


上一页 |