2020年1月14日
摘要: Goldbach's Conjecture: For any even number n greater than or equal to 4, there exists at least one pair of prime numbers p1 and p2 such that n = p1 + 阅读全文
posted @ 2020-01-14 20:17 qdu_lkc 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 作为史上最强的刷子之一,zhx的老师让他给学弟(mei)们出n道题。zhx认为第i道题的难度就是i。他想要让这些题目排列起来很漂亮。 zhx认为一个漂亮的序列{ai}下列两个条件均需满足。 1:a1..ai是单调递减或者单调递增的。 2:ai..an是单调递减或者单调递增的。 他想你告诉他有多少种排 阅读全文
posted @ 2020-01-14 19:45 qdu_lkc 阅读(207) 评论(0) 推荐(0) 编辑
摘要: I’m out of stories. For years I’ve been writing stories, some rather silly, just to make simple problems look difficult and complex problems look easy 阅读全文
posted @ 2020-01-14 17:05 qdu_lkc 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall! 阅读全文
posted @ 2020-01-14 16:22 qdu_lkc 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Eugeny has array a = a1, a2, ..., an, consisting of n integers. Each integer ai equals to -1, or to 1. Also, he has m queries: Query number i is given 阅读全文
posted @ 2020-01-14 16:09 qdu_lkc 阅读(288) 评论(0) 推荐(0) 编辑
摘要: compareTo() 方法用于将 Number 对象与方法的参数进行比较。可用于比较 Byte, Long, Integer等。 该方法用于两个相同数据类型的比较,两个不同类型的数据不能用此方法来比较。 语法 public int compareTo( NumberSubClass referen 阅读全文
posted @ 2020-01-14 15:02 qdu_lkc 阅读(565) 评论(0) 推荐(0) 编辑
摘要: C++编程考试使用的实时提交系统,具有即时获得成绩排名的特点。它的功能是怎么实现的呢? 我们做好了题目的解答,提交之后,要么“AC”,要么错误,不管怎样错法,总是给你记上一笔,表明你曾经有过一次错误提交,因而当你一旦提交该题“AC”后,就要与你算一算帐了,总共该题错误提交了几回。虽然你在题数上,大步 阅读全文
posted @ 2020-01-14 14:58 qdu_lkc 阅读(585) 评论(0) 推荐(0) 编辑