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-22 23:34:03
机器人的容器
Time Limit:
3000ms
Memory Limit:
32768KB
This problem will be judged on
HDU
. Original ID:
2235
64-bit integer IO format:
%I64d
Java class name:
Main
Prev
Submit
Status
Statistics
Next
Font Size:
Description
这是一个n*m的矩形,矩形的每一个单位格子上的高度为h(0<=h<1000),请问这个容器容量。
Input
输入一个正整数T表示有T组数据
对于每组数据第一行输入两个正整数n,m(0<n,m<500)表示矩阵的大小。
接下来有n行,每行m个整数h。
Output
对于每组输入输出一个整数表示容量。
Sample Input
1 4 4 1 1 1 1 1 0 0 1 1 0 0 1 1 1 1 1
Sample Output
4
Source
HDOJ 2008 Summer Exercise(2)- Hold by Captain Xu
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