- 博客(12)
- 资源 (14)
- 收藏
- 关注
原创 快速求幂 POW优化
#include #include #include #include using namespace std;int pow(int x, int n){ int result = 1; while (n > 0) { if (n % 2==1) result *= x;
2014-05-30 07:45:20 2707
原创 第6届—校赛 小明的骰子
小明的骰子Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述众所周知,小明非常喜欢玩骰子。一天,小芳问小明一个问题。一次性抛n个骰子,一共能抛出几种结果?小明不想让小芳觉得自己回答不上来,所以小明来求助于你。你一定要帮帮小明。输入首先输入一个整数T,代表有T组数据
2014-05-29 21:24:44 79561
原创 最短路算法汇总
校赛完了,这次校赛,做的很差,一个算法题没有,2个水题,1个贪心,概率DP,DP,数论题。DP还没开始研究,数论根本不会,数学太差了,省赛时卡数论,校赛依然卡数论,我擦,还是得继续学习啊! 一把锈迹斑斑的剑,只有不断的磨砺,才能展露锋芒!以下为最短路总结:最短路问题可分为:一、单源最短路径算法,解决方案:Bellman-Ford算法,Dijkstra算法,SPFA
2014-05-25 18:38:28 1675
原创 建图方式一 之 “邻接链表”
唉o(︶︿︶)o ,我果然还是玩不了 邻接链表,捣鼓了一晚上,只实现了 DFS的搜索 ,BFS 至今还不会,快回宿舍了,等校赛后再研究吧邻接链表: n个顶点m条边的无向图,表示中有 n 个顶点表结点和 2m 个边表结点。(也就是说,每条边 u-v 在邻接表 中出现两次:一次在关于u的邻接表中,另一次在关于v的邻接表中)PS:注意是无向图,有
2014-05-23 21:31:59 1437
原创 第5届ACM校赛—矩阵
矩阵题目描述给定一个n x m 的矩阵,每次操作,你可以对矩阵的某一个元素加上或减去一个整数值d,求最小的操作次数,使得矩阵的所有元素都相同,如果不能实现,输出-1。输入输入包含多组测试数据,对于每组测试数据:第一行为三个整数 , m≤500,1≤d≤10000)。接下来 m 个整数,第 行第 个整数为ij(1 ij≤10)。
2014-05-18 20:15:37 1144
原创 Codeforces Round #238 (Div. 2)-B.Domino Effect
B. Domino Effecttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Chris knows there's no fun in playin
2014-05-17 14:48:43 1124
原创 ZOJ3758:Singles' Day
Singles' DayTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionSingles' Day(or One's Day), an unofficial holiday in China, is a p
2014-05-17 14:40:55 1394
原创 Codeforces Round #246 (Div. 2) —B. Football Kit
B. Football Kittime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputConsider a football tournament where n teams
2014-05-16 02:05:12 1798
原创 山东省第三届ACM竞赛 The Best Seat in ACM Contest
The Best Seat in ACM ContestTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述Cainiao is a university student who loves ACM contest very much. It is a festival for him once when h
2014-05-06 20:41:19 1149
原创 A Simple Problem
For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2. InputThe first line is an integer T, which is the the
2014-05-05 16:06:24 1058
centos7下的vsftpd-3.0.4的rpm包
2023-10-18
zeal-windows64位安装(0.6.1)
2020-08-27
spark2.3.3-hadoop2.6.0-cdh-5.15.2重新编译
2019-04-27
hadoop-2.6.0-cdh5.15.2编译版本(CentOS 7.3)
2019-04-27
阿里JAVA开发规范
2017-09-14
jackson2.5.0 jar
2015-04-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人