摘要: #include<stdio.h>int f(int n,int L,int R){ int ch[10000],i,j,count=0; j=1; for(i=L;i<=R;i++) { if(isprime(i)==1) { ch[j]=i; j++; } } for(i=1;i<j&&(ch[ 阅读全文
posted @ 2020-02-06 20:20 我是个好孩子 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>struct student{ char name[9]; long no; int score[4];};void input(struct student stu[100],int n){ int i; for(i=1;i<=n;i++) { scanf("%l 阅读全文
posted @ 2020-02-06 18:34 我是个好孩子 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int fill(char *map,int *primes) { for (int i = 2; i < 1001; i++) { map[i] = 1; for (int j = 2; j < i; j++) { if (i % j == 0) { map[i 阅读全文
posted @ 2020-02-06 18:33 我是个好孩子 阅读(174) 评论(0) 推荐(0) 编辑