//===========================================
//segment tree
//final version
//by kevin_samuel(fenice)苏州大学孙俊彦
#include
#include
#include
using namespace std;
#define MAXN 100
#define INF 0x3ffff...
分类:
其他 时间:
2015-08-10 20:07:38
收藏:
0 评论:
0 赞:
0 阅读:
247
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with cons...
分类:
其他 时间:
2015-08-10 20:07:08
收藏:
0 评论:
0 赞:
0 阅读:
138
Prime Ring Problem
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 34347 Accepted Submission(s): 15188
Problem Description
A ring is compo...
分类:
其他 时间:
2015-08-10 20:06:48
收藏:
0 评论:
0 赞:
0 阅读:
155
Constructing Roads
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 20889
Accepted: 8817
Description
There are N villages, which are numbered from 1 to N,...
分类:
其他 时间:
2015-08-10 20:06:28
收藏:
0 评论:
0 赞:
0 阅读:
107
D1T1 程序自动分析
题目大意:给定10910^9个变量和nn个等于/不等于的关系,判断能否存在一组解满足所有关系并查集傻逼题,NOIP小孩都会做
离散化一下,然后把相等的都用并查集并起来,判断每对不等关系是不是在同一并查集中就行了代码没拷回来,懒得再写一遍了D2T2 软件包管理器
题目大意:给定一棵有根树,每个点有黑白两种颜色,初始都为白色,每次进行以下两种操作:
1.将某个点所在的子树...
分类:
其他 时间:
2015-08-10 20:06:18
收藏:
0 评论:
0 赞:
0 阅读:
307
VS2008不能全文搜索的解决办法
VS2008用着用着就不能用了,一全文搜索就提示
No files were found to look in.
Find was stopped in progress.
网上查的,都是说用ctrl + scroll, 我试过不好用。
后来同事说有系列快捷键,依次试了一下。果然好用了。具体是哪个用的,也不知道,反正到Alt+Break...
分类:
其他 时间:
2015-08-10 20:06:08
收藏:
0 评论:
0 赞:
0 阅读:
362
选课时间(题目已修改,注意读题)
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3443 Accepted Submission(s): 2713
Problem Description
又到了选课的时间了...
分类:
其他 时间:
2015-08-10 20:05:58
收藏:
0 评论:
0 赞:
0 阅读:
205
atitit. 分销系统规划p8k
1. 商户平台管理 overview2
1.1. 分销业务管理2
1.2. 文案管理2
1.3. 订单管理3
1.4. 统计报表3
1.5. 财务结算3
1.6. 自身信息管理4
2. 商户后台详细5
3. 推广人后台6
3.1. 产品及文案6
3.2. 订单与结算6
3.3. 下线邀请与奖励6
3.4. 订单统计6
3....
分类:
其他 时间:
2015-08-10 20:05:38
收藏:
0 评论:
0 赞:
0 阅读:
248
#include
#define N 100
int aa[N];
int main()
{
int a,b,i;
while(scanf("%d",&a)&&a){
b=0;
for(i=0;i<a;i++)
scanf("%d",&aa[i]);
b+=5+6*aa[0];
f...
分类:
其他 时间:
2015-08-10 20:05:28
收藏:
0 评论:
0 赞:
0 阅读:
238
思路:
第一步,建立一个activity,用来管理fragment。
第二步‘获取fragmentManger 和fragmentTraction.
private FragmentManager fm;
private FragmentTransaction ft;
fm = getFragmentManager();
ft = fm.beginTransaction();
...
分类:
其他 时间:
2015-08-10 20:05:08
收藏:
0 评论:
0 赞:
0 阅读:
251
题意:告诉n个点和m条边,求s到t的最短路径。。
思路:N和M都比较大了,n有20000,m有50000,用邻接表加SPFA。
#include
#include
#include
#include
#include
#include
#include
#define INF 99999999
using namespace std;
int n,m,s,t;
int dis[2...
分类:
其他 时间:
2015-08-10 20:04:18
收藏:
0 评论:
0 赞:
0 阅读:
270
Alice and Bob love playing one-dimensional battle ships. They play on the field in the form of a line consisting of n square cells
(that is, on a 1?×?n table).
At the beginning of the game Alice ...
分类:
其他 时间:
2015-08-10 20:04:08
收藏:
0 评论:
0 赞:
0 阅读:
438
题目Given a linked list, swap every two adjacent nodes and return its head.For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant space. You may...
分类:
其他 时间:
2015-08-10 20:03:58
收藏:
0 评论:
0 赞:
0 阅读:
314
在机器学习的优化问题中,梯度下降法和牛顿法是常用的两种凸函数求极值的方法,他们都是为了求得目标函数的近似解。在逻辑斯蒂回归模型的参数求解中,一般用改良的梯度下降法,也可以用牛顿法。由于两种方法有些相似,我特地拿来简单地对比一下。下面的内容需要读者之前熟悉两种算法。梯度下降法梯度下降法用来求解目标函数的极值。这个极值是给定模型给定数据之后在参数空间中搜索找到的。迭代过程为:可以看出,梯度下降法更新参数...
分类:
其他 时间:
2015-08-10 20:03:49
收藏:
0 评论:
0 赞:
0 阅读:
365
J - Wormholes
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld
& %llu
Submit Status
Description
In the year 2163, wormholes were discovered. A wormhole is a subspace...
分类:
其他 时间:
2015-08-10 20:03:40
收藏:
0 评论:
0 赞:
0 阅读:
298
string:一些字符串处理函数: strcpy(s1,s2): **s1,s2定义为字符数组。**
把字符串s2中的内容copy到s1中,连字符串结束标志也一起copy. strcmp(s1,s2): **s1,s2定义为字符数组。**
比较两个字符串的大小,返回比较的结果。一般形式是:
①字符串1小于字符串2,strcmp函数返回一个...
分类:
其他 时间:
2015-08-10 20:03:18
收藏:
0 评论:
0 赞:
0 阅读:
209
/**
* 题目:企业发放的奖金根据利润提成。
* 利润(I)低于或等于10万元时,奖金可提10%;
* 利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可可提成7.5%;
* 20万到40万之间时,高于20万元的部分,可提成5%;,前面的提成不变
* 40万到60万之间时高于40万元的部分,可提成3%;
* 60万到100万之...
分类:
其他 时间:
2015-08-10 20:03:08
收藏:
0 评论:
0 赞:
0 阅读:
160
1、错误描述454 Authentication failed, please open smtp flag first!
Exception in thread "main" javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:267)
at javax.mail.Servic...
分类:
其他 时间:
2015-08-10 20:02:58
收藏:
0 评论:
0 赞:
0 阅读:
484
/**
* 题目:一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
* 时间:2015年7月29日08:31:58
* 文件:Lianxi13.java
* 作者:cutter_point
*/
package bishi.zuixin50.t2015729;
public class Lianxi13
{
public static v...
分类:
其他 时间:
2015-08-10 20:02:28
收藏:
0 评论:
0 赞:
0 阅读:
216
1、错误描述553 Mail from must equal authorized user
com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.j...
分类:
其他 时间:
2015-08-10 20:02:18
收藏:
0 评论:
0 赞:
0 阅读:
819