海贼007

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年6月28日

摘要: 菜鸟的代码:import java.util.*;import java.util.regex.*;import java.text.*;import java.math.*;public class FoxAndGame{ public int countStars(String[] result) { int i,count; count=0; for(i=0;i res = new HashMap(); res.put("---",0); res.put("o--",1); res.put("o... 阅读全文
posted @ 2013-06-28 23:44 wzhscript 阅读(169) 评论(0) 推荐(0) 编辑

摘要: 菜鸟的代码:import java.util.*;import java.util.regex.*;import java.text.*;import java.math.*;public class EasyHomework{ public String determineSign(int[] A) { int i,count; count=0; for(i=0;i0) return "NEGATIVE"; else return "POSITIVE"; } ... 阅读全文
posted @ 2013-06-28 23:39 wzhscript 阅读(136) 评论(0) 推荐(0) 编辑

摘要: 菜鸟的代码:import java.util.*;import java.util.regex.*;import java.text.*;import java.math.*;public class SkiResortsEasy{ public int minCost(int[] altitude) { int i,count; count=0; for(i=1;ialtitude[i-1]){ count+=altitude[i]-altitude[i-1]; ... 阅读全文
posted @ 2013-06-28 23:37 wzhscript 阅读(172) 评论(0) 推荐(0) 编辑

摘要: 菜鸟的代码:import java.util.*;import java.util.regex.*;import java.text.*;import java.math.*;public class CityMap{ public String getLegend(String[] cityMap, int[] POIs) { int i,j; int[] count = new int[256]; char ch; StringBuilder sb = new StringBuilder(); ... 阅读全文
posted @ 2013-06-28 23:28 wzhscript 阅读(170) 评论(0) 推荐(0) 编辑

摘要: 菜鸟的代码:import java.util.*;import java.util.regex.*;import java.text.*;import java.math.*;public class TheSwapsDivTwo{ public int find(int[] sequence) { int i,j,count; boolean tag=false; count=0; for(i=0;i<sequence.length;i++){ for(j=i+1;j<sequence.... 阅读全文
posted @ 2013-06-28 23:14 wzhscript 阅读(182) 评论(0) 推荐(0) 编辑