- 博客(15)
- 收藏
- 关注
转载 C# ACM poj1008
玛雅历 public static void Acm1008(int day, string mon, int year) { int m = 0; switch (mon) { case "pop": m =...
2015-03-19 09:54:00 90
转载 C# ACM poj1007
求逆序数,快排 public static void acm1007(int a, string[] c) { Dictionary<int, string> dic = new Dictionary<int, string>(); int[] i = new int[a]; ...
2015-03-19 09:01:00 102
转载 C# ACM poj1006
中国剩余定理public static void acm1006(int a, int b, int c, int d) { int z = 28 * 33; int y = 23 * 33; int x = 23 * 28; int w = 23 * 28 ...
2015-03-16 16:37:00 95
转载 C# ACM poj1005
大水题呀 public static void acm1005(int n, float[,] a) { float pi = 3.1415926f, rr; int years; for (int i = 0; i < n; i++) {...
2015-03-13 16:44:00 78
转载 C# ACM poj1004
水题。。public static void acm1004(float[] a){float sum = 0;foreach (var item in a){sum += item;}Console.WriteLine("$"+sum/a.Count());}转载于:https://www.cnblogs.com/DhyDream/...
2015-03-13 16:09:00 82
转载 C# ACM poj1003
这题很有内涵,先用简单方法 public static void acm1003(double a) { if (a==0) { return; } double b = 2; while (a &g...
2015-03-13 15:50:00 138
转载 C# ACM poj1002
排序 public static void acm1002(string[] azx) { string[] a = new string[azx.Length]; for (int i = 0; i < azx.Length; i++) { ...
2015-03-13 15:23:00 119
转载 C# 高精度求幂 poj1001
高精度求幂public static char[] exponentiation(string a,int r) { char[] aa = new char[1]; string b = ""; string c = a; for (int i = 0; i...
2015-03-12 17:02:00 105
转载 C# 高精度乘法 支持小数(待优化)
将N*N乘法转化为(N*n1)+(N*n2)....(N*nn)乘完后在补充小数点 public static char[] Quadrature(string a, string b) { char[] r = new char[1] { '0' }; List<int> bu ...
2015-03-11 17:12:00 376
转载 C# 高精度减法 支持小数(待优化)
是现实思路1,先小数点补位,8913758923475893274958738945793845-4893127498372459823745324532453245.284929384729837498237492 => 8913758923475893274958738945793845.000000000000000000000000-489312749837245982...
2015-03-11 11:09:00 267
转载 C# 高精度加法 支持小数(待优化)
直接上代码实现思路:1、首先小数点补 位,9223372036854775808.9+9223372036854775808.9223372036854775808 => 9223372036854775808.900000000000000000+9223372036854775808.92233720368547758082、然后开始按位进行计算,进位数放入jw,在...
2015-03-10 16:26:00 362
转载 phaser源码解析(三) Phaser.Utils类下isPlainObject方法
/** * #这是一个对jQuery.isPlainObject(obj)稍加修改的方法。 一个 普通对象 obj.toString() => "[object Object]" * This is a slightly modified version of jQuery.isPlainObject. A...
2014-03-11 11:05:00 76
转载 phaser源码解析(二) Phaser.Utils类下pad方法
/***#填充字符串方法* Javascript string pad http://www.webtoolkit.info/.* pad = the string to pad it out with (defaults to a space) * dir = 1 (left), 2 (right), 3 (both)* @method Phaser.Utils...
2014-03-11 10:10:00 101
转载 phaser源码解析(一) Phaser.Utils类下shuffle方法
/** * #一个 基于 费雪耶茨排列 洗牌方法 * A standard Fisher-Yates Array shuffle implementation. * @method Phaser.Utils.shuffle * @param {array} array - The array to shuffle. ——#参数:带洗牌数组 * @retu...
2014-03-11 10:04:00 81
转载 HTML5游戏开发框架phaser学习日志(一)下载phaser,在IIS中配置phaser的examples站点...
phaser是HTML5开源的游戏引擎。一、源码下载地址:https://github.com/photonstorm/phaser二、文档结构:三、将phaser-master部署到IIS中站点中,如果这是直接浏览站点则会出现报错四、原因是没有配置充当静态文件的扩展名,需要在IIS功能视图中的“MIME类型”中添加".json"扩展名。这时打开站点,就能...
2014-03-10 10:57:00 129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人