上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: 题目链接: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 阅读(923) 评论(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 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1247 Problem DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly t 阅读全文
posted @ 2018-11-17 15:32 Dilthey 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5954 Problem DescriptionYou have got a cylindrical cup. Its bottom diameter is 2 units and its height i 阅读全文
posted @ 2018-11-17 12:58 Dilthey 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://poj.org/problem?id=1816 http://bailian.openjudge.cn/practice/1816?lang=en_US Time Limit: 2000MS Memory Limit: 65536K Description A word i 阅读全文
posted @ 2018-11-17 11:45 Dilthey 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://poj.org/problem?id=2513 http://bailian.openjudge.cn/practice/2513?lang=en_US Time Limit: 5000MS Memory Limit: 128000K Description You are 阅读全文
posted @ 2018-11-16 18:38 Dilthey 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=3630 Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. 阅读全文
posted @ 2018-11-16 13:11 Dilthey 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 0101 a^b 题目链接:传送门 描述 求 a 的 b 次方对 p 取模的值,其中 1≤a,b,p≤10^9 输入格式 三个用空格隔开的整数 a,b 和 p。 输出格式 一个整数,表示 a^b mod p 的值。 样例输入 2 3 9 样例输出 8 题解: 快速幂。 AC代码: 0102 64位整 阅读全文
posted @ 2018-11-14 15:18 Dilthey 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 题目链接:传送门 描述石头游戏在一个 $n$ 行 $m$ 列 ($1 \le n,m \le 8$) 的网格上进行,每个格子对应一种操作序列,操作序列至多有 $10$ 种,分别用 $0 \sim 9$ 这 $10$ 个数字指明。操作序列是一个长度不超过 $6$ 且循环执行、每秒执行一个字符的字符串。 阅读全文
posted @ 2018-11-13 21:09 Dilthey 阅读(546) 评论(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 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4062 题意: 现在在一条 $x$ 轴上玩植物大战僵尸,有 $n$ 个植物,编号为 $1 \sim n$,第 $i$ 个植物的位置在坐标 $i$,成长值为 $a_i$ 阅读全文
posted @ 2018-11-12 23:36 Dilthey 阅读(398) 评论(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 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 链接:传送门 A - Thickest Burger - [签到水题] ACM ICPC is launching a thick burger. The thickness (or the height) of a piece of club steak is A (1 ≤ A ≤ 100). T 阅读全文
posted @ 2018-11-12 12:49 Dilthey 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5950 Farmer John likes to play mathematics games with his N cows. Recently, they are attracted by recur 阅读全文
posted @ 2018-11-12 12:00 Dilthey 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4067 题意: 给出 $n$ 本书(编号 $1 \sim n$),第 $i$ 本书的价格为 $a_i$ 元。我现在手上有若干元钱,我买书的策略为从 $1 \sim n 阅读全文
posted @ 2018-11-10 23:05 Dilthey 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4060 题意: 给出两个 $0,1$ 字符串 $S,T$,现在你有两次对 $S$ 作区间翻转($0 \rightarrow 1,1 \rightarrow 0$)的操 阅读全文
posted @ 2018-11-10 22:47 Dilthey 阅读(535) 评论(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 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://bailian.openjudge.cn/practice/1451/ 总时间限制: 1000ms 内存限制: 65536kB 描述 Background A while ago it was quite cumbersome to create a message for 阅读全文
posted @ 2018-11-09 23:16 Dilthey 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/problem/LightOJ-1224 Given a set of $n$ DNA samples, where each sample is a string containing characters from {A, C, G, T}, 阅读全文
posted @ 2018-11-09 21:51 Dilthey 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://poj.org/problem?id=2001 http://bailian.openjudge.cn/practice/2001 总时间限制: 1000ms 内存限制: 65536kB A prefix of a string is a substring startin 阅读全文
posted @ 2018-11-09 17:41 Dilthey 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2072 Problem Descriptionlily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。 阅读全文
posted @ 2018-11-09 16:32 Dilthey 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=3764 Time Limit: 2000MS Memory Limit: 65536K Description In an edge-weighted tree, the xor-length of a path p is define 阅读全文
posted @ 2018-11-08 23:40 Dilthey 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 题目链接:传送门 描述在给定的 $N$ 个整数 $A_1, A_2,\cdots,A_N$ 中选出两个进行xor运算,得到的结果最大是多少? 输入格式第一行一个整数 $N$,第二行 $N$ 个整数 $A_1, A_2,\cdots,A_N$。 输出格式一个整数表示答案。 样例输入31 2 3 样例输 阅读全文
posted @ 2018-11-08 22:08 Dilthey 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 题目链接:传送门 描述给定 $N$ 个字符串 $S_1,S_2,\cdots,S_N$,接下来进行 $M$ 次询问,每次询问给定一个字符串 $T$,求 $S_1 \sim S_N$ 中有多少个字符串是 $T$ 的前缀。输入字符串的总长度不超过 $10^6$,仅包含小写字母。 输入格式第一行两个整数 阅读全文
posted @ 2018-11-08 21:17 Dilthey 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/gym/101873/problem/K 题意: 现在给出 $n(1 \le n \le 1e4)$ 个员工,最多可以裁员 $k$ 人,名字为 $s_i$ 的员工的薪资为 $c_i(1 \le c_i \le 1e5)$。 已知必须节省下 $d( 阅读全文
posted @ 2018-11-08 20:10 Dilthey 阅读(248) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页