Skip to content

Instantly share code, notes, and snippets.

View oupo's full-sized avatar

oupo oupo

  • Japan
View GitHub Profile
using System;
namespace shake_balls
{
class ShakeBalls
{
static void Main(string[] args)
{
int[] search = { 1, 4, 2, 4, 1, 2, 4, 1, 2, 4, 2, 1, 4, 1, 2, 4, 3, 4, 1, 2, 4, 3, 4, 2, 1, 4, 2, 1, 4, 2, 1, 2, 4, 1 };
for (UInt64 s = 0; s < (1 << 19); s++)
#include <fat.h>
#include <nds.h>
#include <stdio.h>
#include <iostream>
#include <algorithm>
// https://github.com/nayuki/QR-Code-generator
#include "BitBuffer.hpp"
#include "QrCode.hpp"
@oupo
oupo / build.sh
Last active January 3, 2020 10:36
togasat-wasm
emcc -std=c++11 main.cpp -O3 -s WASM=1 -s MODULARIZE=1 -s EXPORT_NAME=Togasat -s "EXPORTED_FUNCTIONS=['_solve', '_malloc', '_free']" -s "BINARYEN_METHOD='native-wasm'" -o togasat.js
#include <iostream>
#include <random>
#include <cstdint>
#include <chrono>
using namespace std;
#include <easy-ip.h>
typedef int64_t s64;
typedef uint64_t u64;
typedef __int128 s128;
#include <cstdio>
#include <cstdint>
#include <cinttypes>
#include <cmath>
#include <algorithm>
#include <chrono>
#include <random>
typedef int64_t s64;
typedef uint64_t u64;
require "mathn"
SHIFT = 16
SHIFT2 = SHIFT*2
A = 0x41c64e6d % 2**SHIFT2
B = 0x6073 % 2**SHIFT2
def f(x)
(A * x + B) % 2**SHIFT2
end
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass{jsarticle}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{bm}
\usepackage[dvipdfmx]{graphicx}
\setlength{\textwidth}{110truemm}
\newcommand{\transpose}[1]{{}^t\!{#1}}
\begin{document}
#include <cstdio>
#include <cstdint>
#include <cmath>
#include <algorithm>
#include <chrono>
#include <random>
typedef int64_t s64;
typedef uint64_t u64;
typedef __int128 s128;
#include <cstdio>
#include <cstdint>
#include <cmath>
#include <algorithm>
#include <chrono>
#include <random>
typedef int64_t s64;
typedef uint64_t u64;
typedef __int128 s128;