摘要:
#include <stdio.h>#include <stdlib.h>int main(){ //printf("Hello world!\n"); int n; scanf("%d",&n); while(n!=0) { int x,y; scanf("%d%d",&x,&y); if(x<y) printf("NO BRAINS\n"); else printf("MMM BRAINS\n"); n--; } return 0;} 阅读全文
posted @ 2013-04-04 13:01
天晴会下雨
阅读(122)
评论(0)
推荐(0)
摘要:
//Memory Time//240K 0MS#include<iostream>#include<math.h>#include<string>#include<iomanip>using namespace std;int main(void){ char alpha; double t,d,h; int i; for(;;)//等于while(true) { t=d=h=200; //三个参数的范围默认都是在-100 ~ 100 for(i=0;i<2;i++) { cin>... 阅读全文
posted @ 2013-04-04 10:37
天晴会下雨
阅读(134)
评论(0)
推荐(0)
摘要:
#include <stdio.h>#include <stdlib.h>#include <time.h>struct card{char *suit;char *face;};typedef struct card Card;void fillDeck(Card *,char *[],char *[]);void shuffle(Card *);void deal(Card *);int main(){ Card deck[52]; char *face[]={"1","2","3"," 阅读全文
posted @ 2013-04-03 19:52
天晴会下雨
阅读(320)
评论(0)
推荐(0)
摘要:
#include <stdio.h>#include <stdlib.h>#define SIZE 10//quickSortint part(int *a,int p,int r){ int x=a[r]; int i=p-1; int j,temp; int temp2; for(j=p;j<=r-1;j++) { if(a[j]<=x) { i++; temp=a[i]; a[i]=a[j]; a[j]=temp; } ... 阅读全文
posted @ 2013-04-03 10:18
天晴会下雨
阅读(105)
评论(0)
推荐(0)