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++){ |
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 n = 4; | |
int main(){ | |
string a[n] = {"사과", "딸기", "포도", "배"}; | |
/* 경우의 수 16개 출력하기 */ | |
for(int i=0; i < (1 << n); i++){ | |
string ret = ""; | |
for(int j=0; j < n; j++){ |