#include <iostream> using namespace std; int main() { int n,m,a,sum=0; while(cin>>n) { while (n--) { cin>>m; sum=0; while (m--) { cin>>a; sum=sum+a; } ...
分类:
其他 时间:
2017-01-25 00:59:21
收藏:
0 评论:
0 赞:
0 阅读:
249
A题大意,不得不说当时后台数据多水(被人hack)。 从大到小遍历,不断累加上面的值,如果值变小了,就退出。 #include<iostream> #include<cstdio> #include<cstring> #include<map> #include<algorithm> using n ...
分类:
其他 时间:
2017-01-25 00:59:04
收藏:
0 评论:
0 赞:
0 阅读:
237
Arbitrage Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same cur ...
分类:
其他 时间:
2017-01-25 00:58:45
收藏:
0 评论:
0 赞:
0 阅读:
285
A(UVA12336) 题意:给一个n*m(n,m<=1e5)的棋盘,棋盘上有一些障碍点不能放棋子,现在要在棋盘上放4个棋子,满足A->B->C->D->A,其中走的规则是跳马字,问一共有多少种方案 分析:数学计算+hash 因为A、B、C、D可以顺时针、逆时针、随便以谁为起点放,所以对于一个确定的 ...
分类:
其他 时间:
2017-01-25 00:58:23
收藏:
0 评论:
0 赞:
0 阅读:
238
https://www.codechef.com/problems/MTRNSFRM 我只能说codechef的题好劲爆,这题居然是easy的题,太可怕了。而且还有一点就是codechef的题解很难看懂╮( ̄▽ ̄")╭ 这题可以这样做,首先把两个矩阵合并在一起,然后就是变成了在一个矩阵C中,操作行和 ...
分类:
其他 时间:
2017-01-25 00:58:02
收藏:
0 评论:
0 赞:
0 阅读:
222
#include<iostream>using namespace std;int main(){ int n; while(cin>>n){ int sum=0; int i,m; for(i=1;i<=n;++i){ cin>>m; sum+=m; } cout<<sum<<endl; } re ...
分类:
其他 时间:
2017-01-25 00:57:25
收藏:
0 评论:
0 赞:
0 阅读:
235
#include <iostream> using namespace std; int main() { int b,a; while(cin>>a>>b) { cout<<a+b<<endl<<endl; } return 0; } ...
分类:
其他 时间:
2017-01-25 00:56:49
收藏:
0 评论:
0 赞:
0 阅读:
240
整理下Eigen库的教程,参考:http://eigen.tuxfamily.org/dox/index.html 矩阵和向量的运算 提供一些概述和细节:关于矩阵、向量以及标量的运算。 介绍 Eigen提供了matrix/vector的运算操作,既包括重载了c++的算术运算符+/-/*,也引入了一些... ...
分类:
其他 时间:
2017-01-25 00:56:16
收藏:
0 评论:
0 赞:
0 阅读:
768
#include<iostream> using namespace std; __int64 gcd(__int64 a,__int64 b) { return b?gcd(b,a%b):a; } __int64 lcm(__int64 a,__int64 b) { return a/gcd(a, ...
分类:
其他 时间:
2017-01-25 00:56:01
收藏:
0 评论:
0 赞:
0 阅读:
140
1.18 打第一场比赛找找感觉…… 第一场基本没什么问题,花了2.5hAK,如果不作死读错题的话可能1.5h就AK了。 1.19 Codeforces Round #392 (Div. 2) 本来想好好地打一场,结果再次狗带,C题FST了(而且是结束后马上意识到要FST了) 原因:有点意识流,想到哪 ...
分类:
其他 时间:
2017-01-25 00:55:44
收藏:
0 评论:
0 赞:
0 阅读:
188
#include <iostream> using namespace std; int main() { int n,a,sum=0; while(cin>>n&&n!=0) { while (n--) { cin>>a; sum=sum+a; } cout<<sum<<endl; sum=0; ...
分类:
其他 时间:
2017-01-25 00:54:05
收藏:
0 评论:
0 赞:
0 阅读:
161
var Str:TStream; begin Str:=TFileStream.Create('c:/windows/system32/taskmgr.exe',fmOpenWrite); end; http://www.cnblogs.com/key-ok/p/3358784.html ...
分类:
其他 时间:
2017-01-25 00:53:50
收藏:
0 评论:
0 赞:
0 阅读:
258
#include <iostream> using namespace std; int main() { int n,m,a,sum=0; while(cin>>n) { while (n--) { cin>>m; sum=0; while(m--) { cin>>a; sum=sum+a; } ...
分类:
其他 时间:
2017-01-25 00:53:20
收藏:
0 评论:
0 赞:
0 阅读:
157
题意就是问倒腾外币能不能升值 不用spfa 用其他的最短路算法也可以 松弛条件换成dist[v]<dist[u]*e[u][i].value 当然 貌似只有spfa有这个坑…… 有A (value>1.0) A 这种情况……我的天 用Dij Floyd都只用判断如果松弛到了自己 那么一定有环 直接跳 ...
分类:
其他 时间:
2017-01-25 00:52:11
收藏:
0 评论:
0 赞:
0 阅读:
267
http://down.51cto.com/zt/826RequestForComments,缩写为RFC,由互联网工程任务组(IETF)发布的一系列标准,规定了当今互联网、局域网等所有标准。专题收集了IPv6相关技术文档,帮助大家理解IPv6的RFC协议标准。RFC5942(中文)_IPv6子网模式:链路和子网前缀间的关系RFC5569-IPv..
分类:
其他 时间:
2017-01-25 00:10:58
收藏:
0 评论:
0 赞:
0 阅读:
224
源码:https://github.com/deeplearning4j模块分类:deeplearning4jnd4j:基于jvm的科学计算工具包,类似于pythonnumpy。DataVec:将数据转换成向量的工具包dl4j-examples:示例ScalNet:是在deeplearning4j对kerasAPI深层学习包装,alpha版本,迭代速度慢。rl4j:基于jvm的强化机..
分类:
其他 时间:
2017-01-25 00:09:34
收藏:
0 评论:
0 赞:
0 阅读:
416
volume作为数据的载体,在很多情况下需要对其中的数据进行备份、迁移或是恢复。下面一docker容器的volume为例,说一下备份的技巧。我们先建立一个容器vol_simple,该容器在/date挂载了一个volume。$sudodockerrun-it--namevol_simple-v/dataubuntu/bin/bash如果我们需要将这里..
分类:
其他 时间:
2017-01-25 00:08:24
收藏:
0 评论:
0 赞:
0 阅读:
319
节点分类(nodeclassification)生成catalog的第一步是必须找到agent节点的配置里使用了哪些class和resource。这个过程称为节点分类(nodeclassification)。默认的方式使用site.pp中的静态配置,其默认路径是/etc/puppet/manifests/.如果environment被设置了,请查看enviornment相..
分类:
其他 时间:
2017-01-25 00:06:46
收藏:
0 评论:
0 赞:
0 阅读:
527
FTP知识概述FTP的全称为“FileTransferProtocol”即(文件传输协议),用于在Internet或Intranet的两台主机之间传输文件,利用FTP可以传输文本文件和二进制文件;该协议的简称叫“FTP”,现如今已然成为文件传输的代名词;FTP是Internet上最早出现且使用也最为广泛的一种文件传..
分类:
其他 时间:
2017-01-25 00:06:16
收藏:
0 评论:
0 赞:
0 阅读:
237
#oslevel7.1.0.0#bootlist-mnormal-ocd0hdisk0blv=hd5pathid=0hdisk1blv=hd5pathid=0ent0#bootlist-mnormalcd0hdisk0ent0#bootlist-mnormal-ocd0hdisk0blv=hd5pathid=0ent0#chpv-chdisk1#lspvhdisk000c843b42d414eb9rootvgactivehdisk100c843b4bb3cf61erootvgactive#reducevgro..
分类:
其他 时间:
2017-01-25 00:06:05
收藏:
0 评论:
0 赞:
0 阅读:
569