Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:1000 A+B Problem

Posted by zfy0701 at 2008-08-15 00:52:41 on Problem 1000
In Reply To:1000 A+B Problem Posted by:initialsky at 2008-04-23 15:59:45
> 我用Java写的,错了好几次了,不知道为什么。
> import java.io.*;
> import java.util.*;
> 
> public class Main
> {
> 	public static void main(String[] args[]) throws Exception
> 	{
> 		Scanner cin = new Scanner(System.in);
>                 
> 		int number1 = cin.nextInt();
> 		int number2 = cin.nextInt();
> 		if(number1>=0 && number1<=10 && number2>=0 && number2<=10)
> 			System.out.println(number1+number2);
> 	}
> }

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator