http://poj.org/problem?id=1000
题目要求输入两个整数,输出和
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",a+b);
return 0;
}
扩展:输入两个大整数,输出和,大整数长度超过已知整型长度(如long int等):待补充
http://poj.org/problem?id=1000
题目要求输入两个整数,输出和
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",a+b);
return 0;
}
扩展:输入两个大整数,输出和,大整数长度超过已知整型长度(如long int等):待补充