2009-02-26から1日間の記事一覧
#!/usr/bin/env ruby require "hpdf" pdf = HPDFDoc.new page = pdf.add_page p page.get_trans_matrix で、 [1.0, 0.0, 0.0, 1.0, 0.0, 0.0]
import org.apache.commons.lang.math.Fraction; public class C2009022600 { public static void main(String[] args) { System.out.println(Fraction.ONE.intValue()); System.out.println(Fraction.ONE_HALF.intValue()); System.out.println(Fraction.ON…
PARSER_BEGIN(Test) public class Test { public static void main(String args[]) throws ParseException { Test parser = new Test(System.in); parser.Input(); } } PARSER_END(Test) SKIP : { <SPACE: " " | "\t" | "\n" | "\r"> } TOKEN : { <ABC: ["a"-"c"]> | <DEFGH: ["d"-"e", "f"-"g", "h"]> } void Input() : {}…</defgh:></abc:></space:>