摘要: You are given an integer N. Consider all possible segments on the coordinate axis with endpoints at integer points with coordinates be... 阅读全文
posted @ 2018-09-04 20:53 ~~zcy 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Description三个农民每天清晨5点起床,然后去牛棚给3头牛挤奶。第一个农民在300时刻(从5点开始计时,秒为单位)给他的牛挤奶,一直到1000时刻。第二个农民在700时刻开始,在 1200时刻结束。第三个农民在1500时刻开始2100时刻结束。期间最长的至少有... 阅读全文
posted @ 2018-09-04 20:33 ~~zcy 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Description mmoaay小侄子今年上初中,老师出了一道求约数个数的题目,比如8的约数有1,2,4,8共4个。当数比较小的时候可以人工算,当n较大时就难了。mmoaay嫌麻烦,现在让你编个程序来算。Input一行一个整数。最后以0结束。Output分别求出这... 阅读全文
posted @ 2018-09-04 17:47 ~~zcy 阅读(410) 评论(0) 推荐(0) 编辑