摘要: 玛雅历 public static void Acm1008(int day, string mon, int year) { int m = 0; switch (mon) { case ... 阅读全文
posted @ 2015-03-19 09:54 BoVoM 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 求逆序数,快排 public static void acm1007(int a, string[] c) { Dictionary dic = new Dictionary(); int[] i = new int[a]; ... 阅读全文
posted @ 2015-03-19 09:01 BoVoM 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 中国剩余定理public static void acm1006(int a, int b, int c, int d) { int z = 28 * 33; int y = 23 * 33; int x = 23 * ... 阅读全文
posted @ 2015-03-16 16:37 BoVoM 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 大水题呀 public static void acm1005(int n, float[,] a) { float pi = 3.1415926f, rr; int years; for (int i =... 阅读全文
posted @ 2015-03-13 16:44 BoVoM 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 水题。。public static void acm1004(float[] a){float sum = 0;foreach (var item in a){sum += item;}Console.WriteLine("$"+sum/a.Count());} 阅读全文
posted @ 2015-03-13 16:09 BoVoM 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 这题很有内涵,先用简单方法 public static void acm1003(double a) { if (a==0) { return; } double b ... 阅读全文
posted @ 2015-03-13 15:50 BoVoM 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 排序 public static void acm1002(string[] azx) { string[] a = new string[azx.Length]; for (int i = 0; i dic = new Di... 阅读全文
posted @ 2015-03-13 15:23 BoVoM 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 高精度求幂public static char[] exponentiation(string a,int r) { char[] aa = new char[1]; string b = ""; string c = ... 阅读全文
posted @ 2015-03-12 17:02 BoVoM 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 将N*N乘法转化为(N*n1)+(N*n2)....(N*nn)乘完后在补充小数点 public static char[] Quadrature(string a, string b) { char[] r = new char[1] { '0' ... 阅读全文
posted @ 2015-03-11 17:12 BoVoM 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: 是现实思路1,先小数点补位,8913758923475893274958738945793845-4893127498372459823745324532453245.284929384729837498237492 => 8913758923475893274958738945793845.000... 阅读全文
posted @ 2015-03-11 11:09 BoVoM 阅读(658) 评论(0) 推荐(0) 编辑