摘要:
#include<stdio.h>int main(){ int z,i,j; for(i=0;i<16;i++){ for(j=0;j<24;j++){ for(z=0;z<46;z++){ if(3*i+2*j+z==50&&i+j+z==30){ printf("%d %d %d\n",i,j 阅读全文
摘要:
int main(){ double n=0,m; int i; for(i=0;i<64;i++) { m=A(i); n+=m; } printf("sum=%e\n",n); printf("volum=%e\n",n/(1.42e8)); return 0;}double A(int n){ 阅读全文
摘要:
#include<stdio.h>int a[14];int main(){ int i,n,j=1; printf("The original order of cards is:"); for(i=1;i<=13;i++) { n=1; do{ if(j>13) j++; if(a[j]) j+ 阅读全文
摘要:
#include<stdio.h>int main(){ int x=1,find=0; while(find==0) { if(x%2==1 && x%3==2 && x%5==4 && x%6==5 && x%7==0) { printf("x=%d\n",x); find=1; } x++; 阅读全文
摘要:
#include<stdio.h>void main(){ int t,a[5]; long int k,i; for(i=95860;;i++) { for(t=0;k=100000;k>=10;t++) { a[t]=(i%k)/(k/10); k/=10; } if((a[0]==a[4])& 阅读全文
摘要:
#include <stdio.h> int main(){ int sum = 0; int i = 0; int flag = 0; double tmp = 0; for(sum = 11; sum <= 1000; sum++) { tmp = (double)sum; for(i = 1; 阅读全文
摘要:
#include<stdio.h>#include<windows.h> int main(){ int m = 0;//红球数量 int n = 0;//白球数量 int number = 0;//可能性的次数 printf(" 红球 白球 黑球\n"); printf("\n"); for (m 阅读全文
摘要:
#include<stdio.h>int j = 0;int judge(int a[]){ for (int i = 1; i < 10; i++) { if (a[0]!=a[i]) { return 1; } } return 0;}void put(int a[]){ printf("第 % 阅读全文
摘要:
#include <iostream>#include <cmath>using namespace std;int main(void){ int a1,a2,a3,a4,a5,n1,n2,n3,n4,n5; float maxm=0,tem; for (a5=0;a5<3;a5++) for(a 阅读全文
摘要:
#include<stdio.h>#define TAXBASE 3500 typedef struct{ long start; long end; double taxrate;} TAXTABLE; TAXTABLE TaxTable[]={{0,1500,0.03},{1500,4500,0 阅读全文