2006-09-01から1ヶ月間の記事一覧

関係ない

ドリルアクション

ドリル->斧

O'Caml 3.09.3

-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>

sun.misc

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()); …

12時間周期

午後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>

某課題

印刷した後で提出方法がメールなことに気づいた。

hoge

class hoge{ public static void main(String[] argv){ Runtime.getRuntime().addShutdownHook( new Thread(){ public void run(){ System.exit(0); } }); } }

PKU1820

「Name = SymbolicExpression」のはずなのにSymbolicExpressionが空のときがある。あがが。

→ that isn't also a >

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) (#…

KGS

黒gogo63[ゲスト] 対 白Galle[7d]というネ申対局があった。 黒中押し勝ち。

PKU2680

やる気なし。

脳の病気だろうか

qsortの第4引数にputsを渡す夢を見た。

インスパイヤ

try{ System.exit(0); } finally{ throw new RuntimeException("hoge"); }try{ throw new RuntimeException("hoge"); } finally{ System.exit(0); }

しかし

猫の名前がたなかまきこ(なぜか変換したくない)なのはいかがなものか。

Goog.*am

orz

帰省

もふもふ分を補給。

インスパイヤされてみたが

大してキモくない。改良するにはやる気が足りない。 main // x = 1 {- #define putStrLn puts (){int// -} main = putStrLn("Hello world"); return /* x = {- */0;}// -} 0

さて

8月締め切りの課題があと2個または3個。