算法竞赛入门例题3-5生成元
摘要:
如果x加上x的各个数字之和得到y,就说x是y的生成元。给出n(1=#includeusing namespace std;int a[100010];int main(){ memset(a,0,sizeof(a)); //只能是0,别的会是乱码 for(int x=1;x>n;... 阅读全文
posted @ 2016-05-15 10:18 我是蒟蒻 阅读(196) 评论(0) 推荐(0) 编辑
posted @ 2016-05-15 10:18 我是蒟蒻 阅读(196) 评论(0) 推荐(0) 编辑
posted @ 2016-05-15 08:52 我是蒟蒻 阅读(307) 评论(0) 推荐(0) 编辑