Skip to content

Instantly share code, notes, and snippets.

#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int n, w, h;
int ans = -1;
vector<vector<int>> anstmp;
#include <deque>
#include <vector>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
// 고객에 대한 정보
typedef struct __ct {
#include <cmath>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int mat[16][16];
int main(void) {
#include <vector>
#include <iostream>
using namespace std;
int dx[4] = { 0, -1, 0, 1 };
int dy[4] = { 1, 0, -1, 0 };
int mat[101][101];
int ans = 0;
#include <queue>
#include <tuple>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int dx[4] = { 1, -1, 0, 0 };
int dy[4] = { 0, 0, 1, -1 };
#include <map>
#include <vector>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int mat[100][100];
int tmat[100][100];
#include <map>
#include <vector>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
bool cmp(const pair<int, int> &u, const pair<int, int> &v) {
if (u.second == v.second) {
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
typedef struct __shark {
int dir, vc, size;
__shark() : dir(0), vc(0), size(0) {}
__shark(int dir, int vc, int size) :
#include <algorithm>
#include <iostream>
#include <cstring>
#include <vector>
#include <queue>
#include <tuple>
using namespace std;
int dist[5][5][5];
#include <iostream>
using namespace std;
int n, k;
int mat[10][10];
int person[3][21];
int ans;
int p[3];