解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class C1572 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { String num = sc.next(); int i = Integer.valueOf(num, 16); System.out.printf("%s %s %s\n", Integer.toString(i, 16).toUpperCase(), Integer.toString(i, 10), Integer.toString(i, 8)); } sc.close(); } }
0.0分
0 人评分