結果

提出番号 1734
提出者 OpenTheWindow
言語 C++
提出日時 2018-08-04 13:41:18
問題名 (69)机の配置
結果 AC
点数 100%

テストケース

テストケース 結果 得点 実行時間 メモリ使用量
1 AC 100% 2ms 8080KB
2 AC 100% 1ms 8688KB
3 AC 100% 2ms 8672KB
4 AC 100% 2ms 8000KB
5 AC 100% 2ms 8688KB
6 AC 100% 2ms 8416KB
7 AC 100% 2ms 8400KB
8 AC 100% 2ms 8304KB
9 AC 100% 2ms 7232KB
10 AC 100% 2ms 8448KB
11 AC 100% 1ms 8320KB
12 AC 100% 2ms 8416KB
13 AC 100% 2ms 8704KB
14 AC 100% 2ms 8048KB
15 AC 100% 2ms 7824KB
16 AC 100% 1ms 8064KB
17 AC 100% 2ms 8512KB
18 AC 100% 1ms 8704KB
19 AC 100% 2ms 8432KB
20 AC 100% 1ms 8688KB
21 AC 100% 2ms 7552KB
22 AC 100% 2ms 8144KB
23 AC 100% 2ms 8064KB
24 AC 100% 2ms 8000KB
25 AC 100% 2ms 8432KB
26 AC 100% 2ms 8016KB
27 AC 100% 2ms 7920KB
28 AC 100% 2ms 8016KB
29 AC 100% 2ms 8432KB
30 AC 100% 2ms 7808KB

ソースコード

#include<iostream>
#include<string>
#include<vector>
#include<set>
#include<algorithm>
#include<math.h>
#include<map>
#include<queue>	

using namespace std;

/*
//1
int main() {
	int f, c;
	cin >> f >> c;
	bool b = true;
	while (true) {
		if (b) {
			f -= 2;
			c--;
			if (f < 0 || c < 0) {
				cout << "K" << endl;
				break;
			}
				
			b = false;
		}
		else {
			f -= 2;
			c--;
			if (f < 0 || c < 0) {
				cout << "O" << endl;
				break;
			}
			b = true;
		}
	}

	return 0;
}
*/

/*
//2
int main() {
	int N, M;
	cin >> N >> M;
	int n[100];
	for (int i = 0; i < N; i++) {
		cin >> n[i];
	}
	sort(n, n + N);
	reverse(n, n + N);
	int tmp = 0;
	if (tmp >= M) {
		cout << 0 << endl;
		return 0;
	}
	for (int i = 0; i < N; i++) {
		tmp += n[i];
		if (tmp >= M) {
			cout << i + 1 << endl;
			break;
		}
	}

		return 0; 
}
*/


//3
int N, H, W;
int main() {
	cin >> N >> H >> W;
	char X[10][10];
	for (int i = 0; i < H; i++) {
		for (int j = 0; j < W; j++) {
			cin >> X[i][j];
		}
	}
	for (int h = 1; h <= N; h++) {
		int ans = 0;
		for (int i = 0; i < H; i++) {
			for (int j = 0; j < W; j++) {
				for (int k = 0; k < h; k++) {
					if (X[i][j + k] != '.') {
						break;
					}
					else if (k == h - 1 && X[i][j + k] == '.') {
						ans++;
						j += k;
					}
				}
			}
		}
		cout << ans << endl;
	}

return 0;
}


/*
//4
int main() {


return 0;
}
*/

/*
//5
int main() {


return 0;
}
*/

/*
//6
int main() {


return 0;
}
*/

/*
//7
int main() {


return 0;
}
*/

/*
//8
int main() {


return 0;
}
*/

/*
//9
int main() {


return 0;
}
*/

/*
//10
int main() {


return 0;
}
*/