2011年12月18日

A Simple Problem

摘要: A Simple ProblemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 55Accepted Submission(s): 19Problem DescriptionFor a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2.InputThe 阅读全文

posted @ 2011-12-18 18:01 Goal 阅读(416) 评论(0) 推荐(0) 编辑

杭电菜鸟杯

摘要: 本次比赛共收到13所高校提供的18道题目,除了比赛使用的10道题目以外,还有8道题目因为题目太难、太陈或者描述不清等原因没有使用,无论如何非常感谢大家的支持(提供题目的学校名单如下:北邮,北交大,北师大,福州大学,哈工大,西南交大,浙江传媒,南华大学,华南理工,天大,华东师大,武汉大学以及杭电)。言归正传——以下是命题方提供的简要解题报告,期待能对你有所帮助:1001. A sample problem(数学):y^2=n+x^2化为(y-x)*(y+x)=n,把n分解因子,就可以搞定。1002. Bacon’s cipher(简单):判断每一位是不是数字,如果是数字则为1,否则为0,五位确定 阅读全文

posted @ 2011-12-18 18:00 Goal 阅读(249) 评论(0) 推荐(0) 编辑

导航