上一页 1 ··· 7 8 9 10 11 12 13 下一页
  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 阅读(280) 评论(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 阅读(564) 评论(0) 推荐(0) 编辑
摘要: C++编程考试使用的实时提交系统,具有即时获得成绩排名的特点。它的功能是怎么实现的呢? 我们做好了题目的解答,提交之后,要么“AC”,要么错误,不管怎样错法,总是给你记上一笔,表明你曾经有过一次错误提交,因而当你一旦提交该题“AC”后,就要与你算一算帐了,总共该题错误提交了几回。虽然你在题数上,大步 阅读全文
posted @ 2020-01-14 14:58 qdu_lkc 阅读(580) 评论(0) 推荐(0) 编辑
  2020年1月13日
摘要: 给出3个正整数A B C,求A^B Mod C。 例如,3 5 8,3^5 Mod 8 = 3。 Input3个正整数A B C,中间用空格分隔。(1 <= A,B,C <= 10^9)Output输出计算结果Sample Input 3 5 8 Sample Output 3代码: public 阅读全文
posted @ 2020-01-13 20:58 qdu_lkc 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 有编号1-n的n个格子,机器人从1号格子顺序向后走,一直走到n号格子,并需要从n号格子走出去。机器人有一个初始能量,每个格子对应一个整数Aii,表示这个格子的能量值。如果Aii > 0,机器人走到这个格子能够获取Aii个能量,如果Aii < 0,走到这个格子需要消耗相应的能量,如果机器人的能量 < 阅读全文
posted @ 2020-01-13 20:55 qdu_lkc 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵 但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师发工资的时候都不用老师找零呢? 这里假 阅读全文
posted @ 2020-01-13 20:52 qdu_lkc 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页