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
/** | |
* @file reward.cpp | |
* @author Macesuted (i@macesuted.moe) | |
* @date 2023-03-11 | |
* | |
* @copyright Copyright (c) 2023 | |
* | |
*/ | |
#include <bits/stdc++.h> |
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
/** | |
* @file 6109.cpp | |
* @author Macesuted (i@macesuted.moe) | |
* @date 2022-03-11 | |
* | |
* @copyright Copyright (c) 2022 | |
* @brief | |
* My Tutorial: https://macesuted.moe/article/lg6109 | |
* | |
*/ |
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 <bits/stdc++.h> | |
using namespace std; | |
enum chess //棋子种类 | |
{ | |
NA, //无(这个位置是空的) | |
captain, //王 | |
guard, //士 | |
elephant, //象 | |
horse, //马 |
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 <algorithm> | |
#include <cstdio> | |
#include <iostream> | |
#include <queue> | |
#include <vector> | |
const int maxn = 205; | |
const int maxk = 105; | |
const int way[2][4] = {{1, 0, -1, 0}, {0, 1, 0, -1}}; |
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 <fstream> | |
#include <vector> | |
#include <cstdlib> | |
using std::cout; | |
using std::endl; | |
using std::cin; | |
using std::ios; |