This file contains hidden or 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[100][100]; | |
| int board_size; | |
| int is_pos_board[100][100]; | |
| bool checkBoard(int r,int c){ | |
| if(r>= board_size || c>=board_size) |
This file contains hidden or 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 house_num; | |
| int paint_costs[1000][3]; | |
| int min_cost[1000][3]; | |
| int paintHouse(int color_num, int house_idx){ | |
| if(house_idx == house_num -1) |
This file contains hidden or 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 stair_num; | |
| int stair_scores[300]; | |
| int max_stair[300][2]; | |
| int ascendStair(int stair_idx,int succession){ | |
| if(stair_idx == stair_num-1) |
This file contains hidden or 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<vector> | |
| #include<string.h> | |
| #include <algorithm> | |
| using namespace std; | |
| int file_num; | |
| string wild_card; | |
| string file_name; |
This file contains hidden or 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> | |
| #include<queue> | |
| #include<vector> | |
| #include<algorithm> | |
| using namespace std; | |
| vector<int> coin_value; | |
| int cache[10001]; | |
| int coin_num, goal_value; |
This file contains hidden or 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 row,col; | |
| int map[500][500]; | |
| int route_count[500][500]; | |
| int move_row[4] = {0,1,0,-1}; | |
| int move_col[4] = {1,0,-1,0}; |
This file contains hidden or 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 N; | |
| int number_set[100]; | |
| long long dp[21] ={0,}; | |
| long long lowerGradeMath(int idx){ | |
| if(idx >= N-1) | |
| return dp[number_set[N-1]]; |
This file contains hidden or 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> | |
| using namespace std; | |
| int row,col; | |
| int board[1000][1000]; | |
| int change_row[3] = {-1,-1,0}; | |
| int change_col[3] = {-1,0,-1}; | |
| int main() { |
This file contains hidden or 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 row,col; | |
| int selected_num; | |
| int dp[16][16]; | |
| int main() { | |
| cin>>row>>col>>selected_num; |
This file contains hidden or 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 song_num; | |
| int start_volume; | |
| int max_volume; | |
| int volume_list[101]; | |
| int cache[101][1001]; |