2009-12-20から1日間の記事一覧
250 - ToolsBox 私は大工です import java.util.*; public class ToolsBox { public int countTools(String[] need) { int res; String s = ""; for(int i=0; i<need.length; i++){ s += need[i]+" "; } Scanner sc = new Scanner(s); HashSet<String> hs = new HashSet<String>(); for(int i=0; sc.hasNext(); i++){ hs.add(sc.n…</string></need.length;>