摘要:
#include<stdio.h> int sushume(x) { int i=2,ret=0; for(i=2;x%i!=0;i++){;} //printf("%d",i); if (i==x){ret=1;} //printf("%d",ret); return ret; } int mai 阅读全文
摘要:
#include<stdio.h> int fuhao(); int main() { int shuzu[101],m,n,c=0,x,y,z=0,q=0,cn=0; for(z=0;z<=100;z++) { shuzu[z]=0; } do { scanf("%d %d",&m,&n); sh 阅读全文
摘要:
#include<stdio.h> int main() { int m,n,i=2,tlm=0,tln=0,x=2,count=0,tl=0,q=0,ii=0; scanf("%d %d",&m,&n); q=m-1; for (i=2;count<n;i++) { while(i%x!=0){x 阅读全文
摘要:
#include<stdio.h> int main() { int x=0,m=0,n=0,a=0; do { scanf("%d",&x); a=x%2; if (a==1){//傻子hhhhh==哦 m++; } else if (a==0) { n++; } }while(x!=-1); p 阅读全文