题解 | 小天的 Minecraft

小天的 Minecraft

https://www.nowcoder.com/practice/be38c66dca1941088b92f3ebbdcde882

java

参考:https://blog.nowcoder.net/n/48794a1e3d744713b486f7413da63a40

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int t=in.nextInt();
        while (t-->0) { 
            int a=in.nextInt();
            int b=in.nextInt();
            int c =in.nextInt();
            System.out.println(Math.pow((double)a/16,16)+(Math.pow((double)b/16,4)+Math.pow((double)c/16,4))*Math.pow((double)a/16,12)*16*15*14*13/(4*3*2*1));
        }
    }
}

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务