第一题 static void solve() throws IOException { String str = in.nextLine(); // 贪心 char[] s = str.toCharArray(); int n = s.length; int res = 0; for (int i = 0; i < n; i++) { if (i + 1 < n && s[i] == 'y' && s[i + 1] == ...