运行 ID | 作者 | 题号 | 测评结果 | 分数 | 时间 | 内存 | 语言 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
425457 | l1075253150 | 1585 - [算法课贪婪]6和9组成的最大数字 | 编译错误 | 0 | 0 MS | 0 KB | Java | 459 | 2年前 |
Main.java:11: error: bad operand types for binary operator '%'
int c = a%(Math.pow(10,(b-1)));
^
first type: String
second type: double
Main.java:12: error: incompatible types: possible lossy conversion from double to int
int d = 9*Math.pow(10,b);
^
Main.java:13: error: bad operand types for binary operator '/'
int e = a/Math.pow(10,b);
^
first type: String
second type: double
3 errors