2011年8月2日

Intersecting Lines

摘要: Intersecting LinesTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 5339Accepted: 2526DescriptionWe all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will intersect in one of three ways: 1) no intersection because they are parallel, 2) inter 阅读全文

posted @ 2011-08-02 22:19 more think, more gains 阅读(364) 评论(0) 推荐(0) 编辑

素因子

摘要: 1575: 素因子Time Limit: 5 SecMemory Limit: 128 MBSubmit: 254Solved: 102[Submit][Status][Web Board]Description我们知道,任何一个大于1的数,都可以写成多个素数的乘积,我们把这些素数叫做这个数的素因子。Input第一行为测试数据的组数N,以下N行,每行一个数字k(1<k<2^24)Output输出N行,每行两个数字,一个是k的最大素因子,第二个是k的素因子的个数。Sample Input31025120Sample Output5 25 15 3#include <stdio. 阅读全文

posted @ 2011-08-02 10:02 more think, more gains 阅读(226) 评论(0) 推荐(0) 编辑

导航