Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- // Custom types
- typedef unsigned int ui;
- typedef vector<int> vi;
- typedef vector<unsigned int> vui;
- typedef vector<vector<int>> vvi;
- typedef vector<vector<unsigned int>> vvui;
- // Macros
- #define ALL(v) (v).begin(), (v).end()
- // Constants
- const ui N = 1000;
- const ui M = 1000;
- // Globals
- bool picture[N][M];
- int main() {
- ui n, m;
- cin >> n >> m;
- for (ui i = 0; i < n; i++)
- for (ui j = 0; j < m; j++) {
- char temp;
- cin >> temp;
- picture[i][j] = temp == '#';
- }
- for (ui i = 0; i < n; i++)
- for (ui j = 0; j < m; j++)
- cout << picture[i][j];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement