This file contains hidden or 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<vector> | |
#include<algorithm> | |
//#define CERR_DEBUG | |
using namespace std; | |
vector<vector<int> > matrix, res; |
This file contains hidden or 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
#ifndef BSTREE_H_ | |
#define BSTREE_H_ | |
#include<cstdlib> | |
#include<algorithm> | |
namespace fsa | |
{ | |
template<class _tp> | |
class bstree |
This file contains hidden or 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
#!/bin/bash | |
prog=$1 | |
points=$2 | |
cnt=0 | |
# Compile | |
g++ -g3 $prog/$prog.cpp -o $prog.o -lm | |
if [ $? != 0]; then | |
echo Compilation error. |
This file contains hidden or 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
import java.util.Scanner; | |
import java.io.File; | |
import java.util.Arrays; | |
import java.util.ArrayList; | |
import java.io.IOException; | |
import java.util.stream.Stream; | |
public class E21p3 { | |
public static void main(String[] args) throws IOException { | |
if (args.length == 0) { |
This file contains hidden or 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
namespace bt | |
{ | |
#define __AVL_ALLOWS_DUPLICATE | |
inline int __max(int lhs, int rhs) | |
{ | |
return lhs < rhs ? rhs : lhs; | |
} |
This file contains hidden or 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
Process: Itsycal [6288] | |
Path: /Applications/Itsycal.app/Contents/MacOS/Itsycal | |
Identifier: com.mowglii.ItsycalApp | |
Version: 0.12.2 (2022) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Itsycal [6288] | |
User ID: 501 | |
Date/Time: 2019-11-18 10:52:36.865 +0800 |
This file contains hidden or 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
import argparse | |
import multiprocessing as mp | |
from _queue import Empty | |
from math import sqrt, log, log2, e | |
from typing import List, Tuple, Callable, Set | |
from time import time | |
from imputil import get_subprocess_queue, comb, ic, lt | |
from imputil.entity import RR, Graph, HeapEntity, Heap |
This file contains hidden or 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
offsets () { | |
local pid=${1:-self} | |
cat "/proc/$pid/maps" | | |
awk '/ 00000000 / { | |
if ($5 != 0) { | |
split($1, a, "-"); | |
print a[1], $6}; | |
}' | | |
while read -r addr f | |
do |
This file contains hidden or 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
# oh-my-zsh & plugins & p10k | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
cat <<EOF | |
omz plugin enable z sudo zsh-autosuggestions zsh-syntax-highlighting | |
omz theme set powerlevel10k/powerlevel10k | |
EOF | zsh |