摘要: C. K-Dominant Character time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. K-Dominant Ch 阅读全文
posted @ 2019-03-09 17:24 峰寒 阅读(268) 评论(0) 推荐(0) 编辑
摘要: B. Two Cakestime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputIt's New Year's Eve soon, so Ivan 阅读全文
posted @ 2019-03-09 16:05 峰寒 阅读(197) 评论(0) 推荐(0) 编辑
摘要: You are given an array d1,d2,…,dnd1,d2,…,dn consisting of nn integer numbers. Your task is to split this array into three parts (some of which may be 阅读全文
posted @ 2019-03-09 14:35 峰寒 阅读(176) 评论(0) 推荐(0) 编辑
摘要: //题意:一个的工作时间是m分钟。 // 在特定的时间和咖啡 n a1,a2....an,, ai代表的是每个咖啡要在一天中对应的时间点喝掉 // 每一次喝咖啡的时间为1分钟 // 必须在一天中的ai时刻喝掉对应的咖啡 // 在两次喝咖啡中间要有d分钟休息时间,天与天之间时间大于d // 尽可能少的天数内将所有咖啡喝完,不只有一种... 阅读全文
posted @ 2019-03-09 13:37 峰寒 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 题意: 给一个测试次数 t 每行输入一个数,输入t行d 0<=t<=3000, 0<=d<=3000 使|(a+b)−a⋅b|≤10−6 and |(a+b)−d|≤10−6 注意:精度用1e-7 及可AC 阅读全文
posted @ 2019-03-09 10:57 峰寒 阅读(233) 评论(0) 推荐(0) 编辑