自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 Crazy Search

POJ 1200DescriptionMany people like to solve hard puzzles some of which may lead them to madness. One such puzzle could be finding a hidden prime number in a given text. Such number could be

2018-01-30 08:59:30 310

原创 归并排序

题目:TOJ 1455 统计将一个序列排列为非递减序列所需的最小交换次数。分治:归并排序#include using namespace std;int arr[1000],narr[1000];int cnt;void mergeSort(int s,int e){ if(e-s==1) return; int m=(s+e)/2; mergeS

2018-01-18 10:58:37 134

原创 钓鱼

题目:TOJ 1163贪心+枚举#include #include using namespace std;class Pool{public: int order,num; Pool(int order,int num){ this->order=order; this->num=num; } bool operator<

2018-01-17 22:29:30 290

原创 木桩

题目: TOJ 1469贪心#include using namespace std;class Stick{public: int h; int w; bool operator<(const Stick st) const{ if(h==st.h) return w<st.w; return h<st.h; };

2018-01-17 16:10:38 494

原创 田忌赛马

题目 TOJ 1188贪心#include using namespace std;int x[1000];int y[1000];int main(){ int n,ans; while(cin>>n){ ans=0; for(int i=0;i<n;i++) cin>>x[i]; for

2018-01-15 17:05:32 288

原创 后序遍历

给出二叉树的前序、中序遍历序列,计算后序遍历序列。#include #include using namespace std;char last[30];int t;void solve(string first,string mid){ if(first.length()==0) return; if(first.length()==1){ las

2018-01-15 13:02:43 234

原创 最小公倍数

#include using namespace std;int gcd(int x,int y){ return y?gcd(y,x%y):x;}int main(){ int x,y; while(cin>>x>>y){ if(x<y) swap(x,y); if(y<=0) return -1; else

2018-01-15 09:49:36 154

原创 跳蚱蜢

蓝桥杯2017 C/C++ A组第2题题目:有9只盘子,排成1个圆圈。其中8只盘子内装着8只蚱蜢,有一个是空盘。我们把这些蚱蜢顺时针编号为 1~8每只蚱蜢都可以跳到相邻的空盘中,也可以再用点力,越过一个相邻的蚱蜢跳到空盘中。请你计算一下,如果要使得蚱蜢们的队形改为按照逆时针排列,并且保持空盘的位置不变(也就是1-8

2018-01-12 08:55:36 3416

原创 迷宫

蓝桥杯2017 C/C++ A组第1题题目:X星球的一处迷宫游乐场建在某个小山坡上。它是由10x10相互连通的小房间组成的。房间的地板上写着一个很大的字母。我们假设玩家是面朝上坡的方向站立,则:L表示走到左边的房间,R表示走到右边的房间,U表示走到上坡方向的房间,D表示走到下坡方向的房间。X星球

2018-01-12 08:51:12 2298

Above_the_Clouds_A_Berkeley_View_of_Clou.pdf

Above the Clouds: a Berkeley view of Cloud Computing

2020-01-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除