这种方法也是万万没想到的~
#include
#define maxn 1000000+5
using namespace std;
int f[maxn];
int n,m;
int main()
{
cin.sync_with_stdio(false);
while(cin>>n>>m)
{
fill(f,f+maxn,0);
for(int i=0;i<n;i++)
{
...
分类:
其他好文 时间:
2015-06-14 09:31:37
阅读次数:
111
分治法一般分为三个步骤。划分问题:把问题的实例划分为子问题。递归求解:递归解决子问题。合并问题:合并子问题的解得到原问题的解。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 10000...
分类:
其他好文 时间:
2015-06-14 09:19:42
阅读次数:
131
pm2 好处就不说了 今天遇到一个奇怪的问题,部署一台新的机器,无论怎么弄,什么版本都会报错 js-bson: Failed to load c++ bson extension, using pure JS version 我曾经无数次的怀疑,是mongodb的问题,于是我...
分类:
Web程序 时间:
2015-06-14 07:05:22
阅读次数:
225
#includeint main(){ std::cout>sjk; std::cout//using std::cout;//using std::endl;using namespace std;int main(){ cout//using namespace std;nam...
分类:
编程语言 时间:
2015-06-14 01:48:16
阅读次数:
210
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.本题是求除法,但是要注意int的边界值。时间:14ms,代码如下:class S...
分类:
其他好文 时间:
2015-06-14 00:28:35
阅读次数:
143
使用截取字符串的方法,打乱原有文档的顺序,重新组合。截取字符串时只考虑了“,”间隔,没有考虑其他标点符号,也没有考虑重组的可读性。留待以后改善!using System;using System.Collections.Generic;using System.ComponentModel;usin...
分类:
其他好文 时间:
2015-06-14 00:27:36
阅读次数:
171
题意:计算Bestcoder四题的得分。思路:直接模拟,4项分数直接计算后输出。注意不要低于百分之40的分。 1 //#include 2 #include 3 #include 4 #define LL long long 5 using namespace std; 6 const int...
分类:
其他好文 时间:
2015-06-14 00:22:10
阅读次数:
178
Redis is a TCP server using the client-server model and what is called a Request/Response protocol.
redis使用的是基于tcp协议的client-server模型,也可以叫做Request/Response 协议模型.
This means that usually a request i...
分类:
其他好文 时间:
2015-06-13 23:12:42
阅读次数:
373
原网页地址:http://docs.oracle.com/javafx/2/ui_controls/hyperlink.htm#CIHGADBG
这一章讲述用来将文本转换为超链接的 Hyperlink 组件
Hyperlink 类 是 Labeled
类的另一种形式。
图18-1 展示了默认超链接实现的3中状态
图 18-1 超链接组件的3中状态
...
分类:
编程语言 时间:
2015-06-13 23:07:34
阅读次数:
270
需求:项目中导入了近200个音效文件,我需要批量修改设置,但是编辑器下无法多选修改设置。
解决办法:重写OnPreprocessAudio方法
using UnityEngine;
using System.Collections;
using UnityEditor;
public class AudioSet : AssetPostprocessor {
public void On...
分类:
编程语言 时间:
2015-06-13 21:45:17
阅读次数:
204