1——100求和 1——100偶数和 1——100的质数 1——100 的合数 ...
分类:
编程语言 时间:
2017-04-23 15:49:38
阅读次数:
153
上述代码有一个缺陷,即时间无法更新,之后再来补充修改。基本效果图如下: 评论前: 评论后: ...
分类:
Web程序 时间:
2017-04-23 15:49:27
阅读次数:
220
Important notes (changes that may break existing code) * Officially now only supporting XE2 and forward. Support for pre XE2 may not be complete. New ...
分类:
其他好文 时间:
2017-04-23 15:48:03
阅读次数:
750
题目大意:n个建筑须要抢修。第i个建筑须要T1时间抢修。必须在T2时间之前抢修完成。求最多能抢修多少建筑 首先我们对T2排序 然后依次修理 可是这样贪心显然是不对的 比方说这组数据: 5 10 10 10 20 2 21 2 21 2 21 贪心仅仅能修理前两个。而实际上最多能够修理4个 于是我们考 ...
分类:
Web程序 时间:
2017-04-23 15:00:21
阅读次数:
183
HIVE创建表时,出现以下错误:ExecutionError,returncode1fromorg.apache.hadoop.hive.ql.exec.DDLTask.MetaException(message:FordirectMetaStoreDBconnections,wedon‘tsupportretriesattheclientlevel.)解决方案:这是由于字符集的问题,需要配置MySQL的字符集:mysql>alterd..
分类:
Web程序 时间:
2017-04-23 13:22:19
阅读次数:
196
题目 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the ...
分类:
其他好文 时间:
2017-04-23 13:21:42
阅读次数:
164
Charm Bracelet Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 38561 Accepted: 16727 Description Bessie has gone to the mall's jewelry stor ...
分类:
其他好文 时间:
2017-04-23 13:19:58
阅读次数:
137
最近看了一些关于分享自媒体的代码,最后在在项目中使用了百度的分享代码,百度分享的代码格式,如下 通过config,可以对分享链接、分享图片、分享描述、分享渠道等信息进行配置。具体可以参考百度分享代码的文档 http://share.baidu.com/code/advance#config 我这边在 ...
分类:
移动开发 时间:
2017-04-23 13:17:57
阅读次数:
270
1. 必须知道的事实 (1)常见的动态内存分配代码 (2)必须知道的事实 ①malloc函数申请失败时,返回NULL值。 ②new关键字申请失败时,则会根据编译器的不同,有的返回NULL值,而有的抛出std::bad_alloc异常。 2. new operator和operator new的区别 ...
分类:
其他好文 时间:
2017-04-23 13:17:23
阅读次数:
207
class Solution { public: string countAndSay(int n) { string ret = "1"; for(int i=1; i<n; ++i) ret = generateNext(ret); return ret; } string genera... ...
分类:
其他好文 时间:
2017-04-23 13:15:51
阅读次数:
152