上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 56 下一页
摘要: 这个题就是一块大板子,问你能不能切成两块要求的长宽的两块板子,一开始是按切板子想的,感觉有点麻烦。 直接反过来想,把两块要求的板子拼起来,填成一个大板子,看填出来的这个板子和题目给的板子比较,小于等于就满足。 想了一下是四种情况,直接贴一下草稿纸上画的,丑乎乎的( ̄▽ ̄)/ 代码虽然长,但是直接复制 阅读全文
posted @ 2018-01-15 20:59 ZERO- 阅读(385) 评论(0) 推荐(0)
摘要: 这个题直接推公式就可以。 就是解一元二次方程,用高中学的公式,函数开口向上,求最大值为(4ac-b*b)/4a。 这个题推出来一元二次方程,然后将最大值的公式化简一下。公式很好推。 这个题有疑问,int vx=v11-v1,vy=v22-v2;这样写是对的,反过来写成v1-v11,v2-v22就不对 阅读全文
posted @ 2018-01-15 20:58 ZERO- 阅读(231) 评论(0) 推荐(0)
摘要: 这个题就是组三角形,从给出的数组里任选两个和未知的边组三角形。 任意两边之和大于第三边,记住这个就可以了。 代码: 阅读全文
posted @ 2018-01-15 20:57 ZERO- 阅读(254) 评论(0) 推荐(0)
摘要: E. The Architect Omar time limit per test 1.0 s memory limit per test 256 MB input standard input output standard output Architect Omar is responsible 阅读全文
posted @ 2018-01-15 20:57 ZERO- 阅读(372) 评论(0) 推荐(0)
摘要: 昨天训练打的Gym,今天写题解。 这个题就是输出的时候有点小问题,其他的都很简单。 代码: 阅读全文
posted @ 2018-01-15 20:56 ZERO- 阅读(421) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-12-18 00:23 ZERO- 阅读(18) 评论(0) 推荐(0)
摘要: C. Dividing the numbers time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Petya has n integ 阅读全文
posted @ 2017-12-17 23:34 ZERO- 阅读(274) 评论(0) 推荐(0)
摘要: B. Months and Years time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Months and Years t 阅读全文
posted @ 2017-12-17 23:25 ZERO- 阅读(344) 评论(0) 推荐(0)
摘要: A. Splitting in Teams time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Splitting in Tea 阅读全文
posted @ 2017-12-17 23:23 ZERO- 阅读(397) 评论(0) 推荐(0)
摘要: C. Phone Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasya has several phone 阅读全文
posted @ 2017-12-17 21:35 ZERO- 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 56 下一页