摘要: Problem Description 你活的不容易,我活的不容易,他活的也不容易。不过,如果你看了下面的故事,就会知道,有位老汉比你还不容易。重庆市郊黄泥板村的徐老汉(大号徐东海,简称XDH)这两年辛辛苦苦养了不少羊,到了今年夏天,由于众所周知的高温干旱,实在没办法解决牲畜的饮水问题,就决定把这些 阅读全文
posted @ 2018-10-31 19:26 stul 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Problem Description 有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法? Input 输入数据首先包含一个整数N,表示测试实例的个数,然后是N行数据,每行包含一个整数M(1<=M<=40),表示楼梯的级数。 Output 对于每个测试实例, 阅读全文
posted @ 2018-10-31 19:13 stul 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Problem Description Chiaki has 3n points p1,p2,…,p3n. It is guaranteed that no three points are collinear.Chiaki would like to construct n disjoint tr 阅读全文
posted @ 2018-10-31 18:17 stul 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Problem Description Given an integer n, Chiaki would like to find three positive integers x, y and z such that: n=x+y+z, x∣n, y∣n, z∣n and xyz is maxi 阅读全文
posted @ 2018-10-31 18:13 stul 阅读(127) 评论(0) 推荐(0) 编辑