Skip to content

Instantly share code, notes, and snippets.

View uwi's full-sized avatar

Uwi Tenpen uwi

  • Pirika, Inc.
  • Hachioji, Tokyo
  • 06:21 (UTC +09:00)
View GitHub Profile
@uwi
uwi / ichyo.py
Created September 30, 2015 10:39
ichyo
import requests as req
def getinput():
r = req.get("http://ichyo.jp/quiz.txt")
a = [int(_) for _ in r.text.split()]
return a
def supply(func, path):
import os.path, json
if not os.path.exists(path):
@uwi
uwi / FCount.java
Created September 12, 2011 15:45
GDD2011 DevQuiz スライドパズル用
package gdd2011;
import java.io.File;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Scanner;
/**
* 現在の解答状況と残りカウント数、残り問題等の表示
* @author uwi
@uwi
uwi / data.txt
Last active August 29, 2015 14:28
dual palindrome 適当生データ ( https://www.codechef.com/COOK61/problems/DUALPAL )
[4, 16, [1, 2, 3, 5, 10, 15, 17, 34, 51, 85, 170, 255, 257, 273, 289, 305, 514, 530, 546, 562, 771, 787, 803, 819, 1285, 1365, 1445, 1525, 2570, 2650, 2730, 2810, 3855, 3935, 4015, 4095, 4097, 4369, 4641, 4913, 8194, 8466, 8738, 9010, 12291, 12563, 12835, 13107, 20485, 21845, 23205, 24565, 40970, 42330, 43690, 45050, 61455, 62815, 64175, 65535, 65537, 65793, 66049, 66305, 69649, 69905, 70161, 70417, 73761, 74017, 74273, 74529, 77873, 78129, 78385, 78641, 131074, 131330, 131586, 131842, 135186, 135442, 135698, 135954, 139298, 139554, 139810, 140066, 143410, 143666, 143922, 144178, 196611, 196867, 197123, 197379, 200723, 200979, 201235, 201491, 204835, 205091, 205347, 205603, 208947, 209203, 209459, 209715, 327685, 328965, 330245, 331525, 348245, 349525, 350805, 352085, 368805, 370085, 371365, 372645, 389365, 390645, 391925, 393205, 655370, 656650, 657930, 659210, 675930, 677210, 678490, 679770, 696490, 697770, 699050, 700330, 717050, 718330, 719610, 720890, 983055, 984335, 985615, 986895, 1003615, 1004895, 100
@uwi
uwi / Reactor2.java
Last active August 29, 2015 13:57
2048のAIのSelenium2と連携させているところ
package twothu;
import java.util.Arrays;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;