`
xxx0624
  • 浏览: 28856 次
文章分类
社区版块
存档分类
最新评论
文章列表
简单的模拟题。 枚举中间可能出现的天气。 #include<stdio.h> #include<string.h> #include<stdlib.h> const int maxn = 1005; double mat[ 5 ][ 5 ]; void solve( int L,int R,int n ){ double ans[ 5 ],tp[ 5 ]; double res = 0; for( int i=1;i<=n;i++ ){ if( i==1 ){ ans[ 1 ] = ...
XAMPP(Apache+MySQL+PHP+PERL)是一个功能强大的集成软件包。 它可以在Windows、Linux、Mac OS X和Solaris四种操作系统下安装使用,并且支持多语言:英文、简体中文等。 1. 安装 http://www.apachefriends.org/zh_cn/xampp.html 一路Next即可。 2. 启动 启动Apache和MySql后,我们就可以通过http://localhost/ (或服务器主机地址)访问XAMPP了。如果浏览器里显示的是下面的页面,那么XAMPP安装成功了。 3.目录
1.先下载JDK http://java.sun.com/j2se/1.4.2/download.html 2.安装JDK 3.环境变量设置 JAVA_HOME设置:JDK的安装路径。如:D:\JDK1.7 Path设置:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin CLASSPATH设置:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar 4.验证
公式题。。。 自己闲的用cos sin推出个公式 还不知道对不对,明天补上。。 #include<stdio.h> #include<math.h> #include<iostream> using namespace std; int main(){ double a,b,c,m,n,l,v; while(scanf("%lf%lf%lf%lf%lf%lf", &a, &c, &b, &n, &l, &m)!=EOF){ v=(double)sqrt((4. ...
简单线段树。。。 区间更新 /* 线段树+修改区间+询问区间 update是把某个区间ab的数改为c */ #include<stdio.h> #include<string.h> #include<stdlib.h> #include<algorithm> #include<iostream> #include<queue> #include<vector> #include<map> #include<math.h> typedef long long ll; //typedef ...
写这篇博客纯属吐槽。。。 吐槽一:自己的读题能力。。 吐槽二:这题怎么能这么水。。 #include<stdio.h> const int maxn = 100005; int sum[ maxn ]; int wi[ maxn ]; int min( int a,int b ){ return a<b?a:b; } int main(){ int n,l,r,ql,qr; while( scanf("%d%d%d%d%d",&n,&l,&r,&ql,&qr)==5 ){ for( int i=1;i& ...
简单题目。。 /* 简单的bfs */ #include<algorithm> #include<iostream> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<map> #include<set> using namespace std; typedef long long int64; // ...
题意简单,中文题目 方法:对于一个数 从左往右找相同的数 ,有就改变靠右的,同时把该数的右边全置0 注意!!!!n<0!!! /* */ #include<algorithm> #include<iostream> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<map> #include<s ...
简单凸包+暴力枚举。 /* 几何凸包+暴力 */ #include<algorithm> #include<iostream> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<map> #include<set> using namespace std; typedef ...
题意简单:去掉最小生成树的某一条边并补上一条,求MaxVal 思路:贪心(借鉴Yamidie的思路。。。) 分别求出最小生成树和次最小生成树,再在这两棵树上求最小生成树 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<algorithm> #include<math.h> using namespace std; const int maxn = 1015; const int maxm = maxn*maxn; const int ...
规律题!!! /* */ #include<algorithm> #include<iostream> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<map> #include<set> using namespace std; typedef long long int64; //type ...
简单的模拟题。 暴力枚举 /* 模拟 */ #include<algorithm> #include<iostream> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<map> #include<set> using namespace std; typedef long long int6 ...
随机算法 求n个20位的2进制串的MinDist。 Dist:两个串的异或结果中1的个数 /* 随机算法 */ #include<algorithm> #include<iostream> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<time.h> #include<map> #incl ...
最小生成树的应用 数据量小。 /* Prim */ #include<stdio.h> #include<string.h> #include<stdlib.h> #include<algorithm> #include<iostream> #include<queue> #include<map> #include<stack> #include<set> #include<math.h> using namespace std; typede ...
附数据两组: ABCC abc ae AAA abc AAAA abc A a B a C a #include<stdio.h> #include<string.h> #include<stdlib.h> #include<algorithm> #include<iostream> #include<queue> #include<map> #include<stack> #include<set> #include<math.h> using namespace s ...
Global site tag (gtag.js) - Google Analytics