![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暴力AC
文章平均质量分 88
tsfissure
这...不填可以不...
展开
-
hdu 1257 最少拦截系统 (暴力版&温柔版/强力注释版)
最少拦截系统Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9038 Accepted Submission(s): 3513Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截原创 2012-08-02 21:21:11 · 876 阅读 · 0 评论 -
swun 1429&hdu 4320 进制转化(大牛&小牛代码)
描述最近小胖对小数的进制转换非常感兴趣。并且研究了整整一周。小胖发现,有些进制的小数是无法完全转化成另一进制的小数。比如 十进制的0.1 转化成 三进制 。现在,小胖要来考验你们了。 输入第一行输入一个整数T,代表有T组测试数据。(T对于每组测试数据,有两个整数A、B。(1输出对于每组测试数据,输出样式请参照样例输出。如果A进制的小数原创 2012-08-04 09:46:59 · 1089 阅读 · 2 评论 -
HDU 1983 Kaitou Kid - The Phantom Thief (2)
Problem Description破解字迷之后,你得知Kid将会在展览开始后T分钟内盗取至少一颗宝石,并离开展馆。整个展馆呈矩形分布,划分为N*M个区域,有唯一的入口和出口(不能从出口进入,同样不能从入口出去)。由某个区域可直接移动至相邻四个区域中的一个,且最快需要一分钟。假设Kid进入放有宝石的区域即可盗取宝石,无需耗时。问至少要封锁几个区域(可以封锁放有宝石的区域,但不能封锁入口和出口原创 2012-08-16 17:21:14 · 927 阅读 · 0 评论 -
HDU 4452 Running Rabbits 【模拟】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4452所说这题把我队友坑了好几天。思维有洞呀,我没有想到什么bug去帮他解决。最后也是根据题意直接模拟过的。#include#includeusing namespace std;int Map[25][25];struct Rabbit{ int x,y; in原创 2012-11-07 17:39:34 · 781 阅读 · 2 评论 -
[LeetCode] Remove Duplicates from Sorted Array & Remove Element
Remove Duplicates from Sorted ArrayRemove Element发现这两题性质差不多,于是就一起写了吧.Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once a原创 2015-11-12 13:24:52 · 324 阅读 · 0 评论 -
[LeetCode] Count and Say
Count and Say The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21.原创 2015-11-17 13:13:59 · 302 阅读 · 0 评论 -
[LeetCode]Length of Last Word&Plus One
发现还早,并没有睡意,再看了一眼后面的Easy,发现很快,so,写了吧,为了节约能源,把两题合在一起Length of Last Word Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last word in the str原创 2015-11-17 13:31:12 · 342 阅读 · 0 评论