acm1000

1000解题报告:
Description:
Calculate   a+b
Input   two integer a,b  (0<=a  b<=10)
Output  a+b
http://acm.pku.edu.cn/JudgeOnline/problem?id=1000
题目大意:
求 a+b的值   其中a>=0   b<=10
分析:
只要注意a、b有取值范围即可
#include <stdio.h>
main()
{
        int a,b,c;
        scanf("%d%d",&a,&b);
        if(a>=0&&b<=10)
        {
          c=a+b;
         printf("%d",c);
        }
        return 0;
}

為何將這些沒太大意義的 codes 貼出來 ... ??
相信這裡沒有人對你的Post 有興趣.

TOP

JinTech Semiconductor Co., Ltd JinTech Semiconductor Co., Ltd - About Us JinTech Semiconductor Co., Ltd - Our Service JinTech Semiconductor Co., Ltd - Expected Quality System Certification JinTech Semiconductor Co., Ltd - Contact Us Our Partners – Sai Fung Electronics Ltd