摘要:
#include<stdio.h> #include<stdlib.h> #define MaxEmployees 100 typedef struct { char name[20]; double height; double salary; }employee; typedef enum{FA 阅读全文
摘要:
#include<stdio.h>int main(void){int count=1; int i=70; while(count<500){ count = 1; int a= 2; int b = (i+1)*i/2; while (b > 1) { int t = 0; while (b % 阅读全文
摘要:
#include<stdio.h>int main(void) { int a[20][20]; int i,j,b,c; int big=1; for(i=0;i<20;i++) { for(j=0;j<20;j++) scanf("%d",&a[i][j]); } for(i=0;i<20;i+ 阅读全文
摘要:
#include<stdio.h>#define N 2000000int a[N]; int main(){ __int64 sum=0; __int64 i,j; for(i=2;i<N;i++) a[i]=1; for(i=2;i<N;i++) if(a[i]) for(j=i;i*j<N;j 阅读全文
摘要:
#include <stdio.h>#include <stdlib.h>long long getSum(int n){ long long sum = 0; char *array=(char*) malloc(n+1); int i; for(i=0; i<n+1; i++) { array[ 阅读全文
摘要:
#include<stdio.h>int main(void){ int i,b; long long large; long long t; int x[2000]; for(i=1;i<=1000;i++) { scanf("%1d",&x[i]); } large=1; for(i=1;i<= 阅读全文
摘要:
#include<stdio.h>#define N 10000int main(){ int i,j,a[N]; for(i=2;i<N;i++) a[i]=1; for(i=2;i<N;i++) if(a[i]) for(j=i;i*j<N;j++) a[i*j]=0; for(i=2;i<N; 阅读全文
摘要:
#include<stdio.h>#include<string.h> int main(void){ int prime(int x); int m,n; int a; int larger=0; for(m=100;m<1000;m++) { for(n=100;n<1000;n++) { a= 阅读全文
摘要:
#include<stdio.h>int main(void) { int n; scanf("%d",&n); int t=2; while(n>1) { if(n%t==0) { printf("%d\n",t); n=n/t; } else t++; } } 阅读全文
摘要:
void dectobin(int n){ int in = n/2; int out = n%2; if(n == 0){ return ; } dectobin( in); printf("%d",out); } 阅读全文