Save the 3D world 1 !!!
Statement
Goal
The evil Doctor 2D wants to level the world out, to stop it you need to educate FBI3 on ​​where to position their agents.You are on a 3-dimensional map.
You should output the sum of all the points that are aligned on the entire Z axis.
Good Luck!
The points are '.'
Input
int width, The breadth of the world
int height, The height of the world
int depth, the depth of the world
stringline
int height, The height of the world
int depth, the depth of the world
stringline
Output
A int, the sum of all the points that are aligned on the entire Z axis.
Constraints
0<width & height & depth<15
Example
Input
2 2 2 #. ## #. ##
Output
2
Tags
3D World, Spy
Difficulty
Easy
Test cases
Test 1 Test
Input
2
2
2
#.
##
#.
##
Output
2
Validator 1 Validator
Input
3
3
3
#.#
###
##.
###
###
##.
###
###
##.
Output
3
Test 2 Test
Input
15
4
2
###############
###############
###############
###############
###############
###############
###############
###############
Output
0
Validator 2 Validator
Input
1
1
1
#
Output
0
Test 3 Test
Input
2
3
4
.#
.#
#.
##
.#
#.
##
.#
#.
#.
.#
#.
Output
8
Validator 3 Validator
Input
2
3
4
.#
.#
#.
.#
.#
#.
##
.#
#.
##
..
#.
Output
8
Test 4 Test
Input
15
1
1
...............
Output
15
Validator 4 Validator
Input
6
1
2
......
......
Output
12
Solution language
Solution
Stub generator input