zoukankan      html  css  js  c++  java
  • A题

     
    Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u
     

    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
     
    题解:题意很简单,输入两个数字,求两个数字之和。是不是很简单?不是的,这样肯定会出现wrong answer, 这里只给出一组案例,是个陷阱,其实他要求输入多组案例,所以要加入循环语句。
     
    #include<stdio.h>
    int main()
    {
        int a,b;
        while(scanf("%d %d",&a,&b)!=EOF)
        printf("%d
    ",a+b);
        return 0;
    }
  • 相关阅读:
    压测mysql连接数
    OpenStack SR-IOV
    Scheduler 租户虚机到不同host
    Neutron 集成 DPDK
    Centos 7 密码重置
    win10优化
    Aria
    tomcat lb cluster
    Tomcat.md
    varnish.md
  • 原文地址:https://www.cnblogs.com/hfc-xx/p/4878783.html
Copyright © 2011-2022 走看看