
acm
文章平均质量分 72
萌萌哒絮儿
这个作者很懒,什么都没留下…
展开
-
hdu 5950
http://acm.hdu.edu.cn/showproblem.php?pid=5950Recursive sequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 329 Accepted Submis原创 2016-11-04 16:29:04 · 338 阅读 · 0 评论 -
hihocode——#1498 : Diligent Robots
http://hihocoder.com/problemset/problem/1498#1498 : Diligent Robots时间限制:10000ms单点时限:1000ms内存限制:256MB描述There are N jobs to be finished. It takes a robot 1 hour to原创 2017-04-08 22:38:41 · 1138 阅读 · 2 评论 -
leetcode_209. Minimum Size Subarray Sum
https://leetcode.com/problems/minimum-size-subarray-sum/#/descriptionGiven an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the原创 2017-04-10 18:37:30 · 313 阅读 · 0 评论 -
ccf__201604-4游戏
问题描述试题编号:201604-4试题名称:游戏时间限制:1.0s内存限制:256.0MB问题描述:问题描述 小明在玩一个电脑游戏,游戏在一个n×m的方格图上进行,小明控制的角色开始的时候站在第一行第一列,目标是前往第n行第m列。 方格图上有一些方格是始终安全原创 2017-03-15 21:37:26 · 325 阅读 · 0 评论 -
leetcode_31. Next Permutation
https://leetcode.com/problems/next-permutation/#/descriptionImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arra原创 2017-04-10 20:10:12 · 238 阅读 · 0 评论 -
leetcode_54. Spiral Matrix
//https://leetcode.com/problems/spiral-matrix/#/descriptionGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the follo原创 2017-05-17 23:03:46 · 252 阅读 · 0 评论 -
2017计蒜之道程序设计大赛初赛第五场
https://www.jisuanke.com/contest/730第一题,从大到小排序,依次取就可以#includeusing namespace std;int a[105];int cmp(int a,int b){ return a>b;}int main(){ int n,m; scanf("%d%d",&n,&m); for原创 2017-06-04 10:28:11 · 381 阅读 · 0 评论 -
2017计蒜之道程序设计大赛初赛第五场
https://www.jisuanke.com/contest/730第一题:只要从大到小排序再取即可。#includeusing namespace std;int a[105];int cmp(int a,int b){ return a>b;}int main(){ int n,m; scanf("%d%d",&n,&m); for(i原创 2017-06-04 10:34:30 · 415 阅读 · 0 评论 -
计蒜客复赛——百度地图导航
https://nanti.jisuanke.com/t/15969百度地图上有 nn 个城市,城市编号依次为 11 到 nn。地图中有若干个城市群,编号依次为 11 到 mm。每个城市群包含一个或多个城市;每个城市可能属于多个城市群,也可能不属于任何城市群。地图中有两类道路。第一类道路是 城市之间的快速路,两个城市 u,vu,v 之间增加一条距离为 cc的边;第二类道路是 城原创 2017-07-08 20:15:11 · 290 阅读 · 0 评论 -
hihocode——#1497 : Queen Attack
http://hihocoder.com/problemset/problem/1497时间限制:10000ms单点时限:1000ms内存限制:256MB描述There are N queens in an infinite chessboard. We say two queens may attack each other if they are原创 2017-04-08 22:35:04 · 954 阅读 · 0 评论 -
CSU——1009
http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1009DescriptionJames得到了一堆有趣的硬币,于是决定用这些硬币跟朋友们玩个小游戏。在一个N行M列的表格上,每一个第i行第j列的格子上都放有一枚James的硬币,抛该硬币正面朝上的概率为Pij,所有抛硬币事件两两之间是相互独立的。现在,玩家在M列硬币中,从每原创 2017-04-08 22:32:30 · 534 阅读 · 0 评论 -
codeforces558e,好题
http://codeforces.com/problemset/problem/558/EE. A Simple Tasktime limit per test5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard原创 2016-10-30 16:48:40 · 1192 阅读 · 0 评论 -
codeforces 196b
http://codeforces.com/contest/196/problem/BB. Infinite Mazetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output原创 2016-10-31 16:34:54 · 384 阅读 · 0 评论 -
编程题——推箱子
https://www.nowcoder.com/question/next?pid=4111169&qid=76262&tid=7218208大家一定玩过“推箱子”这个经典的游戏。具体规则就是在一个N*M的地图上,有1个玩家、1个箱子、1个目的地以及若干障碍,其余是空地。玩家可以往上下左右4个方向移动,但是不能移动出地图或者移动到障碍里去。如果往这个方向移动推到了箱子,箱子也原创 2017-03-18 12:47:50 · 4636 阅读 · 0 评论 -
leecode_11. Container With Most Water
https://leetcode.com/problems/container-with-most-water/Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn suc原创 2017-03-08 22:18:11 · 204 阅读 · 0 评论 -
leetcode_9. Palindrome Number
题目:https://leetcode.com/problems/palindrome-number/?tab=Description题意:问一个数字串是不是回文串只要分解它,然后从两边往前面比较即可。class Solution {public: bool isPalindrome(int x) { if(x原创 2017-03-05 20:43:45 · 225 阅读 · 0 评论 -
leetcode_75. Sort Colors
https://leetcode.com/problems/sort-colors/?tab=DescriptionGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors原创 2017-03-08 23:25:24 · 245 阅读 · 0 评论 -
leetcode_17.Letter Combinations of a Phone Number
https://leetcode.com/problems/letter-combinations-of-a-phone-number/?tab=DescriptionGiven a digit string, return all possible letter combinations that the number could represent.A mapping of原创 2017-03-08 23:12:21 · 213 阅读 · 0 评论 -
leetcode_7. Reverse Integer
题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Note:The input is assumed to be a 32-bit signed integer. Your fun原创 2017-03-05 20:33:27 · 207 阅读 · 0 评论 -
CSU 1105
http://acm.csu.edu.cn/csuoj/problemset/problem?pid=11051105: 打怪升级Submit Page Summary Time Limit: 1 Sec Memory Limit: 64 Mb Submitted: 357 Solved: 104原创 2017-08-30 16:07:56 · 341 阅读 · 0 评论