zoukankan      html  css  js  c++  java
  • GDUFE ACM-1000 A+B

    题目:http://acm.gdufe.edu.cn/Problem/read/id/1000

    A + B Problem

    Time Limit: 2000/1000ms (Java/Others)

    Problem Description:

     Caculate A + B. Process to end of file.

    Input:

    The input consists of multiple line, each line contain two integers A and B, which means you need EOF format.                                  

    Output:

    For each case,output A + B in one line.
    Needn't to save all the cases' answer in an array, just output the A + B after each cases.

    Sample Input:

    1 2
    4 5
    

    Sample Output:

    3
    9



    思路:很简单的一道题......就是把A和B加起来
    复杂度分析:就是很简单...

    附上我的代码:

    #include<stdio.h>
    int main()
    {
    int A,B;
    while(scanf("%d%d",&A,&B)!=EOF)
    {
    printf("%d ",A+B);
    }
    return 0;
    }

  • 相关阅读:
    dfs-入门模板
    dp-状压dp
    c++ sizeof详解
    各种排序算法
    简介
    第178场周赛总结
    单调队列
    2019.10.24刷题统计
    2019.10.23刷题统计
    2019.10.22刷题统计
  • 原文地址:https://www.cnblogs.com/ruo786828164/p/5892059.html
Copyright © 2011-2022 走看看