2006-01-01から1年間の記事一覧
Y澤メソッドを多少本気で使いたくなってきた。
ドリルアクション
ドリル->斧
-rectypesで無限ループになるバグが直ったとかなんとか # let rec print_int_ln x = print_int x; print_newline(); print_int_ln;; val print_int_ln : int -> 'a as 'a = <fun> # print_int_ln 1 2 3 4 5;; 1 2 3 4 5 - : int -> 'a as 'a = <fun>windows用バイナリ</fun></fun>…
class A{ public int compareTo(Object o){ return 0; } } class B extends A implements Comparable<B>{ public int compareTo(B b){ return 0; } public static void main(String[] argv){ System.out.println(new B().compareTo(new Object(){})); } }</b>
PKU1000 import java.util.Scanner; import sun.misc.Queue; class Main{ public static void main(String[] args) throws Exception{ Scanner cin = new Scanner(System.in); Queue q = new Queue(); q.enqueue(cin.nextInt()); q.enqueue(cin.nextInt()); …
午後2時に寝て午後8時に起きて午前2時に寝て午前8時に起きた。イベント?何の事です?
#include <iostream> #include <cstdlib> using namespace std; struct big{ unsigned x:128; } b; int main(){ memset(&b, 0xff, sizeof(struct big)); cout << (b.x>>31) << endl; return 0; }</cstdlib></iostream>
印刷した後で提出方法がメールなことに気づいた。
class hoge{ public static void main(String[] argv){ Runtime.getRuntime().addShutdownHook( new Thread(){ public void run(){ System.exit(0); } }); } }
「Name = SymbolicExpression」のはずなのにSymbolicExpressionが空のときがある。あがが。
gosh> (let ((else #f)) (cond (else 0) (#t 1))) 1 gosh> (define else #f) else gosh> (cond (else 0) (#t 1)) *** ERROR: Compile Error: syntax-error: 'else' clause followed by more clauses: (cond (else 0) (#t 1)) "(stdin)":16:(cond (else 0) (#…
黒gogo63[ゲスト] 対 白Galle[7d]というネ申対局があった。 黒中押し勝ち。
やる気なし。
qsortの第4引数にputsを渡す夢を見た。
try{ System.exit(0); } finally{ throw new RuntimeException("hoge"); }try{ throw new RuntimeException("hoge"); } finally{ System.exit(0); }
猫の名前がたなかまきこ(なぜか変換したくない)なのはいかがなものか。
orz
もふもふ分を補給。
大してキモくない。改良するにはやる気が足りない。 main // x = 1 {- #define putStrLn puts (){int// -} main = putStrLn("Hello world"); return /* x = {- */0;}// -} 0
8月締め切りの課題があと2個または3個。
アルの性別が変わってもまったくわからない。
ここはぐるみんスレではありませんよ。
2984 m9(^Д^)プギャー
ビルコレさん、新色のニンテンドーDS Lite欲しい! Askビデオさん、動画デジカメ欲しい!
Pla氏キター。 「潰されたら負けかなと思ってる」を置いて即去ったー。
id:kosakにAmbient Calculusとやらの問題を押し付けられた。 !a[P]から始めて、状態遷移を繰り返した場合に、任意の自然数nに対し、途中で a[ (n個の"a[") 0 (n個の"]") | P] | !a[P]という形のプロセスに遷移可能となるような、 プロセスPを1つ求め、実際に…
fork(); int main(){ while(1)fork; }f(){while(1)fork();} int (*main)() = f;i;fork(); int main(int (*fork)()){ while(i++){fork();} main(fork); }
typedef unsigned char BYTE; typedef BYTE *PBYTE,*LPBYTE; typedef int BOOL; typedef unsigned short WORD; typedef unsigned int DWORD; typedef char *LPSTR; typedef const char *LPCSTR; typedef void *PVOID, *LPVOID; typedef void *HANDLE; typede…
class hoge{};typedef class hoge{};typedef class{} hoge;