Submission #428215

# Submission time Handle Problem Language Result Execution time Memory
428215 2021-06-15T08:51:58 Z 장태환(#7562) Posters on the wall (CPSPC17_posters) C++17
0 / 100
8 ms 1168 KB
#include <iostream>
using namespace std;
int cou[501][501];
int main()
{
    int a,b,N,M,e;
    cin >> a >> b >> N >> M >> e;
    int i;
    for(i=0;i<N;i++)
    {
        int a,b,c,d;
        cin >> a >> b >> c >> d;
        if(a>c)
            swap(a,c);
        if(b>d)
            swap(b,d);
        int j,k;
        for(j=a;j<=c;j++)
        {
            for(k=b;k<=d;k++)
                cou[j][k]=1;
        }
    }
    for(i=0;i<N;i++)
    {
        int a,b,c,d,e;
        cin >> a >> b >> c >> d>>e;
        if(a>c)
            swap(a,c);
        if(b>d)
            swap(b,d);
        int j,k;
        int ans=0;
        for(j=a;j<=c;j++)
        {
            for(k=b;k<=d;k++)
                ans+=cou[j][k];
        }
        cout << ans<<'\n';
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 1168 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 1168 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 1168 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 1168 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 1168 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -