DrizzleX

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月14日

摘要: #include<iostream>#include<string>#include<algorithm>using namespace std;const int MAXSTUDENT=1000;const int MAXPROBLEM=10;class student{public: string ID; int total; int pro_solved; bool operator<... 阅读全文
posted @ 2012-04-14 21:28 DrizzleX 阅读(158) 评论(0) 推荐(0)

摘要: #include <stdio.h>#define MAX 27 int next[MAX]; int pre[MAX]; int f(int k){ int m; for(m=k+1;;m++) { //badGuys负责坏人的计数,pointer模拟指针在链表中移动 int badGuys=0,found=0,pointer; //初始化模拟双向链表的数组,总共2*k个人 n... 阅读全文
posted @ 2012-04-14 21:27 DrizzleX 阅读(317) 评论(0) 推荐(0)