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 <tuple> | |
| #include <deque> | |
| #include <queue> | |
| #include <iostream> | |
| using namespace std; | |
| int mat[50][50]; | |
| int tmat[50][50]; | |
| int dx[4] = { 1, -1, 0, 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 <queue> | |
| #include <tuple> | |
| #include <vector> | |
| #include <cstring> | |
| #include <iostream> | |
| #include <algorithm> | |
| using namespace std; | |
| typedef struct __shark { |
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 <vector> | |
| #include <iostream> | |
| using namespace std; | |
| int ans = -1; | |
| bool checkmat(vector<vector<int>> &mat) { | |
| for (int i = 0; i < 10; i++) { | |
| for (int j = 0; j < 10; j++) { |
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 <tuple> | |
| #include <queue> | |
| #include <deque> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| using namespace std; | |
| int ans = -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
| /* | |
| * tinyRTC.c | |
| * | |
| * Created: 2019-08-11 오후 4:19:14 | |
| * Author : yeong | |
| */ | |
| #define F_CPU 16000000UL | |
| #include <util/delay.h> | |
| #include <avr/io.h> |
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
| .PHONY: all clean | |
| SRCS = $(wildcard *.cpp) | |
| PROGS = $(patsubst %.cpp,%,$(SRCS)) | |
| CFLAGS = -Wall -Werror | |
| all: $(PROGS) | |
| %: %.cpp | |
| $(CC) $(CFLAGS) -o $@ $< -lrt -lstdc++ |
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 <cmath> | |
| #include <vector> | |
| #include <iostream> | |
| using namespace std; | |
| int main(void) { | |
| ios_base::sync_with_stdio(false); | |
| cin.tie(nullptr); |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| char board[][50] = { | |
| "-------------------------------------------\n", | |
| "| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |\n", | |
| "-------------------------------------------\n", | |
| "| | | | | | | | | | | | | | | | | | | | | |\n", | |
| "-------------------------------------------\n", |
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
| .PHONY: all clean | |
| CFLAGS = -Wall -Werror -pthread | |
| TARGET = exeFile | |
| SRC = $(wildcard *.cpp) | |
| OBJ = $(SRC:.cpp=.o) | |
| all : $(TARGET) | |
| $(TARGET) : $(OBJ) |
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 <queue> | |
| #include <tuple> | |
| #include <string> | |
| #include <cstring> | |
| #include <iomanip> | |
| #include <iostream> | |
| using namespace std; | |
| int mat[100][100]; |