摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1237题目大意:一个简单的计算器,只要判断好运算顺序即可。先加减后乘除~建议一个比较简单的想法,输入一个数字,再输入一个字符,接下去对字符进行判断,分别将数字存入栈中,最后将栈的数进行整理。这样做下去还可... 阅读全文
posted @ 2014-07-31 13:23
若忆_star
阅读(1612)
评论(4)
推荐(2)
摘要:
题目链接:http://poj.org/problem?id=1363题目大意:1~n输入,然后以题目要求进行输出,判断能否实现!“0”表示一组数据的结束~注意每组输出后有一个空行! 1 #include 2 #include 3 #include 4 using namespace std;... 阅读全文
posted @ 2014-07-31 12:28
若忆_star
阅读(227)
评论(0)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1195题目大意:密码解锁,有两种方式:第一,拨动密码;第一,调换相邻密码的位置。以这两种方式找到最少次数的解锁次数! 1 #include 2 #include 3 #include 4 #incl... 阅读全文
posted @ 2014-07-31 10:55
若忆_star
阅读(349)
评论(0)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1518题目大意:根据题目所给的几条边,来判断是否能构成正方形,一个很好的深搜应用,注意剪枝,以防超时! 1 #include 2 #include 3 #include 4 #include 5 u... 阅读全文
posted @ 2014-07-31 08:00
若忆_star
阅读(244)
评论(0)
推荐(0)
浙公网安备 33010602011771号