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 <iostream> | |
#include <string.h> | |
using namespace std; | |
int board[9][9]; | |
bool printed = false; //전체 재귀의 종료 여부 | |
void PrintBoard(){ | |
for(int i=0; i<9 ; ++i){ | |
for(int j=0; j<9 ; ++j){ |
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 <iostream> | |
#include<queue> | |
#include<string> | |
#include<string.h> | |
using namespace std; | |
int N,M; | |
int map[1001][1001]; | |
int short_cut[1001][1001][2]; //벽을 뚤은 경우와 안 뚤은 경우 두가지를 서로 다르게 저장 | |
int ch_r[4] = {1,0,-1,0}; |
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 <iostream> | |
#include <string.h> | |
using namespace std; | |
int N,S; | |
int arr[20]; | |
bool selected[20]; | |
int count =0; | |
void Recursive(int n,int cnt,int sum,int idx){ |
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<iostream> | |
using namespace std; | |
int borrowCost[1000]; | |
int main(){ | |
int numTest; | |
int maxDays,numTeam; | |
double minCost; | |
double divResult; |
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<iostream> | |
#include<string> | |
#include<string.h> | |
using namespace std; | |
char board[5][5]; | |
bool posAlphabet[5][5][10]; | |
int wordNum; | |
string words[10]; | |
bool isPosWords[10]; |
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<iostream> | |
#include<string.h> | |
using namespace std; | |
int studentNum; | |
int partnerNum; | |
int totalPairNum; | |
bool partnerBoard[45][45]; | |
bool isPosMatch[10]; |
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<iostream> | |
#include<string.h> | |
using namespace std; | |
char board[20][20]; | |
int height, width; | |
int whiteNum; | |
int blockModel[4][2][2] ={{{1,0},{1,1}}, {{0,1},{1,1}},{{1,-1},{1,0}},{{0,1},{1,0}} }; //row, column순 |
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<iostream> | |
#include<string.h> | |
using namespace std; | |
char board[20][20]; | |
int height, width; | |
int whiteNum; | |
int blockModel[4][2][2] ={{{1,0},{1,1}}, {{0,1},{1,1}},{{1,-1},{1,0}},{{0,1},{1,0}} }; //row, column순 |
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<iostream> | |
#include<vector> | |
#include<string.h> | |
using namespace std; | |
int pushedNum[10]; //누른 스위치의 위치에 그 횟수를 저장 | |
int clockState[16]; | |
vector<vector<int>> clockSwitch; | |
int minimum =INT32_MAX; |
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<iostream> | |
#include<vector> | |
#include<string.h> | |
using namespace std; | |
int boardSize; | |
int maxBlock =0; | |
void MoveDown(vector<vector<int>> &board){ | |
for(int row=boardSize-1; row>0 ; --row) |
OlderNewer