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
パッチールの模様(DPtのグラフィック版)について | |
RSEのグラフィックでのパッチールの模様については以下を参照してください | |
http://www5.atwiki.jp/metamon/pages/34.html | |
http://no2.pic.bz/document/others.html | |
http://www.freewebs.com/gatorshark/Spinda%20Painter.htm | |
RSE版とはそれぞれのブチの左上座標と形が違うだけです。 | |
パッチールのグラフィックは以下より取得できます。 |
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
// original: http://d.hatena.ne.jp/housuu2002/20091104/1257283619 | |
//孵化乱数列の再現 | |
//cf http://sou31.hp.infoseek.co.jp/pokemon/ran/ran_0.htm#6 | |
#include <iostream> | |
#include <iomanip> | |
#include <cstring> | |
unsigned long mersenne(unsigned long FSeed){ //FSeed が初期Seed |
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
function calc_trainer_id_by_seed(seed) { | |
var mt0 = seed >>> 0; | |
var mt1 = mul(1812433253, mt0 ^ (mt0 >>> 30)) + 1; | |
var mt2 = mul(1812433253, mt1 ^ (mt1 >>> 30)) + 2; | |
var mt_last = mt2; | |
for (var i = 3; i <= 398; i++) { | |
mt_last = mul(1812433253, mt_last ^ (mt_last >>> 30)) + i; | |
} | |
var value; | |
value = (mt1 & 0x80000000) | (mt2 & 0x7fffffff); |
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
#!ruby | |
# http://codezine.jp/article/detail/2886 のプログラムをRubyに移植しました | |
def main | |
merge_sort "input.txt", "result.txt" | |
end | |
def merge_sort(in_path, out_path) | |
open_multi([in_path, "rb"], [out_path, "wb"]) do |rf, wf| |
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
#!ruby | |
# next(next(s)) | |
# -> (s * a + b) * a + b | |
# -> s * a * a + a * b + b | |
# nextQ(nextP(s)) | |
# -> (s * aP + bP) * aQ + bQ | |
# -> s * aP * aQ + bP * aQ + bQ |
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
:0201FA20 B430 push {r4,r5} | |
:0201FA22 490C ldr r1,[PC,#0x30] ;PC+0x30=*(0x0201fa56)=#-335543779(0xec00021d) | |
:0201FA24 2427 mov r4,#0x27 ;r4 = 39(0x00000027) | |
:0201FA26 6088 str r0,[r1,#0x8] ;r1+0x8=*(0xec000225) | |
:0201FA28 490B ldr r1,[PC,#0x2c] ;PC+0x2c=*(0x0201fa58)=#34663424(0x0210ec00) | |
:0201FA2A 2001 mov r0,#0x1 ;r0 = 1(0x00000001) | |
:0201FA2C 6008 str r0,[r1,#0x0] ;r1+0x0=*(0x0210ec00)= write #1(0x00000001) | |
:0201FA2E 490B ldr r1,[PC,#0x2c] ;PC+0x2c=*(0x0201fa5e)=#-1989869027(0x8965021d) | |
:0201FA30 4B0B ldr r3,[PC,#0x2c] ;PC+0x2c=*(0x0201fa60)=#1812433253(0x6c078965) | |
:0201FA32 0124 lsl r4,r4,#0x4 ;r4 = 39 << 4 = 624(0x00000270) |
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
var timer_id; | |
(function() { | |
var i = 0; | |
loop(); | |
function loop() { | |
var start_time = Date.now(); | |
for (;;) { | |
if (judge_seed(i)) { | |
console.log(format_hex(i, 8)); | |
} |
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
#!ruby | |
require "Win32API" | |
module MarktimeSupport | |
EXENAME = "DeSmuME.exe" | |
BASE_ADDR = 0x00c70b20 | |
REGISTER_ADDR = 0x007afd20 | |
INFLOOP_CODE = 0xe7fe |
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
#!ruby -Ku | |
require "set" | |
def main() | |
PRNG.init_cache | |
load_waza_list "waza_list.txt" | |
num_monohiroi = 5 | |
result_max = 10 | |
count = 0 | |
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
0x5b0d0666 マジックコート [] | |
0x5b0d0667 からてチョップ [[3, 2]] | |
0x5b0d0668 ずつき [] | |
0x5b0d0669 はっぱカッター [[2, 49]] | |
0x5b0d066a じゅうでん [] | |
0x5b0d066b あくうせつだん [] | |
0x5b0d066c だましうち [] | |
0x5b0d066d かいふくふうじ [] | |
0x5b0d066e あられ [] | |
0x5b0d066f むしくい [] |
OlderNewer