2011-07-25から1日間の記事一覧

ちょっとだけ改良した

package acm.jp2011p new File(args[1]).withPrintWriter { out -> def xs = [] def ys = [] new File(args[0]).splitEachLine(/\s+/){ items -> items = items.collect { it.toInteger() } if( items.size() == 1 ){ if( xs.size() > 0 && ys.size() > 0 ) …