#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 |
- |