ACM-搜索
文章平均质量分 70
crazyacm
这个作者很懒,什么都没留下…
展开
-
HDU _1548 dfs
//原来自己暴力真的很差啊//HDU 1584//用深搜还是第一次尝试呢//假设现在要放置1,但是2,3,4都已经放好了,那么1肯定只能放在5的下面了,因为234也只会放在5的下面;//又如此来说1只能放在了5的下面所以要break一下;#include"stdio.h"#include"string"using namespace std;int mark[11];int id原创 2012-10-08 19:46:40 · 366 阅读 · 0 评论 -
(小米笔试)打乱字符串还原
#include #include int need[10][26];void init() { char str[10][6] = { "ZERO","ONE","TWO","THREE","FOUR","FIVE","SIX","SEVEN","EIGHT","NINE" }; int i, j; for (i = 0; i < 10; i++) { for (j = 0;原创 2016-09-23 21:56:01 · 2258 阅读 · 0 评论