Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zaki-joho's full-sized avatar
🌴
On vacation

Yamazaki Hiroki zaki-joho

🌴
On vacation
View GitHub Profile
@zaki-joho
zaki-joho / gist:d7d5bb74cce1faab0e17f949e237a020
Created March 28, 2021 07:38
TexLive (in Visual Studio Code) settings.json
"latex-workshop.latex.tools": [
{
"name": "platex",
"command": "platex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
// https://atcoder.jp/contests/kupc2020/tasks/kupc2020_c
#include <random>
#include "bits/stdc++.h"
using namespace std;
void solve() {
const uint64_t seed = 3169617890;
const int N = 18, CHAR_NUM = 26;
@zaki-joho
zaki-joho / report_template.tex
Last active July 9, 2020 15:07
report template
\documentclass{jsarticle}
\usepackage[dvipdfmx]{graphicx}
\usepackage{listings}
\lstset{%
language={C},
basicstyle={\small},%
identifierstyle={\small},%
commentstyle={\small\itshape},%
keywordstyle={\small\bfseries},%
@zaki-joho
zaki-joho / beamer_template.tex
Created July 9, 2020 14:53
beamer template
\documentclass[dvipdfmx,11pt,notheorems]{beamer}
%%%% 和文用 %%%%%
\usepackage{bxdpx-beamer}
\usepackage{pxjahyper}
\usepackage{minijs}%和文用
\renewcommand{\kanjifamilydefault}{\gtdefault}%和文用
%%%% スライドの見た目 %%%%%
\usetheme{Madrid}
\usefonttheme{professionalfonts}
@zaki-joho
zaki-joho / persistent-stack.rs
Created June 20, 2020 12:38
persistent stack
use std::sync::Arc;
struct List<T> {
head: Link<T>,
}
type Link<T> = Option<Arc<Node<T>>>;
struct Node<T> {
elem: T,
@zaki-joho
zaki-joho / single.rs
Created June 20, 2020 12:35
single linked list
struct Node<T> {
elem: T,
next: Link<T>,
}
type Link<T> = Option<Box<Node<T>>>;
struct List<T> {
head: Link<T>,
size: u32,
@zaki-joho
zaki-joho / solver.cpp
Created June 19, 2020 18:20
sosuu daihinmin solver
// #include <boost/multiprecision/cpp_int.hpp>
// #include <boost/multiprecision/miller_rabin.hpp>
// #include <boost/random/mersenne_twister.hpp>
#include <gmpxx.h>
#include "bits/stdc++.h"
//#include "json.hpp"
#include "nlohmann/json.hpp"
using namespace std;
// namespace mp = boost::multiprecision;