제출 #1369520

#제출 시각아이디문제언어결과실행 시간메모리
1369520solution6312Garden 3 (JOI26_garden)C++17
3 / 100
293 ms4444 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;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…