Created
March 3, 2022 14:55
-
-
Save pithesun/eb7039ea2a3bbc3445c78b64bd229114 to your computer and use it in GitHub Desktop.
한자리수 숫자배열 받기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
const int max_n = 104; | |
int dy[4] = {-1, 0, 1, 0}; | |
int dx[4] = {0, 1, 0, -1}; | |
int n, m, a[max_n][max_n], visited[max_n][max_n], y, x; | |
int main(){ | |
scanf("%d %d", &n, &m); | |
for(int i = 0; i < n; i++){ | |
for(int j = 0; j < m; j++){ | |
scanf("%1d", &a[i][j]); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment