A+B 吐槽

A+B

Description
Calculate a + b
Input
The input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line.
Output
For each pair of input integers a and b you should output the sum of a and b in one line,and with one line of output for each line in input.
Sample Input
1 5
Sample Output
6
  

  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b;
  5. int sum;
  6. scanf("%d %d",&a,&b);
  7. sum = a + b;
  8. printf("%d",sum);
  9. return 0;
  10. }

开始刷题了,其实一开始我是拒绝的,我真的不喜欢刷题,3月份参加蓝桥杯的时候做了几道题,真的很费脑子,算法这东西。。。。。哎没办法!都在刷题我也没办法,刷题好处是很大的,真的我不否认,问了问学长准备扎根华中科技这边了,今天做了个A+B熟悉下环境,英语不好的很捉急,,,,

很晚了,睡吧,以后每天一道题,,,,,今年11月再报蓝桥杯,ACM什么的我就不想了,谁让我兴趣在Linux内核上呢。。。。。大家好梦




版权声明:本文为博主原创文章,未经博主允许不得转载。

posted on 2015-06-02 00:25  zmrlinux  阅读(157)  评论(0)    收藏  举报

导航