| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1369520 | solution6312 | Garden 3 (JOI26_garden) | C++17 | 293 ms | 4444 KiB |
#include <iostream>
using namespace std;
using ll=long long;
const ll inf64=1e18;
int H, W, N, X;
ll minrow=inf64, maxrow=-inf64, mincol=inf64, maxcol=-inf64;
int main()
{
cin>>H>>W>>N>>X;
while (N--)
{
ll U, D, L, R, C; cin>>U>>D>>L>>R>>C;
minrow=min(minrow, U);
maxrow=max(maxrow, D);
mincol=min(mincol, L);
maxcol=max(maxcol, R);
cout<<(maxrow-minrow+1)*(maxcol-mincol+1)<<endl;
}
return 0;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
