code hunt 题解一 (java 版)
来源:互联网 发布:网络用语开车什么意思 编辑:程序博客网 时间:2024/05/24 16:16
</pre>终于把codehunt其中一个zone上的题做完了,是时候来一发了<p></p><p><img src="http://img.blog.csdn.net/20150507211052908?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd3VuYWl5dW5haXd1/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" /></p><p>先来几道水题:)</p><p>00.02</p><p></p><pre name="code" class="java">public class Program { public static int Puzzle(int x) { return x+1; }}
00.03
public class Program { public static int Puzzle(int x) { return 2*x; }}
00.04
public class Program { public static int Puzzle(int x, int y) { return x+y; }}
依然是水题^_^
01.01
public class Program { public static int Puzzle(int x) { return -x; }}
01.02
public class Program { public static int Puzzle(int x) { return x-2; }}
01.03
public class Program { public static int Puzzle(int x) { return x*x; }}
01.04
public class Program { public static int Puzzle(int x) { return x*3; }}
01.05
public class Program { public static int Puzzle(int x) { return x/3; }}
来道比较难猜的,不过有提示It's magic (square)!
14.02
public class Program { public static int Puzzle(int x) { return x*(x*x+1)/2; }}
剩下的会不定期整理发布,不一定会发源码
0 0
- code hunt 题解一 (java 版)
- code hunt 题解二(java版)
- code hunt 题解三 (java版)
- code hunt 题解四(java 版)
- code hunt 题解五(java 版)
- code hunt 题解六(java版)
- code hunt 题解七(java版)
- code hunt 题解八(java版)
- Code Hunt 题解 00-04 (Java)
- Code Hunt 题解 05-08 (Java)
- Code Hunt 题解 09-12 (Java)
- Code Hunt (Microsoft Research)
- Code Hunt Sector02
- code hunt JAVA01
- code hunt JAVA02
- 2014 暑假(清凉一夏) 题解(无Code)
- Code Hunt SECTOR 02 LOOPS
- Java笔试题解析(一)
- VS2013如何自己编写C++类
- STL函数整理
- 【contentprovider系列4】删除联系人信息
- Struts2容器详解---IoC源码分析
- LeetCode 10 Regular Expression Matching (C,C++,Java,Python)
- code hunt 题解一 (java 版)
- php 总结
- 第8周项目1(1)实现复数类中的运算符重载
- 文件上传和下载
- 递归列出目录下文件
- 分层遍历二叉树
- eclipse
- Phoenix(一)介绍
- <STL系列>vector