F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_8374523_5565\Main.java:1: 类 acm 是公共的,应在名为 acm.java 的文件中声明
import java.util.*;public class acm{public static void main(String a[]){Scanner c=new Scanner(System.in);int n,t,s,e;while(c.hasNext()&&(n=c.nextInt())!=0){t=5*n;s=e=0;while(n-->0){s=c.nextInt();t+=s>=e?(s-e)*6:(e-s)*4;e=s;}System.out.println(t);}c.close();}}
                          ^
1 错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 11:40:32, Gzip enabled