跳到正文

题解

题解:P1001 A+B Problem

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

文章信息

发布
2025年5月10日
收录
2025年12月12日
更新
2026年10月3日
篇幅
约 1 分钟
题目
P1001

版本

  1. v1当前

hello新学编程的oier们,你们好!

代码框架

每次写代码必要的东西,没有他就运行不了哦
他们通常长这样:

C++
#include <bits/stdc++.h>//头文件
using namespace std;
int main()//主函数
{

    return 0;//结束整段代码
}

所以该怎么做呢?

C++
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main()
{

    int a,b;//定义变量
    cin>>a>>b;//输入
    cout<<a+b<<endl;//输出

    return 0;
}

然后就结束啦

原文