HDOJ 1000 A + B Problem
发布日期:2021-06-29 13:30:03 浏览次数:3 分类:技术文章

本文共 561 字,大约阅读时间需要 1 分钟。

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);    }  }}

转载地址:https://chenhx.blog.csdn.net/article/details/49334599 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:HDOJ 1001Sum Problem
下一篇:POJ 1163 The Triangle

发表评论

最新留言

关注你微信了!
[***.104.42.241]2024年04月27日 14时24分30秒