#include<iostream>#include<algorithm>using namespace std;struct node //定义结构体{ int num;//数据 int count;//出现的次数 计数};bool cmp(node a, node b)//排序{ if (a.c Read More
posted @ 2016-08-06 19:26 A-inspire Views(1174) Comments(0) Diggs(0) Edit
#include <stdio.h> #define MAXN 64 int a[MAXN + 1][MAXN + 1] = { 0 }; void gamecal(int k, int n)//处理编号k开始的n个选手的日程 { int i, j; if (n == 2) { a[k][1] = Read More
posted @ 2016-08-06 14:43 A-inspire Views(180) Comments(0) Diggs(0) Edit
#include <stdio.h>#include <windows.h>#include<string.h>int main() { int oldprice, price = 0, i = 0; printf("请首先设置商品的真实价格:"); scanf("%d", &oldprice); Read More
posted @ 2016-08-06 01:21 A-inspire Views(249) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){ int num1, num2,temp; scanf("%d%d",&num1,&num2); int t1 = num1; int t2 = num2; while (num2 != 0) { temp = num1%num2; num1 Read More
posted @ 2016-08-03 19:06 A-inspire Views(222) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){ int one,tow,five,num=1; for (one = 1; one < num*10; one++) { for (tow = 1; tow < num*10 / 2; tow++) { for (five = 1; five Read More
posted @ 2016-08-03 18:50 A-inspire Views(1609) Comments(0) Diggs(0) Edit
#include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ int i; for(i=1;i<=5;i++) { printf("i=%d\n",i); }printf("i最后的值为%d\n",i);return 0;}/* for Read More
posted @ 2016-08-02 17:47 A-inspire Views(129) Comments(0) Diggs(0) Edit
#include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ int num,i,result=1; scanf("%d",&num); for(i=1;i<=num;i++) { result=result*i; } printf(" Read More
posted @ 2016-08-02 17:33 A-inspire Views(244) Comments(0) Diggs(0) Edit
#include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ srand(time(0)); int ich;int num; do { getchar(); num=rand()%100+1; if(num%6==0) { print Read More
posted @ 2016-08-02 17:14 A-inspire Views(235) Comments(0) Diggs(0) Edit
#include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ srand(time(0)); int count=0,thought; int num=rand()%100+1; printf("%d\n",num); do { pri Read More
posted @ 2016-08-02 16:53 A-inspire Views(257) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){int num,count=0,i=0,ret=0;scanf("%d",&num);while(num>=0){ printf("%d\n",num); num--;} return 0;}/*32 1 0 -1 num--; printf( Read More
posted @ 2016-08-02 16:27 A-inspire Views(988) Comments(0) Diggs(0) Edit