跳到正文

题解

题解:P1001 A+B Problem

liu12131415约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月13日
篇幅
约 1 分钟
题目
P1001

版本

  1. v1当前

我从来没写过这样难的题解了, 这是我的题解,请大佬看看(这是本蒟蒻的第一篇题解,请见谅)

C++
#include <iostream>
using namespace std;
int main() {
    int a,b;
    cin >> a >> b;
    cout << a+b;
    return 0;
}

or

C++
#include <cstdio>
using namespace std;
int main() {
    int a,b;
    scanf("%d%d",&a,&b);
    a+=b;
    printf("%d",&a);
    return 0;
}
原文