摘要: https://blog.csdn.net/Dream_your 阅读全文
posted @ 2019-03-14 11:14 峰寒 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Fliptile Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 19730 Accepted: 7118 Description Farmer John knows that an intellectually satisfie 阅读全文
posted @ 2019-03-14 11:09 峰寒 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a numb 阅读全文
posted @ 2019-03-10 23:53 峰寒 阅读(154) 评论(0) 推荐(0) 编辑
摘要: You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. 阅读全文
posted @ 2019-03-10 17:25 峰寒 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将 阅读全文
posted @ 2019-03-10 16:15 峰寒 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 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 峰寒 阅读(195) 评论(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 峰寒 阅读(438) 评论(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 峰寒 阅读(230) 评论(0) 推荐(0) 编辑