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_18111800_5475\Main.java:1: 错误: 需要class, interface或enum
Danganronpa
^
0_0_18111800_5475\Main.java:5: 错误: 需要'{'
Chisa Yukizome works as a teacher in the school. She prepares many gifts, which consist of n kinds with a[i] quantities of each kind, for her students and wants to hold a class meeting. Because of the busy work, she gives her gifts to the monitor, Chiaki Nanami. Due to the strange design of the school, the students’ desks are in a row. Chiaki Nanami wants to arrange gifts like this:
                                                                                                                                                                                        ^
0_0_18111800_5475\Main.java:5: 错误: 非法字符: '\u2019'
Chisa Yukizome works as a teacher in the school. She prepares many gifts, which consist of n kinds with a[i] quantities of each kind, for her students and wants to hold a class meeting. Because of the busy work, she gives her gifts to the monitor, Chiaki Nanami. Due to the strange design of the school, the students’ desks are in a row. Chiaki Nanami wants to arrange gifts like this:
                                                                                                                                                                                                                                                                                                                            ^
0_0_18111800_5475\Main.java:9: 错误: 非法字符: '\u2019'
In order to reflect the Chisa Yukizome’s generosity, the kinds of the ordinary gift on the adjacent table must be different.
                                      ^
0_0_18111800_5475\Main.java:15: 错误: 非法字符: '\u2019'
She wants to know how many students can get gifts in accordance with her idea at most (Suppose the number of students are infinite). As the most important people of her, you are easy to solve it, aren’t you?
                                                                                                                                                                                                        ^
0_0_18111800_5475\Main.java:18: 错误: 非法字符: '\u2264'
The first line of input contains an integer T(T≤10) indicating the number of test cases.
                                               ^
0_0_18111800_5475\Main.java:20: 错误: 非法字符: '\u2264'
Each case contains one integer n. The next line contains n (1≤n≤10) numbers: a1,a2,...,an, (1≤ai≤100000).
                                                             ^
0_0_18111800_5475\Main.java:20: 错误: 非法字符: '\u2264'
Each case contains one integer n. The next line contains n (1≤n≤10) numbers: a1,a2,...,an, (1≤ai≤100000).
                                                               ^
0_0_18111800_5475\Main.java:20: 错误: 非法字符: '\u2264'
Each case contains one integer n. The next line contains n (1≤n≤10) numbers: a1,a2,...,an, (1≤ai≤100000).
                                                                                             ^
0_0_18111800_5475\Main.java:20: 错误: 非法字符: '\u2264'
Each case contains one integer n. The next line contains n (1≤n≤10) numbers: a1,a2,...,an, (1≤ai≤100000).
                                                                                                ^
0_0_18111800_5475\Main.java:23: 错误: 非法字符: '\u201c'
For each test case, output one line containing “Case #x: y” (without quotes) , where x is the test case number (starting from 1) and y is the answer of Chiaki Nanami’s question.
                                               ^
0_0_18111800_5475\Main.java:23: 错误: 非法字符: '#'
For each test case, output one line containing “Case #x: y” (without quotes) , where x is the test case number (starting from 1) and y is the answer of Chiaki Nanami’s question.
                                                     ^
0_0_18111800_5475\Main.java:23: 错误: 非法字符: '\u201d'
For each test case, output one line containing “Case #x: y” (without quotes) , where x is the test case number (starting from 1) and y is the answer of Chiaki Nanami’s question.
                                                          ^
0_0_18111800_5475\Main.java:23: 错误: 非法字符: '\u2019'
For each test case, output one line containing “Case #x: y” (without quotes) , where x is the test case number (starting from 1) and y is the answer of Chiaki Nanami’s question.
                                                                                                                                                                     ^
0_0_18111800_5475\Main.java:31: 错误: 非法字符: '#'
Case #1: 2
     ^
0_0_18111800_5475\Main.java:33: 错误: 非法字符: '\uff1a'
具体做法:维护一个队列
    ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff08'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                      ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff01'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                         ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff01'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                          ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff01'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                           ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff09'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                            ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff0c'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                             ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff0c'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                                               ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff0c'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                                                            ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff1a'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                                                                         ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff0c'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                                                                                             ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\u3002'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                                                                                                     ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\uff0c'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                                                                                                                    ^
0_0_18111800_5475\Main.java:34: 错误: 非法字符: '\u3002'
首先可以知道答案不超过所有礼物之和的二分之一(重要!!!),那么通过一个队列来模拟发礼物的过程,将每个礼物的个数放入队列,然后弹出一个判断两个条件:1.如果大于1就减去1然后放入队列尾部,然后将结果加一。2.队列里是否还有下一个元素,也就是要满足题目中不同礼物相隔这个条件。
                                                                                                                                        ^
0_0_18111800_5475\Main.java:36: 错误: 非法字符: '\uff0c'
最后判断如果结果大于所有礼物之和的二分之一


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-26 21:42:17, Gzip enabled