WCIPEG 2018 ECOO Qualifier
Kanade was not really satisfied with last year's scores on the problem "Shattering Shadows". Specifically, no one solved it! Thus, she decided to torture the students who failed it by giving them the exact same problem but in three dimensions.
There are
For 90% of cases,
Input Specification
Line 1:
Each case consists of the following: An integer (0, 0, 0)
.
Output Specification
For each case, output the number of shadows that can be hit on a separate line.
Sample Input
3
4
10 10 10
-5 -5 -5
0 0 -1
1 1 1
6
-1 0 0
1 0 0
0 -1 0
0 1 0
0 0 -1
0 0 1
3
1 1 1
1 1 1
1 1 1
Sample Output
3
6
1
Comments