1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#include<iostream> using namespace std; bool sq[30][30][30]={0}; int main(){ int c,k,g; int sakuzyotime; cin>>c>>k>>g>>sakuzyotime; while(sakuzyotime--){ int sakuzyox1,sakuzyox2,sakuzyoy1,sakuzyoy2,sakuzyoz1,sakuzyoz2; cin>>sakuzyox1>>sakuzyoy1>>sakuzyoz1>>sakuzyox2>>sakuzyoy2>>sakuzyoz2; for(int x=sakuzyox1;x<=sakuzyox2;x++){ for(int y=sakuzyoy1;y<=sakuzyoy2;y++){ for(int z=sakuzyoz1;z<=sakuzyoz2;z++){ sq[x][y][z]=1; } } } } int ans=0; for(int x=1;x<=c;x++){ for(int y=1;y<=k;y++){ for(int z=1;z<=g;z++){ if(sq[x][y][z]==0){ ans++; } } } } cout<<ans<<endl; return 0; }
|
I will kill.
I will destroy the world.
No matter what you do, I don’t stop.
I’m the only one who’s right.
I will kill.
I will destroy the world.
No matter what you do, I don’t stop.
It is what it is.
It is what it is.
It is not… It’s not my fault.
----SAKUZYO BEAM---->