第二题的思路,不知道对不对 public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int x = sc.nextInt(), y = sc.nextInt(); int result = Math.max(1, (int) Math.log10(x / Math.pow(26, y))); System.out.printf("%d\n", result); } }
点赞 评论

相关推荐

哥_留个offer先:跟他说,你这个最好用c#,微软就用c#Java不适合这个项目
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务