written by hakatashi
This file contains hidden or 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
// sisoku.cpp | (c) 2009 Hakatashi | Licensed under CC0 1.0 Universal http://creativecommons.org/publicdomain/zero/1.0/ | |
#include <stdio.h> | |
#include <math.h> | |
#include <string.h> | |
/***************************************************** | |
** 即席で作ったプログラムなので限りなく汚いです。 ** | |
*****************************************************/ |
This file contains hidden or 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
#include <iostream> | |
#include <stdlib.h> | |
#include <stdio.h> | |
bool atnd(int a, char b) { | |
if (b == 'J') { | |
if (a >> 0 & 1 == 1) return true; | |
else return false; | |
} else if (b == 'O') { | |
if (a >> 1 & 1 == 1) return true; |
This file contains hidden or 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
#include <iostream> | |
#include <stdlib.h> | |
#include <stdio.h> | |
int main() { | |
int W, H, N, X[1000], Y[1000]; | |
short int dp[1000][1000]; | |
std::cin >> W >> H >> N; | |
for (int i = 0; i < N; i++) { | |
std::cin >> X[i] >> Y[i]; |
This file contains hidden or 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
#include <iostream> | |
#include <windows.h> | |
#include <stdlib.h> | |
#include "EasyBMP.h" // http://easybmp.sourceforge.net/ | |
using namespace std; | |
INPUT input[5][24]; | |
int complete = 0; | |
int colno = 0; |
This file contains hidden or 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
# -* coding: utf-8 -*- | |
import sys | |
import os | |
import re | |
import argparse | |
import shutil | |
from xml.etree.ElementTree import * | |
parser = argparse.ArgumentParser(description='simple utility to process niconico comment XML file.') |
This file contains hidden or 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
orz=3 |
This file contains hidden or 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
String.prototype.capitalize = function() { | |
return this.charAt(0).toUpperCase() + this.slice(1); | |
}; | |
var Greet = function(greeting, objection) { | |
this.greeting = greeting || 'hello'; | |
this.objection = objection || 'world'; | |
this.do = function() { | |
console.log((this.greeting + ', ' + this.objection + '!').capitalize()); | |
}; |
This file contains hidden or 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
#PgUp::Volume_Up | |
#PgDn::Volume_Down | |
Pause::Media_Play_Pause | |
ScrollLock & h::send {Left} | |
ScrollLock & j::send {Down} | |
ScrollLock & k::send {Up} | |
ScrollLock & l::send {Right} | |
ScrollLock & y::send {Home} |
OlderNewer