Skip to content

Instantly share code, notes, and snippets.

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