07 2014 档案

摘要:【题目】给一个无向图,每当对某个点操作,该点以及与该点相连的点都获得标记,问标记所有点至少需要操作多少次输入第一行为T,表示测试数据组数每组测试数据第一行为n(1#include#include#include#define eps 0.000001#define N 30000#define M ... 阅读全文
posted @ 2014-07-31 22:57 zhyfzy 阅读(187) 评论(0) 推荐(0)
摘要:【题目】给出一个长度为n的数组(8#include#include#include#include#define eps 0.000001using namespace std;int i,j,k,n,m,T,ans,big;bool flag;double x,y,z,a[100];bool eq... 阅读全文
posted @ 2014-07-31 22:17 zhyfzy 阅读(166) 评论(0) 推荐(0)
摘要:【题目】你的信用卡目前欠M元,每月的汇率是R,每月的利息要四舍五入为小数点后两位,你每月还B元,问多少月能还清。输入先是T代表测试数据组数接下来T行,每行有三个实数,R,M,B每个实数小数点后有两位输出每组测试数据输出一行,还清债务的最小月数,如果超过1200月都不能还清,输出“impossible... 阅读全文
posted @ 2014-07-31 21:52 zhyfzy 阅读(200) 评论(0) 推荐(0)
摘要:RunIDUserProblemResultMemoryTimeLanguageLengthSubmitTime2482977zhyfzyJAccepted0KB138msC++4.8.22322B2014-07-2415:18:54【题目大意】一个有向图,每对一个结点操作,就可以触发连锁反应,使得... 阅读全文
posted @ 2014-07-25 16:17 zhyfzy 阅读(518) 评论(0) 推荐(0)
摘要:UVA12720AlgorithmofPhilPhilislearninganewalgorithmwhichwasn'ttaughtinhisalgorithmsclasses.However,heisnotsurewhetherheimplementedittherightway,sohewou... 阅读全文
posted @ 2014-07-23 20:19 zhyfzy 阅读(261) 评论(0) 推荐(0)
摘要:Ball Blasting GameMorteza is playing a ball blasting game. In this game there is a chain of different colored balls. He is expected to explode as many... 阅读全文
posted @ 2014-07-21 21:24 zhyfzy 阅读(316) 评论(0) 推荐(0)