
二分
文章平均质量分 72
ryo_218
要努力成为别人的依赖呀!
展开
-
第八届蓝桥杯省赛C++B组 分巧克力
标题: 分巧克力 儿童节那天有K位小朋友到小明家做客。小明拿出了珍藏的巧克力招待小朋友们。 小明一共有N块巧克力,其中第i块是Hi x Wi的方格组成的长方形。 为了公平起见,小明需要从这 N 块巧克力中切出K块巧克力分给小朋友们。切出的巧克力需要满足: 1. 形状是正方形,边长是整数 2. 大小相同 例如一块6x5的巧克力可以切出6块2x2的巧克力或者2块3x3的巧克力。 当然小朋...原创 2018-03-21 22:20:21 · 1702 阅读 · 8 评论 -
PAT 1010 Radix (25)
1010 Radix (25)(25 分) Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number. Now for an...原创 2018-08-31 20:48:36 · 256 阅读 · 0 评论