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

这是int么。。。

Posted by 150014 at 2008-07-07 20:34:57 on Problem 1004
In Reply To:急,,,,,,,,请问大侠们,我这程序,怎么提交说Runtime Error帮忙看看那里错了 Posted by:xinxin111 at 2008-07-07 19:02:38
> import java.io.*;
> import java.util.*;
> 
> public class Main{
> 	public static void main(String args[]) throws Exception
>         {
> 	    Scanner cin = new Scanner(System.in);		
>              int a1 = cin.nextInt(), 
> 		 a2 = cin.nextInt(),
> 		 a3= cin.nextInt(),
> 		 a4 = cin.nextInt(),
> 		 a5 = cin.nextInt(),
> 		 a6= cin.nextInt(),
> 		 a7 = cin.nextInt(),
> 		 a8 = cin.nextInt(),
> 		 a9 = cin.nextInt(),
> 		 a10 = cin.nextInt(),
> 		 a11= cin.nextInt(),
> 		 a12 = cin.nextInt();
> 	    double temp = (a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11+a12)/12;
> 	    System.out.println("$"+temp);
> 	}

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