P1001题解

· · 题解

这是我的第一篇题解。

P1001:所有人的第二题(仅次于第一题hello world)

C++代码:

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

  int main(){
      int a,b;
      cin>>a>>b;
      cout<<a+b<<endl;
      return 0;
  }

C代码:

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

  int main(){
      int a,b;
      scanf("%d%d",&a,&b);
      printf("%d\n",a+b);
      return 0;
  }