Skip to content

Instantly share code, notes, and snippets.

View Macesuted's full-sized avatar
🏫
Studying...

Macesuted Macesuted

🏫
Studying...
View GitHub Profile
@Macesuted
Macesuted / reward.cpp
Last active March 11, 2023 06:16
"「SFCOI-1」Sadness Fan Club Round 1" reward code
/**
* @file reward.cpp
* @author Macesuted (i@macesuted.moe)
* @date 2023-03-11
*
* @copyright Copyright (c) 2023
*
*/
#include <bits/stdc++.h>
@Macesuted
Macesuted / LG6109.cpp
Created March 13, 2022 12:42
LG6109 Code
/**
* @file 6109.cpp
* @author Macesuted (i@macesuted.moe)
* @date 2022-03-11
*
* @copyright Copyright (c) 2022
* @brief
* My Tutorial: https://macesuted.moe/article/lg6109
*
*/
@Macesuted
Macesuted / LG5380.cpp
Created March 8, 2022 09:58
LG5380 Code
#include <bits/stdc++.h>
using namespace std;
enum chess //棋子种类
{
NA, //无(这个位置是空的)
captain, //王
guard, //士
elephant, //象
horse, //马
@Macesuted
Macesuted / LG4944.cpp
Created March 8, 2022 09:49
LG4944 Code
#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}};
@Macesuted
Macesuted / LG2482.cpp
Last active March 6, 2022 01:50
LG2482 Code
#include <iostream>
#include <fstream>
#include <vector>
#include <cstdlib>
using std::cout;
using std::endl;
using std::cin;
using std::ios;