码迷,mamicode.com
首页 > 其他好文 > 详细

A+B Problem

时间:2016-03-23 23:36:36      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:

A+B Problem

Time Limit: 1000MS Memory Limit: 10000K

Description

 

Calculate a+b

Input

 

Two integer a,b (0<=a,b<=10)

Output

import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        System.out.println(a+b);

    }

}

 

Output a+b

Sample Input

1 2

Sample Output

3

 

A+B Problem

标签:

原文地址:http://www.cnblogs.com/watchfree/p/5313680.html

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