Skip to content

Instantly share code, notes, and snippets.

View bGlzdGRlcg's full-sized avatar
🍥
Galgaming

listder bGlzdGRlcg

🍥
Galgaming
View GitHub Profile
@bGlzdGRlcg
bGlzdGRlcg / awa.cpp
Last active July 31, 2025 16:52
awa
#include<opencv2/opencv.hpp>
int main(){
char g[16];
scanf("%s", g);
cv::Mat awa(2,2, CV_8UC4);
awa.at<cv::Vec4b>(0,0) = cv::Vec4b(g[2], g[1], g[0], g[3]);
awa.at<cv::Vec4b>(0,1) = cv::Vec4b(g[6], g[5], g[4], g[7]);
awa.at<cv::Vec4b>(1,0) = cv::Vec4b(g[10], g[9], g[8], g[11]);
awa.at<cv::Vec4b>(1,1) = cv::Vec4b(g[14], g[13], g[12], g[15]);
#include <fstream>
#define ui unsigned int
#define scuc static_cast<unsigned char>
#define scc static_cast<char>
#define b std::ios::binary
#define ifs std::ifstream
#define ofs std::ofstream
ui high(ui h, bool &t) {
@bGlzdGRlcg
bGlzdGRlcg / main.cpp
Last active May 31, 2025 06:44
ぽぴぱ
#include "popipa.h"
#include <iostream>
int main(int argc, char *argv[]) {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " -e/-d" << std::endl;
return 1;
}
std::string input;
std::cin >> input;
#include <cstdio>
#include <vector>
#define let const auto
#define var auto
#define fn auto
const int BASE64_DECODE_TABLE[128] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
@bGlzdGRlcg
bGlzdGRlcg / main.cpp
Last active May 16, 2025 10:51
24 problem
#include <cstdint>
#include <cstdio>
#include <string>
#include <vector>
#define let const auto
#define fn auto
#define arr const std::vector<double>
#define str const std::string