更新
This commit is contained in:
Binary file not shown.
@@ -3,8 +3,14 @@ import java.util.Scanner;
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
Scanner in = new Scanner(System.in);
|
||||
int n = in.nextInt();
|
||||
System.out.println(n % 3 == 0 ? "hua" : "ming");
|
||||
String s = in.nextLine();
|
||||
String[] words = s.split(" ");
|
||||
StringBuilder sb = new StringBuilder(s.length());
|
||||
for (int i = words.length - 1; i >= 0; i--) {
|
||||
sb.append(words[i]);
|
||||
if (i > 0) sb.append(' ');
|
||||
}
|
||||
System.out.println(sb.toString());
|
||||
in.close();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user