OJ:51Nod
链接:"http://www.51nod.com/Challenge/Problem.html#!#problemId=1000"
给出2个整数A和B,计算两个数的和。
2个整数A B,中间用空格分割。(0 <= A, B <= 10^9)
输出A + B的计算结果。
时间:1s 空间: 131072KB
1 2
3
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b;
return 0;
}
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a+b);
return 0;
}
原文:https://www.cnblogs.com/--ChenShou--/p/10761608.html