水题
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 · 285 阅读 · 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 · 579 阅读 · 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 · 298 阅读 · 0 评论 -
codeforces 835B The number on the board (优先队列,贪心)
B. The number on the boardtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSome natural number was written原创 2017-08-01 10:10:35 · 360 阅读 · 0 评论 -
Find The Multiple
Find The MultipleGiven 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 · 210 阅读 · 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 · 291 阅读 · 0 评论 -
Find The Multiple
Find The MultipleGiven 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 · 269 阅读 · 0 评论 -
Catch That Cow
M - Catch That CowFarmer 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 · 195 阅读 · 0 评论 -
Codeforces Round #404 (Div. 2) A. Anton and Polyhedrons
map水题题目链接:http://codeforces.com/contest/785/problem/A#include #include#include#includetypedef long long ll;using namespace std;map q;int main(){ int n; cin>>n;原创 2017-03-16 15:42:24 · 447 阅读 · 0 评论 -
Codeforces Round #404 (Div. 2) B. Anton and Classes
题目链接:http://codeforces.com/contest/785/problem/B题意:一个人喜欢编程和下棋两种课,所以两种课都参加(每种课都只用参加一次就可以),分别给定两种课的时间段,求使得所选两次课的最大时间间隔(因为这个人想要更多的休息时间)。 分析:直接找两组离得非常远的数据即可。 每次输入记录第一组数据的最晚的开始时间start1和最早原创 2017-03-16 15:45:16 · 523 阅读 · 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 · 343 阅读 · 0 评论