49,437
社区成员




嘿嘿嘿 今天放个假 和女朋友出去玩了,回来不早了,先发个打卡帖子,题解博客明天补哈
import java.util.Scanner;
/**
* @ClassName 英文字母
* @Author @浅夜
* @Date 2023/3/19 22:41
* @Version 1.0
*/
public class 英文字母 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println((char)(n + 64));
}
}
import java.util.Scanner;
public class Main {
static int[] cnt = new int[26];
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
for (int i = 0; i <s.length() ; i++) {
char c = s.charAt(i);
cnt[c-'a']++;
}
int max= 0;
char c = ' ';
for (int i = 0; i <26 ; i++) {
if(max<cnt[i]){
max=cnt[i];
c=(char)(i+'a');
}
}
System.out.println(c);
System.out.print(max);
}
}