![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单Ac
文章平均质量分 77
查尔德77
努力改变自己
展开
-
数绵羊- 广搜深搜都行
Problem DescriptionA while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother suggested I tried counting sheep after I'd gone原创 2014-06-30 11:28:12 · 616 阅读 · 0 评论 -
Ac- 简单题
1261. LittleGameDescription小卡和欢总喜欢玩一个小游戏,游戏界面是4*4格子的棋盘,每个格子可以放一个棋子。最开始的时候棋盘上只有一个棋子,叫'T'。接下来欢总和小卡轮流放棋子,小卡的棋子是'X',欢总是'O'。如果有一行或一列或一条对角线上全部是某个选手的棋子(4个)或者3个他的棋子和'T',这个选手就赢了,游戏结束。 如果所有格子都满了原创 2014-05-30 21:20:53 · 579 阅读 · 0 评论 -
Ac简单题-Milking Cow
1262. Milking CowDescription瓦特尔,阿隆索,汉密尔顿在F1上海站进行比赛,每人必须进维修站更换轮胎一次(谁出的无聊规定?!),而且只能进维修站一次。阿隆索在20秒进站换胎,一直到90秒出站。瓦特尔在60秒开始进站,在 130秒结束。汉密尔顿在160秒开始220秒结束。期间最长的至少有一个车手在维修区的连续时间为110秒(从20秒到130秒),而最原创 2014-05-30 23:03:08 · 756 阅读 · 0 评论 -
01背包,开心的小明
http://acm.nyist.net/JudgeOnline/problem.php?pid=49代码其实不是自己的,#include #include int DP[30005];#define MAX(a,b) a>b?a:bint main(){ int N,i,j,P,p,m,v; scanf("%d",&N); while(N--)原创 2014-07-07 23:17:12 · 414 阅读 · 0 评论 -
猴子选王-链表水题
#include#include using namespace std;struct NodeT{ int n; NodeT *next,*front;};NodeT* kill(NodeT *p,int Kn){ //从给你的指针位置开始数1 ,一直数到 Kn //把那个人杀掉,并且返回被杀掉的后一个人的指针。 NodeT *pre=p;原创 2014-07-07 17:27:50 · 829 阅读 · 0 评论 -
uva ID codes
用next_permutation 秒#include #include #include #include #include #include #include #include #include using namespace std;int cmp(const void *p1,const void *p2){ char *a = (char *)p1;c原创 2014-08-13 22:45:47 · 541 阅读 · 0 评论