会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Assassin_poi君
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
28
29
30
31
32
2017年7月31日
Alien Security (BFS+DFS)
摘要: You are in charge of security at a top-secret government research facility. Recently your government has captured a live extra-terrest...
阅读全文
posted @ 2017-07-31 21:51 Assassin_poi君
阅读(196)
评论(0)
推荐(0)
2017年7月28日
HDU 1495 喝可乐(暴力BFS)
摘要: 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的...
阅读全文
posted @ 2017-07-28 22:39 Assassin_poi君
阅读(164)
评论(0)
推荐(0)
2017年7月27日
Tempter of the Bone(奇偶剪枝)の反面教材
摘要: The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and th...
阅读全文
posted @ 2017-07-27 19:25 Assassin_poi君
阅读(127)
评论(0)
推荐(0)
Fire Game (双起点bfs)
摘要: Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of t...
阅读全文
posted @ 2017-07-27 18:34 Assassin_poi君
阅读(225)
评论(0)
推荐(0)
2017年7月24日
二叉树的遍历 及前中序转换成后序遍历
摘要: 给出一棵二叉树的中序和前序遍历,输出它的后序遍历。Input: 本题有多组数据,输入处理到文件结束。 每组数据的第一行包括一个整数n,表示这棵二叉树一共有n个节点。 接下来的一行每行包括n个整数,表示这棵树的中序遍历。 接下来的一行每行包括n...
阅读全文
posted @ 2017-07-24 17:18 Assassin_poi君
阅读(588)
评论(0)
推荐(0)
2017年7月22日
Passing the Message(单调栈)
摘要: What a sunny day! Let’s go picnic and have barbecue! Today, all kids in “Sun Flower” kindergarten are prepared to have an excursion. B...
阅读全文
posted @ 2017-07-22 16:29 Assassin_poi君
阅读(273)
评论(0)
推荐(0)
2017年7月20日
Almost Union-Find ()
摘要: 最近在练并查集,好头疼啊。本来经过几次练习自我感觉还是不错的,遇到这个题却搞的头都大了。。。。。唉,或许这就是菜鸡罢。。。。。。不说了上代码。#include#include#include#includeusing namespace std;#define MAX...
阅读全文
posted @ 2017-07-20 20:43 Assassin_poi君
阅读(181)
评论(0)
推荐(0)
2017年7月16日
补题补题补题~~~~really big numbers
摘要: 不是啥难题,直接上代码吧。B - Really Big Numbers CodeForces - 817C #i #include#include#include#includeint BigNumbers(long long n){ int sum = 0; w...
阅读全文
posted @ 2017-07-16 20:57 Assassin_poi君
阅读(216)
评论(0)
推荐(0)
2017年6月8日
1023. 组个最小数
摘要: 给定数字0-9各若干个。你可以以任意顺序排列这些数字,但必须全部使用。目标是使得最后得到的数尽可能小(注意0不能做首位)。例如:给定两个0,两个1,三个5,一个8,我们得到的最小的数就是10015558。现给定数字,请编写程序输出能够组成的最小的数。输入格式:每个输入...
阅读全文
posted @ 2017-06-08 09:20 Assassin_poi君
阅读(167)
评论(0)
推荐(0)
2017年6月4日
1019. 数字黑洞(pat乙)
摘要: 给定任一个各位数字不完全相同的4位正整数,如果我们先把4个数字按非递增排序,再按非递减排序,然后用第1个数字减第2个数字,将得到一个新的数字。一直重复这样做,我们很快会停在有“数字黑洞”之称的6174,这个神奇的数字也叫Kaprekar常数。例如,我们从6767开始,...
阅读全文
posted @ 2017-06-04 22:14 Assassin_poi君
阅读(265)
评论(0)
推荐(0)
上一页
1
···
28
29
30
31
32
公告