上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: 题目链接:https://zhixincode.com/contest/3/problem/F?problem_id=39 样例输入 1 样例输出 1 6 样例输出 1 题解: 这个体力感觉跟势能是个差不多的东西……很显然,如果没有降低山峰的能力,wls最多只能爬高度为 $h[1]+k$ 的山,更高 阅读全文
posted @ 2019-02-24 23:07 Dilthey 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://zhixincode.com/contest/3/problem/J?problem_id=43 样例输入 1 4 1110 11 110 21 210 31 315 415 415 415 415 4 样例输出 1 28 题解: 首先是有个简单的想法,假设wls买完后,$ 阅读全文
posted @ 2019-02-24 22:31 Dilthey 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://zhixincode.com/contest/18/problem/I?problem_id=267 题目描述 输入描述 输出描述 一行一个整数表示答案。 样例输入 1 320 115 1020 2 样例输出 1 60 题解: 首先肯定的是,这 $n$ 次选择必然是分为两段 阅读全文
posted @ 2019-02-20 23:41 Dilthey 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://zhixincode.com/contest/18/problem/G?problem_id=265 题目描述 wls有一个整数 $n$,他想请你算一下有多少 $1...n$ 的排列(permutation)满足:对于所有的 $i(2 \le i \le n)$,若 $i$ 阅读全文
posted @ 2019-02-20 16:19 Dilthey 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://zhixincode.com/contest/18/problem/C?problem_id=261 样例输入 1 4 21 23 4 样例输出 1 Yes 样例输入 2 4 31 22 33 4 样例输出 2 No 题解: 判断一个边集是否为最小边覆盖,用最笨的方法,暴力 阅读全文
posted @ 2019-02-15 15:26 Dilthey 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://zhixincode.com/contest/18/problem/A?problem_id=259 题目描述 wls正在玩一个寻宝游戏。 宝藏一共有 $n$ 种,都藏在一个 $m$ 行 $m$ 列的网格中。 每种宝藏都恰好有两个。 wls只能沿着网格走(上下左右四个方向) 阅读全文
posted @ 2019-02-15 14:05 Dilthey 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://zhixincode.com/contest/22/problem/I?problem_id=314 样例输入 1 5 9 31 5 3 2 41 1 52 1 51 1 11 2 21 3 31 4 41 5 53 3 51 1 4 样例输出 1 151325413 题解 阅读全文
posted @ 2019-02-15 13:08 Dilthey 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1603 题目背景 根据斯诺登事件出的一道水题 题目描述 2013年X月X日,俄罗斯办理了斯诺登的护照,于是他混迹于一架开往委内瑞拉的飞机。但是,这件事情太不周密了,因为FBI的间谍早已获悉他的具体位置——但这不 阅读全文
posted @ 2019-01-15 22:42 Dilthey 阅读(256) 评论(0) 推荐(0) 编辑
摘要: P1055 ISBN号码 P1200 [USACO1.1]你的飞碟在这儿Your Ride Is He… P1308 统计单词数 (我觉得这题输入输出有毛病……跳过吧) P1553 数字反转(升级版) P1598 垂直柱状图 P1914 小书童——密码 阅读全文
posted @ 2019-01-15 21:00 Dilthey 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 链接:https://codeforces.com/contest/1100 A - Roman and Browser - [暴力枚举] 题意:浏览器有 $n$ 个网页,编号 $1 \sim n$,选择一个整数 $b$,则关掉所有编号为 $b + i \cdot k$ 的网页,其中 $k$ 为给定 阅读全文
posted @ 2019-01-14 19:28 Dilthey 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://codeforces.com/problemset/problem/1099/E You are given an $n×m$ table, consisting of characters «A», «G», «C», «T». Let's call a table ni 阅读全文
posted @ 2019-01-14 00:34 Dilthey 阅读(695) 评论(0) 推荐(1) 编辑
摘要: 链接:https://codeforces.com/contest/1099 A - Snowball - [模拟水题] 题意:有一个雪球从山顶滚落,山坡上有两块石头,每秒钟会一次发生三件事:1、雪球增重,数值为当前高度;2、如果当前高度有一块石头,则会撞到石头,损失跟石头同样重的重量;3、往下移动 阅读全文
posted @ 2019-01-12 19:32 Dilthey 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1093 题目描述某小学最近得到了一笔赞助,打算拿出其中一部分为学习成绩优秀的前5名学生发奖学金。期末,每个学生都有3门课的成绩:语文、数学、英语。先按总分从高到低排序,如果两个同学总分相同,再按语文成绩从高到低 阅读全文
posted @ 2019-01-12 10:29 Dilthey 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1583 题目描述一共有n(n≤20000)个人(以1--n编号)向佳佳要照片,而佳佳只能把照片给其中的k个人。佳佳按照与他们的关系好坏的程度给每个人赋予了一个初始权值W[i]。然后将初始权值从大到小进行排序,每 阅读全文
posted @ 2019-01-10 22:02 Dilthey 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://codeforces.com/problemset/problem/1099/F Mitya and Vasya are playing an interesting game. They have a rooted tree with $n$ vertices, and 阅读全文
posted @ 2019-01-10 21:29 Dilthey 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://codeforces.com/contest/1089/problem/K time limit per test: 2 seconds memory limit per test: 512 megabytes King Kog got annoyed of the usu 阅读全文
posted @ 2019-01-09 12:34 Dilthey 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 题目链接:传送门 描述 给定一张N个点M条边的有向无环图,分别统计从每个点出发能够到达的点的数量。N,M≤30000。 输入格式 第一行两个整数N,M,接下来M行每行两个整数x,y,表示从x到y的一条有向边。 输出格式 共N行,表示每个点能够到达的点的数量。 样例输入 样例输出 题解: 首先,如果用 阅读全文
posted @ 2019-01-08 23:28 Dilthey 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1068 题目描述世博会志愿者的选拔工作正在 A 市如火如荼的进行。为了选拔最合适的人才,A 市对所有报名的选手进行了笔试,笔试分数达到面试分数线的选手方可进入面试。面试分数线根据计划录取人数的 $150\%$ 阅读全文
posted @ 2019-01-08 22:06 Dilthey 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1098 题目描述在初赛普及组的“阅读程序写结果”的问题中,我们曾给出一个字符串展开的例子:如果在输入的字符串中,含有类似于“d-h”或者“4-8”的字串,我们就把它当作一种简写,输出时,用连续递增的字母或数字串 阅读全文
posted @ 2019-01-08 21:36 Dilthey 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1086 题目描述鲁宾逊先生有一只宠物猴,名叫多多。这天,他们两个正沿着乡间小路散步,突然发现路边的告示牌上贴着一张小小的纸条:“欢迎免费品尝我种的花生!――熊字”。 鲁宾逊先生和多多都很开心,因为花生正是他们的 阅读全文
posted @ 2019-01-08 20:46 Dilthey 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://codeforces.com/gym/102056/problem/L LCR is really an incredible being. Thinking so, sitting on the plane and looking at the sea, Rikka sa 阅读全文
posted @ 2019-01-08 01:04 Dilthey 阅读(846) 评论(0) 推荐(1) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1177 题意:输入 $n$ 以及后续 $n$ 个整数,让你将这 $n$ 个整数从小到大排序输出。 归并排序(用时: 121ms / 内存: 1568KB): 快速排序(用时: 117ms / 内存: 1040K 阅读全文
posted @ 2019-01-07 23:21 Dilthey 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1042 题目背景国际乒联现在主席沙拉拉自从上任以来就立志于推行一系列改革,以推动乒乓球运动在全球的普及。其中 $11$ 分制改革引起了很大的争议,有一部分球员因为无法适应新规则只能选择退役。华华就是其中一位,他 阅读全文
posted @ 2019-01-07 22:18 Dilthey 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1031 题目描述有 $N$ 堆纸牌,编号分别为 $1,2,…,N$。每堆上有若干张,但纸牌总数必为 $N$ 的倍数。可以在任一堆上取若干张纸牌,然后移动。 移牌规则为:在编号为 $1$ 堆上取的纸牌,只能移到编 阅读全文
posted @ 2019-01-07 21:58 Dilthey 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.org/problemnew/show/P1023 题目背景每样商品的价格越低,其销量就会相应增大。现已知某种商品的成本及其在若干价位上的销量(产品不会低于成本销售),并假设相邻价位间销量的变化是线性的且在价格高于给定的最高价位后,销量以某固定数值递减。 阅读全文
posted @ 2019-01-07 21:20 Dilthey 阅读(413) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页