解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s; for (int i = 0; i < n; i++) { s = sc.next(); System.out.println(Integer.toOctalString(Integer.parseInt(s, 16))); } } }
0.0分
0 人评分
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:679 |
字符串输入输出函数 (Java代码)浏览:1439 |
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)浏览:646 |
C语言程序设计教程(第三版)课后习题1.5 (C++代码)浏览:1083 |
A+B for Input-Output Practice (C语言代码)浏览:465 |
【亲和数】 (C语言代码)浏览:598 |
剪刀石头布 (C++代码)浏览:1709 |
1197求助浏览:629 |
简单的a+b (C语言代码)浏览:509 |
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)浏览:424 |