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
// puyoai のやつ 速い | |
fn popcount_u16x8_1(&self) -> Self { | |
Self(unsafe { | |
let mask4 = _mm_set1_epi8(0x0F); | |
let lookup = _mm_setr_epi8(0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4); | |
let low = _mm_and_si128(mask4, self.0); | |
let high = _mm_and_si128(mask4, _mm_srli_epi16(self.0, 4)); | |
let low_count = _mm_shuffle_epi8(lookup, low); |
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
// 初期設定 | |
// 1. CLIST(`https://clist.by/`)にログイン | |
// 2. `https://clist.by/api/v1/doc/`の上部の「show my api-key」を選択 | |
// 3. 出てきたモーダル下部の「Param query」を下のCLIST_APIに貼り付け | |
const CLIST_API = "/?username=*****&api_key=****************************************"; | |
// contestIds : 表示するコンテストサイトのリスト (CLISTにおけるコンテストサイトのID) | |
// > `https://clist.by/api/v1/doc/#!/resource/resource_list/`から検索できる | |
// * codeforces.com : 1 | |
// * atcoder.jp : 93 |
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
# Compro clang-format | |
# - https://blog.knshnb.com/posts/vscode-setup-competitive/ | |
# - https://www.pynote.info/entry/clang-format-settings | |
# - http://algo13.net/clang/clang-format-style-oputions.html | |
--- | |
BasedOnStyle: Google | |
ForEachMacros: [REP, RREP, EACH, PERM] | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: Align |
This file has been truncated, but you can view the full file.
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
@font-face { | |
font-family: 'JetBrainsMono NF'; | |
src: url('data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAABiWQABIAAAAOP/AABiUlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGlobQByB8BYGYACRHgiBUAmcFREICrGzCKbIQQuBjmQAATYCJAPHOAQgBY9yB4PAFgyBVlsHQrsanl9E23uogeRwBYUzN84u6/+zt5cmRlBYakfU/PxZULRJaheDO8Eawh5uxJSZ9TEiF0CpuugnSYP6xnO7r6uRLwWGzrGtCV1UFThFV9n//////////////////99m8uMpN2dms2/m/7/Hzy7J5oQkkogBD5DKFQWhFtHWolbr0Za2tjdBzTHvWWAZaV6U4BbbEHKqqI5sTe60AmK307Gmx7zcFwEZMhLrYMgqNhrHGGORFZlgTPn6yMi4mZFRnm+4nPwkBMqCTme3Nsmzubi43cSyyViWvi1xfCfP8zxvKOfGwcHBlzzvT7dDzjKeccg7YnW3ruuiqClP3z12f4c9sLIsy7IMKdzd26DAHu7HGH2MJfls9yvm6BFol6Pl/bwvHdBhrI+OmU/dgI5Yw05Wj4uiecJOsyoUI3Z2TwREBPGpJY0LOhdOSaXjJ/P9uXmaUpZ4hVZdfM2erfLxtrgNaYMgZZlKYazc5Y4euW/8rF1Q1m3POyuKOzScCytSFXa6bmtmJW00IYTbgZelCIhAwsvB8+Gt3vrJ3GcdWqcDzya46h4a3f8qNw8WX8y2/HGgQaN7XrtAvAUjBzWQsVuBLV9GevltMQ+Brh4tQqgCu9jkyrRkpZHr4bt84elwWS17MbT2lXPfX3PHRgISvRbuJj3fYHmckPfScYpCoqfCK9d5I3l5npq39A0hGTg4OPg5TUkpSgdJfJK94+0xv37jxDzFnl89Ycomz+gBGS9HSzpzk236fp0c6wkrdk9 |
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
import subprocess | |
from sys import argv | |
def test(cmd, input=b''): | |
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=True) | |
p.stdin.write(input) | |
return p.communicate()[0] | |
def error(): | |
print("< Hack Case Detector >") |
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
#!/bin/zsh | |
set -eux | |
VERSION=$(gcc -v 2>&1 | tail -n 1 | awk '{print $3}') | |
BASEDIR=/usr/local/include/bits | |
GCHDIR=stdc++.h.gch | |
echo "create $BASEDIR/$GCHDIR/*.gch ..." |
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
/* @theme mygaia */ | |
@import 'gaia'; | |
h1 { padding-top: 200px; } /* title */ | |
header { text-align: right; } /* header */ | |
h1, h2, h3, h4, h5, h6 { font-weight: 100; } /* no-bold */ | |
/* section { padding-top: 80px; } */ | |
/* h3: ### hoge */ | |
h3 { margin-top: 20px; } |