摘要:
1 本身不是素数, 因此它没有质因子, 如果题目要求对 1 处理, 要特判; 定义结构体存放质因子及其个数; struct factor { int x, count; // x为质因子, cnt为其个数 }fac[10]; //2*3*5*7*11*13*17*19*23*29就会超过int范围, 阅读全文
摘要:
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. 阅读全文