HDOJ 1000 A + B Problem

简介: Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 513689 Accepted Submission(s): 162876Problem Description Calculate A + B.

Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 513689 Accepted Submission(s): 162876

Problem Description
Calculate A + B.

Input
Each line will contain two integers A and B. Process to end of file.

Output
For each case, output A + B in one line.

Sample Input
1 1

Sample Output
2

import java.util.*;
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()){
      int A = sc.nextInt();
      int B = sc.nextInt();
      System.out.println(A+B);
    }
  }
}
目录
相关文章
HDOJ 2101 A + B Problem Too
HDOJ 2101 A + B Problem Too
111 0
HDOJ 1002 A + B Problem II
HDOJ 1002 A + B Problem II
125 0
|
Java
HDOJ 1000 A + B Problem
HDOJ 1000 A + B Problem
117 0
HDOJ 2058 The sum problem
HDOJ 2058 The sum problem
118 0
HDOJ 1001Sum Problem
HDOJ 1001Sum Problem
123 0
HDOJ 1405 The Last Practice
HDOJ 1405 The Last Practice
107 0
HDOJ1002题A + B Problem II,2个大数相加
HDOJ1002题A + B Problem II,2个大数相加
125 0
|
数据挖掘
HDOJ 1032(POJ 1207) The 3n + 1 problem
HDOJ 1032(POJ 1207) The 3n + 1 problem
136 0
|
Java 机器学习/深度学习 网络协议
HDOJ-1002 A + B Problem II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem ...
1162 0