一:第三方插件 1:基于响应式编程思想的oc 地址:https://github.com/ReactiveCocoa/ReactiveCocoa 2:hud提示框 地址:https://github.com/jdg/MBProgressHUD 地址:https://github.com/SVProg ...
分类:
移动开发 时间:
2016-09-01 13:04:27
阅读次数:
289
使用xamarin开发的时候经常用到加载HUD功能,就是我们常见的一个加载中的动作,Android 下使用 AndHUD , iOS 下使用 BTProgressHUD, 这两个在在 NuGet 上都有。在UWP中本身提供的方式,并不能完全满足我们的需求,因此我们需要使用Dependencies来重 ...
分类:
其他好文 时间:
2016-08-11 12:40:23
阅读次数:
161
关于 self.navigationController.view 相信看过 MBProgressHUD 官方例子 HudDemo 代码的同学应该看到过下述代码: 1 HUD = [[MBProgressHUD alloc] initWithView:self.navigationControlle ...
分类:
其他好文 时间:
2016-08-11 00:37:22
阅读次数:
145
原题链接:点击此处 思路:还是博弈论,可以参考前一篇的博客。 我在看了尼姆博奕之后才明白前一个博客也可以使用异或和的方法判断奇异局势,因为奇异局势的亦或和为0。 因此若当前面对的不是奇异局势,那么我只要令c-a+b即可。故若当c<a+b,那这个可就不能变,那么可以考虑a<c+b.... (异或的规矩 ...
分类:
编程语言 时间:
2016-08-06 17:23:57
阅读次数:
174
原题链接:点击此处 思路:01背包问题,还没太懂,拿着公式用,结果过了,放这里,以后再琢磨。 源代码: #include <iostream> #include <stdio.h> #include <vector> #include <algorithm> using namespace std; ...
分类:
其他好文 时间:
2016-08-06 17:15:10
阅读次数:
164
原题链接:点击此处 解题过程:公式:an=an-1+6(n-1)。 (n>=1) 公式推导: 由上图: 1个三角形至多把平面分为2部分 2个三角形至多把平面分为8部分(比上多6) 3个三角形至多把平面分为20部分(比上多12) 4个三角形至多把平面分为38部分(比上多18) 由此推测 n个三角形可把 ...
分类:
其他好文 时间:
2016-08-06 13:03:56
阅读次数:
243
原题链接:点击此处 公式:sum=len*(len+1)/2*wid*(wid+1)/2; 源代码: #include <iostream> #include <stdio.h> using namespace std; int main() { int ti,len,wid,sum; scanf( ...
分类:
其他好文 时间:
2016-08-06 13:00:55
阅读次数:
147
原题链接:点击此处 解题思路: 一道应该属于递推的题目。 就是N封信都装错信封了。。。 假设信封有7个吧:A~G A _ _ _ _ _ _ _ a 向A里装错有7-1种情况,先选一种放b A b _ _ _ _ _ _ 开始放B的,B可以放a也可以放其他的,如果放a,则就是剩下n-2个的排列了, ...
分类:
其他好文 时间:
2016-08-06 12:46:17
阅读次数:
197
Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large re ...
分类:
其他好文 时间:
2016-08-01 15:36:53
阅读次数:
127
一:第三方插件 1:基于响应式编程思想的oc 地址:https://github.com/ReactiveCocoa/ReactiveCocoa 2:hud提示框 地址:https://github.com/jdg/MBProgressHUD 3:XML/HTML解析 地址:https://gith ...
分类:
移动开发 时间:
2016-08-01 13:52:33
阅读次数:
298