跳到正文

题解

P1001 A+B Problem 题解

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

文章信息

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

版本

  1. v1当前

303题解

首先按我们先看题,他说只需要求出A+B的和就可以了,并且好心的303吧A+B的公式给放在这里了(c = a + b;)。所以简单的A+B问题我们就不浪费时间了,上代码!!!

code:

C++
#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b;
    c = a + b;
    cout << c;
    return 0;
}

温馨提示:不要看题目背景,浪费大佬的时间!!!

谢谢大家的观看,我们下期题解见!

原文