
ACM
zhyfzy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVA 12378 Ball Blasting Game
B Ball Blasting Game Morteza is playing a ball blasting game. In this game there is a chain of different colored balls. He is expected to explode as many balls as possible by aligning same-colored原创 2014-07-21 21:24:37 · 589 阅读 · 0 评论 -
UVA 11770 Lighting Away
RunID User Problem Result Memory Time Language Length Submit Time 2482977 zhyfzy J Accepted 0 KB 138 ms C++ 4.8.2 23原创 2014-07-25 16:06:33 · 492 阅读 · 0 评论 -
2014年7月23日比赛题目
UVA 12720 Algorithm of Phil Phil is learning a new algorithm which wasn't taught in his algorithms classes. However, he is not sure whether he implemented it the right way, so he would really appreci原创 2014-07-23 20:19:35 · 493 阅读 · 0 评论 -
LA 6448 Credit Card Payment
【题目】 你的信用卡目前欠M元,每月的汇率是R,每月的利息要四舍五入为小数点后两位,你每月还B元,问多少月能还清。 输入 先是T代表测试数据组数 接下来T行,每行有三个实数,R,M,B每个实数小数点后有两位 输出 每组测试数据输出一行,还清债务的最小月数,如果超过1200月都不能还清,输出“impossible” 【吐槽】 这道题过的好不容易,首先是读题,如果不了原创 2014-07-31 21:52:08 · 325 阅读 · 0 评论 -
LA 6450 Social Advertising
【题目】 给一个无向图,每当对某个点操作,该点以及与该点相连的点都获得标记,问标记所有点至少需要操作多少次 输入 第一行为T,表示测试数据组数 每组测试数据第一行为n(1表示有n个点,接下来n行,第i行描述与结点i所连的点,首个整数d,接下来有d个整数,表示结点i与它之间有一条边,该图没有自环 输出 每组测试数据输出一行,一个数表示至少需要操作的次数 【题解】 状态压缩+枚举 这原创 2014-07-31 22:57:10 · 394 阅读 · 0 评论 -
LA 6449 IQ Test
LA 6449 IQ Test 【题目】 给出一个长度为n的数组(8,告诉你规律 (1 现在求第n+1项 【题解】 水题 不知道怎么求a1~ad,用克拉默法则 【代码】 RunID User Problem Result Memory Time Language Length Sub原创 2014-07-31 22:17:59 · 433 阅读 · 0 评论 -
UVA 11427 Expect the Expected
白书上的题目,我自己tle了一发原创 2014-08-10 22:53:36 · 379 阅读 · 0 评论