解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int nums[]=new int[n]; for (int i = 0; i < n; i++) { String str=sc.next(); Integer.parseInt(str, 16); nums[i]=Integer.parseInt(Integer.toString(Integer.parseInt(str, 16),8)); } for (int i = 0; i < nums.length; i++) { System.out.println(nums[i]); } } }
0.0分
6 人评分
校门外的树 (C语言代码)浏览:1123 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:615 |
不会做的浏览:874 |
兰顿蚂蚁 (C++代码)浏览:1046 |
淘淘的名单 (C语言代码)浏览:1104 |
WU-判定字符位置 (C++代码)浏览:1406 |
【绝对值排序】 (C语言代码)浏览:821 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:569 |
DNA (C语言代码)浏览:750 |
1050题解(结构体数组与结构体指针的使用)浏览:1108 |