AlgorithmOJ
Problem
Local Problems
All Problems
Problem Category
Status
Contest
Standard Contests
Replay Contests
Virtual Contests
Ranklist
More...
News
About
F.A.Q
Recent Contests
Coming Soon...
Login
Register
2026-11-18 21:32:23
cube
Time Limit:
1000ms
Memory Limit:
32768KB
This problem will be judged on
HDU
. Original ID:
2893
64-bit integer IO format:
%I64d
Java class name:
Main
Prev
Submit
Status
Statistics
Next
Font Size:
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
2009 Multi-University Training Contest 10 - Host by NIT
Language:
C++
C++11
C++14
C
Java
Pascal
Python2
Python3
C#
Fortran
Perl
Ruby
Ada
SML
Visual C++
Visual C
CLang
CLang++
Theme:
Monokai
Solarized Light
Material
Share Code?
Yes
No
×
Login
Username:
Password:
Cookie:
Never
One Day
One Week
One Month
One Year
×
Register
Username:
Password:
Repeat Password:
Nickname:
School:
Email:
×
News Title
by