/ WOJ / 题库 /

A+B Problem 常规解法

A+B Problem 常规解法

\(\textcolor{black}{\textup{\textrm{题目背景}}}\)

\(\textcolor{black}{\textup{\textrm{洛谷}}}\)\(\textcolor{black}{\textup{\textrm{题目传送门\_P1001}}}\)

\(\textcolor{black}{\textup{\textrm{此题为A+B常规做法}}}\)

\(\textcolor{black}{\textup{\textrm{非常规做法题面}}}\)

\(\textcolor{black}{\textup{\textrm{禁止将非常规做法或题解/讨论等提交至此题}}}\)

\(\textcolor{black}{\textup{\textrm{题目描述}}}\)

\(\textcolor{black}{\textup{\textrm{输入两个自然数,输出他们的和}}}\)

\(\textcolor{black}{\textup{\textrm{Black\ Box吃下去的格式}}}\)

\(\textcolor{black}{\textup{\textrm{一行两个整数x和y}}}\)

\(\textcolor{black}{\textup{\textrm{Black\ Box拉出来的格式}}}\)

\(\textcolor{black}{\textup{\textrm{一行一个数,即x和y的和}}}\)

\(\textcolor{black}{\textup{\textrm{输入输出样例}}}\)

\(\textcolor{black}{\textup{\textrm{输入\ \#1}}}\)

114 514

\(\textcolor{black}{\textup{\textrm{输出\ \#1}}}\)

628

\(\textcolor{black}{\textup{\textrm{说明/提示}}}\)

\(\textcolor{black}{\textup{\textrm{对于100\%的数据点,保证有:0}}\le\textup{\textrm{x , y}}\le\textup{\textrm{32767}}}\)

\(\textcolor{black}{\textup{\textrm{C++\ Code}}}\)

#include<bits/stdc++.h>
using namespace std;

int a,b;

int main(){
    ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
    cin>>a>>b;
    cout<<a+b<<endl;
    return 0;
}

信息

ID
1002
难度
1
分类
模拟 点击显示
标签
(无)
递交数
2
已通过
1
通过率
50%
被复制
1
上传者