随笔分类 -  ∞.其他

摘要:题目链接:https://codeforces.com/contest/1090/problem/M There are n houses along the road where Anya lives, each one is painted in one of k possible colors 阅读全文
posted @ 2018-12-10 00:43 Dilthey 阅读(384) 评论(0) 推荐(0)
摘要:题目链接:https://codeforces.com/contest/1090/problem/A A conglomerate consists of n companies. To make managing easier, their owners have decided to merge 阅读全文
posted @ 2018-12-10 00:30 Dilthey 阅读(318) 评论(0) 推荐(0)
摘要:链接:http://codeforces.com/contest/1032/ 是真的真的真的忍不住想吐槽这题意是真的真的真的读不懂…… A - Kitchen Utensils - [简单数学题] 题意: 国王开宴会,总共有编号为 $1 \sim 100$ 种餐具用来组成一套餐具。组成一套餐具的要求 阅读全文
posted @ 2018-11-21 23:59 Dilthey 阅读(497) 评论(0) 推荐(0)
摘要:最近这段时间感冒外加一些乱七八糟的事情,导致脑子严重僵化……只好刷刷基础(水)题巩固巩固基础(混混题数)。 目录 P1003 铺地毯 P1067 多项式输出 P1540 机器翻译 P1056 排座椅 P1328 生活大爆炸版石头剪刀布 P1563 玩具谜题 P1003 铺地毯 P1067 多项式输出 阅读全文
posted @ 2018-11-19 21:54 Dilthey 阅读(299) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/gym/101981/problem/K Your friend has made a computer video game called “Kangaroo Puzzle” and wants you to give it a try for 阅读全文
posted @ 2018-11-18 20:58 Dilthey 阅读(1001) 评论(0) 推荐(0)
摘要:链接:http://codeforces.com/contest/1062 A - Prank - [二分] 题意: 给出长度为 $n(1 \le n \le 100)$ 的数组 $a[1 \sim n]$,且满足 $1 \le a[1] < a[2] < \cdots < a[n] \le 100 阅读全文
posted @ 2018-11-17 17:22 Dilthey 阅读(431) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/483 A - Counterexample - [简单构造题] Your friend has recently learned about coprime numbers. A pair of numbers $(a, b)$ 阅读全文
posted @ 2018-11-13 13:29 Dilthey 阅读(303) 评论(0) 推荐(0)
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4063 Input Output Sample Input Sample Output 题意: 说现在有 $n$ 个人打比赛,要你安排 $k$ 轮比赛,要求每轮每个人 阅读全文
posted @ 2018-11-12 22:12 Dilthey 阅读(542) 评论(0) 推荐(0)
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=5840 Time Limit: 1 Second Memory Limit: 65536 KB If we define $f(0)=1,f(1)=0,f( 阅读全文
posted @ 2018-11-10 22:08 Dilthey 阅读(446) 评论(0) 推荐(0)
摘要:题目链接:https://leetcode-cn.com/problems/divide-two-integers/description/ 给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算符。 返回被除数 dividend 除以除数 阅读全文
posted @ 2018-11-08 12:41 Dilthey 阅读(380) 评论(0) 推荐(0)
摘要:题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=2457 Description Sherry现在碰到了一个棘手的问题,有N个整数需要排序。 Sherry手头能用的工具就是若干个双端队列。她需要依次处理这N个数,对于每个数,Sherry能做 阅读全文
posted @ 2018-11-06 22:57 Dilthey 阅读(595) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/gym/101873/problem/D 题意: 给出 $n$ 个事实,表述为 "XXX are worse than YYY"。再给出 $m$ 个某人说的话,也是表述为 "XXX are worse than YYY",对于每句话都要判断是否正 阅读全文
posted @ 2018-11-05 21:58 Dilthey 阅读(461) 评论(0) 推荐(0)
摘要:链接:http://codeforces.com/contest/1043 A - Elections - [水水水水题] 题意: 我和另一个人竞争选举,共有 $n$ 个人投票,每个人手上有 $k$ 票,必须投给我或者另一个人。 现在已知每个人给另一个人投 $a_i$ 票,也就是说会给我投 $k-a 阅读全文
posted @ 2018-11-05 20:30 Dilthey 阅读(480) 评论(0) 推荐(0)
摘要:题目链接: http://codeforces.com/gym/101194/attachments https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&prob 阅读全文
posted @ 2018-11-04 21:47 Dilthey 阅读(348) 评论(0) 推荐(0)
摘要:题目链接: http://codeforces.com/gym/101194/attachments https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&prob 阅读全文
posted @ 2018-11-03 20:15 Dilthey 阅读(284) 评论(0) 推荐(0)
摘要:题目链接:http://poj.org/problem?id=3087 Description A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is 阅读全文
posted @ 2018-10-29 20:00 Dilthey 阅读(246) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/gym/101775/problem/C 题意: 给出 $N$ 个红绿灯,又给出 $N+1$ 个距离 $S_i = S_0,S_1, \cdots, S_N$,代表从第 $i$ 个路灯到第 $i+1$ 个路灯的距离(第 $0$ 个距离代表从家到第 阅读全文
posted @ 2018-10-28 00:27 Dilthey 阅读(808) 评论(0) 推荐(0)
摘要:链接:http://codeforces.com/contest/1068 A - Birthday - [计算题] 题意:一共 $N$ 种硬币,我已经有其中 $K$ 种,我的 $M$ 个朋友每人送我等数量的硬币,且送来的每一枚硬币都不属于同一种,要求最后我收到手上的硬币至少有 $L$ 种是我没有的 阅读全文
posted @ 2018-10-25 23:32 Dilthey 阅读(1111) 评论(0) 推荐(0)
摘要:链接:http://codeforces.com/contest/1072/ A - Golden Plate - [计算题] B - Curiosity Has No Limits - [DFS] 对于常数 $C_1,C_2$ 和变量 $x,y$ 的方程组: $\left\{ {\begin{ar 阅读全文
posted @ 2018-10-21 21:07 Dilthey 阅读(595) 评论(4) 推荐(0)
摘要:题目链接:http://acm.xidian.edu.cn/problem.php?id=1046 题目描述 请输出两个数的和,差,积,商,取余。注意不要有前导零。 输入 多组数据,每组数据是两个整数A,B(0<=A<=10^100,0<B<=10^100). 输出 对于每组数据,输出五个整数,分别 阅读全文
posted @ 2018-10-21 15:08 Dilthey 阅读(272) 评论(0) 推荐(0)