解题思路:
import java.util.Scanner; public class C1232 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { F(sc.nextLine()); } sc.close(); } private static void F(String input){ char[] chs = input.toCharArray(); char max = 'A' - 1; for(char ch : chs){ if(ch > max) max = ch; } System.out.println(input.replaceAll(""+max, ""+max+"(max)")); } }
注意事项:
参考代码:
0.0分
1 人评分
时间转换 (Java代码)浏览:575 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:277 |
printf基础练习2 (C语言代码)浏览:942 |
wu-理财计划 (C++代码)浏览:837 |
求圆的面积 (C语言代码)浏览:1670 |
C语言训练-自由落体问题 (C语言代码)浏览:617 |
printf基础练习2 (C语言代码)浏览:618 |
A+B for Input-Output Practice (VI) (C语言代码)浏览:558 |
简单的a+b (C语言代码)浏览:546 |
Tom数 (C语言代码)浏览:725 |