摘要: 1、 //以1~6报数,1~11报数为出发点 #include<stdio.h>int main(void){ int x=65;//65是同时满足除以6余数为5,除以11余数为10的最小值 while(1){ x+=66;//6和11的最小公倍数 if(x%5==1&&x%7==4){//x还需满 阅读全文
posted @ 2020-12-02 14:02 是小小怪吖 阅读(1055) 评论(0) 推荐(0)
摘要: 1、使用函数输出水仙花数 #include <stdio.h>int narcissistic( int number );void PrintN( int m, int n );int main(){ int m, n; scanf("%d %d", &m, &n); if ( narcissis 阅读全文
posted @ 2020-12-02 13:54 是小小怪吖 阅读(303) 评论(0) 推荐(0)