刚刚入学,记录解题只会一点c,坚持坚持!!
1000. A+B Problem
TimeLimit: 5000ms
MemoryLimit: 2048MB
Description
Calculate a+b
Input
Two integer a,b (0≤ a,b≤ 10)
Output
Output a+b
Sample
Input
1 2
Output
3
Sample
Input
10 20
Output
30
思路
用scanf输入a和b(中间有空格)再用printf输出a+b即可
代码
#include<stdio.h>
int main(){
int a;
int b;
scanf("%d %d",&a,&b);
printf("%d",a+b);
return 0;
}