Skip to content

Instantly share code, notes, and snippets.

@fullmated
fullmated / 0500.cpp
Created May 1, 2011 07:52
Aizu Online Judge No.0500 "Card Game"
#include <cstdio>
#include <cstdlib>
// input values
int n = 1;
int *a_card, *b_card;
int main(){
// This loop is one mass.
while(1){
@fullmated
fullmated / 0522.cpp
Created May 1, 2011 09:34
Aizu Online Judge No.0522 "JOI and IOI"
#include <cstdio>
#include <cstring>
int main(){
char str[10001];
while(1){
int joi = 0, ioi = 0;
scanf("%s", str);
if(*str == 0)break;
for(int i = 0; i < 9999; i++){
@fullmated
fullmated / 0510.cpp
Created May 1, 2011 09:41
Aizu Online Judge No.0510 "Score"
#include <cstdio>
int main(){
int a[4], b[4], as=0, bs=0;
scanf("%d %d %d %d",a,a+1,a+2,a+3);
scanf("%d %d %d %d",b,b+1,b+2,b+3);
for(int i = 0; i < 4; i++){
as += a[i], bs += b[i];
}
if(as > bs) printf("%d\n", as);
NITE
Session
Detector
idea
・skypeとkinectの併用
openNIの関数群はWin32APIと似ている
memory
file
INI
@fullmated
fullmated / shibuya_ni.txt
Created June 2, 2011 11:48 — forked from mactkg/shibuya_ni.txt
shibuya_ni
一歳半のちびっ子が認識しない件
Kinect本はKinect-Hackにぴったりです
OpenNI
Generator
MetaData
NITE
Session
Detector
idea
#define LED 13
#define BUTTON 7
int val;
int flag, flag2, sw;
void setup(){
pinMode(LED, OUTPUT);
pinMode(BUTTON, INPUT);
sw = flag = flag2 = 0;
#include<iostream>
#define F )!=string::npos
#define N s.find(
using namespace std;
main(){
string s;
while(getline(cin,s)){
for(int i,j=26;j--;){
if(N"the"F||N"this"F||N"that"F){
cout<<s<<endl;break;
@fullmated
fullmated / aoj0000.cpp
Created November 26, 2011 17:56
0000: QQ
n;main(m){for(n=81;n--;m=n%9)printf("%dx%d=%d\n",9-n/9,9-m,(9-n/9)*(9-m));}
@fullmated
fullmated / aoj0017.cpp
Created November 26, 2011 17:58
0017: Caesar Cipher
#include<iostream>
#define F )!=string::npos
#define N s.find(
using namespace std;
main(){
string s;
while(getline(cin,s)){
for(int i,j=26;j--;){
if(N"the"F||N"this"F||N"that"F){
cout<<s<<endl;break;
using System;
using System.Windows.Forms;
class Sample1 : Form {
private Label lb, lb2;
private Button bt;
public static void Main() {
Application.Run( new Sample1() );
}