题目链接:https://www.luogu.com.cn/problem/P1001
解法一 (c)
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d",&a,&b);
c=a+b;
printf("%d",c);
return 0;
}
解法二(c++)
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int a,b;
cin>> a>> b;
cout<< a+b;
return 0;
}
PS:我不太懂的是为什么在输入输出后面加上空格才能通过,在DEVC++上我去掉空格后也可以得出正确结果。