20分求调

P1001 A+B Problem

b9113fced86a32cad0d8 @ 2024-08-23 09:02:57

#include<bits/stdc++.h>
using namespace std;
int main() {
    int a,b;
    cin>>a>>b;
    __asm__ volatile(
        "movl %0, %%eax\n"
        "addl %1, %%eax\n"
        "movl %%eax, %0\n"
        :"=r"(a),"=r"(b)
    );
    cout<<a;
    return 0;
}

by Lty2013 @ 2024-09-01 10:35:32

@BIOSS c++当然简单,不知楼主是啥语言


by b9113fced86a32cad0d8 @ 2024-09-16 18:28:53

@Lty2013 C++内联汇编


by Lty2013 @ 2024-09-17 08:27:11

@b9113fced86a32cad0d8 哦,懂了


by Cjq120326 @ 2024-10-20 19:44:56

@BIOSS 6,你C++没学吗?是不是C++都看不出来?


上一页 |