F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

cube

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 606    Accepted Submission(s): 84


Problem Description
小白一直想写一份模板,作用是计算N个长方体的体积并,你能帮帮他么?
 

Input
首先输入一个N,代表接下去将要输入N个长方体。
接着输入N个长方体,每行输入3个数字,x , y , z 分别代表长方体的长宽高(我们可以简单的看做长方体的两个对角为(0,0,0)和(x,y,z))。0<n, x ,y ,z < 10000;
 

Output
这些长方体的体积和在一起是多少。
 

Sample Input
4 1 1 1 2 2 2 2 2 3 3 2 2
 

Sample Output
16
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 18:31:21, Gzip enabled