Pro.ID21000 TitleA+B Problem Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21000 AC755 Submit2326 Ratio32.46% 时间&空间限制描述Calculate a+b 输入Two integer a, b ( 0 ≤ a, b ≤ 10 ) 输出Description Calculate a+b Input Two integer a, b ( 0 ≤ a, b ≤ 10 ) Output Output a+b Sample Input 1 2 Sample Output 3 Hint Q: Where are the input and the output? int main() It's important that the return type of main() must be int when you use G++/GCC,or you may get compile error. #include <stdio.h> Here is a sample solution to problem 21000 using Pascal: program p1000(Input,Output); Here is a sample solution to problem 21000 using Java: import java.io.*; Old program for jdk 1.4 import java.io.*; Here is a sample solution to problem 21000 using Fortran: PROGRAM P1000 请勿提交本题。 样例输入1 2 样例输出3 提示Q: Where are the input and the output? int main() It's important that the return type of main() must be int when you use G++/GCC,or you may get compile error. #include <stdio.h> Here is a sample solution to problem 21000 using Pascal: program p1000(Input,Output); Here is a sample solution to problem 21000 using Java: import java.io.*; Old program for jdk 1.4 import java.io.*; Here is a sample solution to problem 21000 using Fortran: PROGRAM P1000 请勿提交本题。 作者 |