--

songqiming114514 2023-12-23 16:41:04

#include #include using namespace std; int a[105][105];

int main() { int n,m,k,x,y; cin >> n >> m; cin >> k; for (int j = 1; j <= k; j++) { cin >> x >> y; a[x][y]++; }

int max = 0;
for (int i = 1; i <= n; i++){
	for (int j = 1; j <= m; j++) {
		cout << a[i][j] << " ";
	}
	cout << endl;
}
return 0;

}