Skip to content

Instantly share code, notes, and snippets.

b0:0b
b1:1b
b+:|c
c0:0c
c1:1c
c:>
0x:x0
1x:x1
<x:x<
zx:xz
b0:0b
b1:1b
b+:|0000000000000000000000000000000000000000000000000000000000000000c
c0:0c
c1:1c
c:>
0x:x0
1x:x1
<x:x<
zx:xz
@kusano
kusano / TurnipPrices.cpp
Created June 9, 2020 12:53 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@kusano
kusano / atsumori07.txt
Last active August 1, 2020 07:39
あつまれどうぶつの森7月
サソリ 19:00-04:00 草
デメキン 09:00-16:00 池 SS
ウミウシ any 小
オオシャコガイ any 大
コウモリダコ 16:00-09:00 大
ダイオウグソクムシ 09:00-16:00, 21:00-04:00 大
カブトガニ 21:00-04:00 大
@kusano
kusano / 0.md
Last active July 27, 2020 17:22
Facebook Hacker Cup 2020 qualification
@kusano
kusano / atsumori08.txt
Last active September 7, 2020 10:50
あつまれどうぶつの森8月
サソリ 19:00-04:00 草
ダイオウグソクムシ 09:00-16:00, 21:00-04:00 大
@kusano
kusano / C.cpp
Created August 17, 2020 16:09
Facebook Hacker Cup 2020 Round 1 C
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <utility>
#include <functional>
#include <algorithm>
using namespace std;
int main()
@kusano
kusano / ai2.py
Created August 29, 2020 09:04
天下一GameBattleContest2020
import os
import random
import time
from typing import List, Tuple
from urllib.request import urlopen
GAME_SERVER = os.getenv('GAME_SERVER', 'https://contest.gbc-2020.tenka1.klab.jp')
TOKEN = os.getenv('TOKEN', '2eabf8b3371b35cfc82241c427f2dc2b')
def call_api(x) -> str:
@kusano
kusano / A.py
Last active August 30, 2020 06:12
Facebook Hacker Cup 2020 Round 2
def read_array(N, K):
X = list(map(int, input().split()))
A, B, C, D = map(int, input().split())
for i in range(K, N):
X += [(A*X[i-2]+B*X[i-1]+C)%D]
return X
T = int(input())
for t in range(T):
N, K = map(int, input().split())
@kusano
kusano / atsumori09.txt
Last active September 27, 2020 17:19
あつまれどうぶつの森9月
サソリ 19:00-04:00 草
チョウザメ any 河口 LLL
パイク any 川 LL
ダイオウグソクムシ 09:00-16:00, 21:00-04:00 大
サザエ any 中