2006-09-01から1ヶ月間の記事一覧
ドリルアクション
ドリル->斧
-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個。