上一页 1 ··· 28 29 30 31 32
摘要: 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君 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的... 阅读全文
posted @ 2017-07-28 22:39 Assassin_poi君 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 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君 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 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君 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 给出一棵二叉树的中序和前序遍历,输出它的后序遍历。Input: 本题有多组数据,输入处理到文件结束。 每组数据的第一行包括一个整数n,表示这棵二叉树一共有n个节点。 接下来的一行每行包括n个整数,表示这棵树的中序遍历。 接下来的一行每行包括n... 阅读全文
posted @ 2017-07-24 17:18 Assassin_poi君 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 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君 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 最近在练并查集,好头疼啊。本来经过几次练习自我感觉还是不错的,遇到这个题却搞的头都大了。。。。。唉,或许这就是菜鸡罢。。。。。。不说了上代码。#include#include#include#includeusing namespace std;#define MAX... 阅读全文
posted @ 2017-07-20 20:43 Assassin_poi君 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 不是啥难题,直接上代码吧。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君 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 给定数字0-9各若干个。你可以以任意顺序排列这些数字,但必须全部使用。目标是使得最后得到的数尽可能小(注意0不能做首位)。例如:给定两个0,两个1,三个5,一个8,我们得到的最小的数就是10015558。现给定数字,请编写程序输出能够组成的最小的数。输入格式:每个输入... 阅读全文
posted @ 2017-06-08 09:20 Assassin_poi君 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 给定任一个各位数字不完全相同的4位正整数,如果我们先把4个数字按非递增排序,再按非递减排序,然后用第1个数字减第2个数字,将得到一个新的数字。一直重复这样做,我们很快会停在有“数字黑洞”之称的6174,这个神奇的数字也叫Kaprekar常数。例如,我们从6767开始,... 阅读全文
posted @ 2017-06-04 22:14 Assassin_poi君 阅读(253) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32