随笔分类 -  ∞.其他

摘要:题目链接:https://www.nowcoder.com/acm/contest/211/B 题目描述 炎热的早上,gal男神们被迫再操场上列队,gal男神们本来想排列成x∗x的正方形,可是因为操场太小了(也可能是gal男神太大了),校长安排gal男神们站成多个4∗4的正方形(gal男神们可以正好 阅读全文
posted @ 2018-10-20 15:41 Dilthey 阅读(213) 评论(0) 推荐(0)
摘要:题目链接:https://leetcode-cn.com/problems/container-with-most-water/description/ 给定 n 个非负整数 $a_1,a_2,\cdots,a_{n-1},a_n$,每个数代表坐标中的一个点 $(i, a_i)$。在坐标内画 n 条 阅读全文
posted @ 2018-10-14 23:14 Dilthey 阅读(383) 评论(0) 推荐(0)
摘要:目录: B - Fraction D - Triangle F - Harmonic Value Description H - Sequence I I - Sequence II B题:HDU 5912 - Fraction - [递归] 题目链接:http://acm.hdu.edu.cn/s 阅读全文
posted @ 2018-09-24 20:47 Dilthey 阅读(634) 评论(0) 推荐(0)
摘要:题目链接:http://poj.org/problem?id=3279 Sample Input Sample Output 题意: 给出 $M$ 行 $N$ 的矩阵,每个元素只为 $0$ 或者 $1$,分别代表白块和黑块, 每次可以翻转一个元素,使得它可以从黑变白或者从白变黑,但是上下左右相邻的四 阅读全文
posted @ 2018-09-22 20:20 Dilthey 阅读(584) 评论(0) 推荐(0)
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3780 Time Limit: 2 Seconds Memory Limit: 65536 KB Leo has a grid with N × N cells. H 阅读全文
posted @ 2018-04-23 15:44 Dilthey 阅读(351) 评论(0) 推荐(0)
摘要:题目链接:https://www.patest.cn/contests/gplt/L2-027 对于在中国大学MOOC(http://www.icourse163.org/)学习“数据结构”课程的学生,想要获得一张合格证书,总评成绩必须达到 60 分及以上,并且有另加福利:总评分在 [G, 100] 阅读全文
posted @ 2018-04-02 20:50 Dilthey 阅读(855) 评论(0) 推荐(0)
摘要:题目链接:https://www.patest.cn/contests/gplt/L1-035 时间限制 400 ms 内存限制 65536 kB 内存限制 65536 kB 代码长度限制 8000 B 代码长度限制 8000 B 判题程序 Standard 判题程序 Standard 作者 陈越 阅读全文
posted @ 2018-03-24 13:58 Dilthey 阅读(774) 评论(0) 推荐(0)
摘要:题目链接:https://www.patest.cn/contests/gplt/L1-033 时间限制 400 ms 内存限制 65536 kB 内存限制 65536 kB 代码长度限制 8000 B 代码长度限制 8000 B 判题程序 Standard 判题程序 Standard 作者 陈越 阅读全文
posted @ 2018-03-24 13:43 Dilthey 阅读(553) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/752/C time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit 阅读全文
posted @ 2018-03-23 10:49 Dilthey 阅读(360) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/592/problem/B B. The Monster and the Squirrel time limit per test 1 second memory limit per test 256 megabytes inpu 阅读全文
posted @ 2018-01-10 22:03 Dilthey 阅读(319) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/586/problem/B B. Laurenty and Shop time limit per test 1 second memory limit per test 256 megabytes input standard 阅读全文
posted @ 2018-01-09 00:03 Dilthey 阅读(230) 评论(0) 推荐(0)
摘要:题目链接:https://cn.vjudge.net/problem/CodeForces-892A Jafar has n cans of cola. Each can is described by two integers: remaining volume of cola ai and ca 阅读全文
posted @ 2017-11-21 21:07 Dilthey 阅读(338) 评论(0) 推荐(0)
摘要:题目链接:https://hihocoder.com/problemset/problem/1305 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 给定两个区间集合 A 和 B,其中集合 A 包含 阅读全文
posted @ 2017-10-16 22:37 Dilthey 阅读(254) 评论(0) 推荐(0)
摘要:A. The Artful Expedient time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per te 阅读全文
posted @ 2017-10-07 16:32 Dilthey 阅读(208) 评论(0) 推荐(0)
摘要:就像title说的,是昨天(2017/9/17)周赛的两道水题…… 题目链接:http://codeforces.com/problemset/problem/14/A time limit per test: 1 second memory limit per test: 64 megabytes 阅读全文
posted @ 2017-09-18 11:34 Dilthey 阅读(640) 评论(0) 推荐(0)
摘要:题目链接:http://hihocoder.com/problemset/problem/1331 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 我们都知道二进制数的每一位可以是0或1。有一天小H 阅读全文
posted @ 2017-09-17 11:00 Dilthey 阅读(624) 评论(0) 推荐(0)
摘要:题目链接:https://hihocoder.com/problemset/problem/1330 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 小Hi想知道,如果他每次都按照一种固定的顺序重排 阅读全文
posted @ 2017-09-12 21:14 Dilthey 阅读(420) 评论(0) 推荐(0)
摘要:讲真,这么水的题,我都不怎么好意思扔到博客上来,但是没办法啊,我总得证明一下今天上午我不是在寝室里瞎玩浪费掉的…… 思路就是,把米按单价从小到大排个序,便宜的买的越多越好,直到钱花光为止……我真的都不好意思说这是个贪心……有这么简单的贪心????? 阅读全文
posted @ 2017-07-29 09:37 Dilthey 阅读(177) 评论(0) 推荐(0)
摘要:题目链接:http://acmoj.shu.edu.cn/problem/413/ 不难发现,这题是求C(n,1)+C(n,2)+C(n,3)+……+C(n,n-1)+C(n,n) 根据二项展开式有(a+b)^n = C(n,0) * (a^n) * (b^0) + …… + C(n,n) * (a 阅读全文
posted @ 2017-07-09 19:35 Dilthey 阅读(169) 评论(0) 推荐(0)
摘要:题目链接:http://acmoj.shu.edu.cn/problem/414/ 很咸鱼的网上拉了个进制转换模板过来,因为数组开的太小一直WA,后来一气之下MAXN开到1e5,真是蓝瘦…… 后来实在觉得那样傻乎乎套模板真的很咸鱼,实在没有脸面贴出来 就自己重新理解了一遍模板,适当修改了之后再发出来 阅读全文
posted @ 2017-07-09 19:12 Dilthey 阅读(287) 评论(0) 推荐(0)