PAT 乙级 1005题
PAT 乙级 1005题
采用数组储存每个数的状态,初始化数组所有值为0,读入的数据状态置1,计算初始值所产生的Callatz的覆盖值置2。
#include <stdio.h>
#include <stdlib.h>
int Callatz(int n);
int main()
{
int K = 0, count = 0;
int num[101] = { 0 };
int x = 0;
while (scanf("%d", &K) !=
原创
2020-10-24 18:27:17 ·
209 阅读 ·
0 评论