题目来源:牛客网 BC16 字符转ASCII码

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
char c = str.charAt(0); // 提取str中的第一个字符
System.out.println((int)c);
}
}

409

被折叠的 条评论
为什么被折叠?



