Hdu-1095-a+b for Input-output Practice (VII) (one more space?) )

Source: Internet
Author: User

A+b for Input-output Practice (VII)Time limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)
Total submission (s): 52439 Accepted Submission (s): 35139


Problem Descriptionyour task is to Calculate A + B.

Inputthe input would consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.

Outputfor each pair of input integers A and B are should output the sum of A and B, and followed by a blank line.

Sample Input
1 510 20

Sample Output

Authorlcy
recommendjgshining | We have carefully selected several similar problems for you:1096 1061 1108 1018 1170


#include <iostream> #include <cstdio>using namespace Std;int main () {    int A, b;    while (scanf ("%d%d", &a,&b)!=eof)    {        printf ("%d\n\n", a+b);    }    return 0;}



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Hdu-1095-a+b for Input-output Practice (VII) (one more space?) )

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.