This commit is contained in:
2025-12-20 21:57:38 +08:00
parent befba62cf6
commit 43fecdd294
17 changed files with 119 additions and 2 deletions
+8 -2
View File
@@ -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();
}
}