码迷,mamicode.com
首页 > 编程语言 > 详细

ALGO-123_蓝桥杯_算法训练_A+B problem

时间:2018-04-18 23:37:09      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:输出   tin   inpu   输入   contains   color   bsp   int   NPU   

问题描述
  Given two integers A and B, your task is to output their sum, A+B.
输入格式
  The input contains of only one line, consisting of two integers A and B. (0 ≤ A,B ≤ 1 000)
输出格式
  The output should contain only one number that is A+B.
样例输入
1 1
样例输出
2

 

AC代码:

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

 

ALGO-123_蓝桥杯_算法训练_A+B problem

标签:输出   tin   inpu   输入   contains   color   bsp   int   NPU   

原文地址:https://www.cnblogs.com/mind000761/p/8878052.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!