水题
xxzccccccc
python/C++, 深度学习,ACM算法竞赛
阿里算法工程师
前百度算法工程师
前滴滴算法工程师
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
51nod 1087 1 10 100 1000
1087 1 10 100 1000 题目来源: Ural 1209 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注 1,10,100,1000...组成序列1101001000...,求这个序列的第N位是0还是1。 Input 第1行:一个数T,表示后面用作输入原创 2017-03-12 19:55:50 · 340 阅读 · 0 评论 -
Codeforces Round #404 (Div. 2) B. Anton and Classes
题目链接:http://codeforces.com/contest/785/problem/B 题意:一个人喜欢编程和下棋两种课,所以两种课都参加(每种课都只用参加一次就可以),分别给定两种课的时间段,求使得所选两次课的最大时间间隔(因为这个人想要更多的休息时间)。 分析:直接找两组离得非常远的数据即可。 每次输入记录第一组数据的最晚的开始时间start1和最早原创 2017-03-16 15:45:16 · 624 阅读 · 0 评论 -
Codeforces Round #404 (Div. 2) A. Anton and Polyhedrons
map水题 题目链接:http://codeforces.com/contest/785/problem/A #include #include #include #include typedef long long ll; using namespace std; map q; int main() { int n; cin>>n;原创 2017-03-16 15:42:24 · 518 阅读 · 0 评论 -
Catch That Cow
M - Catch That Cow Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at原创 2017-06-06 21:38:44 · 266 阅读 · 0 评论 -
Find The Multiple
Find The Multiple Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is n原创 2017-06-06 21:46:08 · 328 阅读 · 0 评论 -
Dungeon Master
Dungeon Master You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to原创 2017-06-06 21:47:59 · 384 阅读 · 0 评论 -
Find The Multiple
Find The Multiple Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n原创 2017-06-06 21:50:52 · 279 阅读 · 0 评论 -
codeforces 835B The number on the board (优先队列,贪心)
B. The number on the board time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Some natural number was written原创 2017-08-01 10:10:35 · 485 阅读 · 0 评论 -
2017CCPC秦皇岛 L:One-Dimensional Maze
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3992 签到题,直接向左扫一遍,然后向右扫一遍。 #include #include #include using namespace std; char str[100005]; int main(void) { int T原创 2017-11-05 17:06:45 · 374 阅读 · 0 评论 -
2017CCPC秦皇岛 C:Crusaders Quest
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3983 签到题: 题意: 给你9个字母,其中'g' 'a' 'o'各三个,你可以选择其中一个字母,然后 ①这个字母和相邻的相同的字母全部消去 ②后面的字母会往前移动 举个例子: aaooggg原创 2017-11-05 17:10:41 · 692 阅读 · 0 评论 -
2017CCPC秦皇岛 E:String of CCPC
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3985 题意: 给你一个只包含C和P的字符串,你每次可以在其中添加一个字符 第k次添加字符要消耗k-1元 之后统计字符串中CCPC的数量,每有一个CCPC你就会获得1元 求最大收益 思路: 你最多只用转载 2017-11-05 17:12:12 · 421 阅读 · 0 评论
分享