摘要: 1 本身不是素数, 因此它没有质因子, 如果题目要求对 1 处理, 要特判; 定义结构体存放质因子及其个数; struct factor { int x, count; // x为质因子, cnt为其个数 }fac[10]; //2*3*5*7*11*13*17*19*23*29就会超过int范围, 阅读全文
posted @ 2018-06-11 20:51 Cirno-9 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 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. 阅读全文
posted @ 2018-06-11 15:52 Cirno-9 阅读(133) 评论(0) 推荐(0) 编辑