摘要: 题目描述 所谓虫食算,就是原先的算式中有一部分被虫子啃掉了,需要我们根据剩下的数字来判定被啃掉的字母。来看一个简单的例子: +43a9865a045008468a663344445506978其中a代表被虫子啃掉的数字。根据算式,我们很容易判断:第一行的两个数字分别是5和3,第二行... 阅读全文
posted @ 2016-01-30 17:01 outer_form 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 题目 分析:一个元素只可能被它上下左右即自己影响,设mat[i][j]为当且元素的值。那么mat[i][j]^mat[i+1][j]^mat[i][j+1]^mat[i-1][j]^mat[i][j-1]=0 所以我们可以据此列出m*n个方程,根据高斯消元求解即可。 但是,此题答案... 阅读全文
posted @ 2016-01-30 11:15 outer_form 阅读(177) 评论(0) 推荐(0) 编辑
摘要: A*#include#include#include#include#includeusing namespace std;stacks;struct node{ int dist,h,c; unsigned short s[10]; bool operatort... 阅读全文
posted @ 2016-01-30 09:56 outer_form 阅读(175) 评论(0) 推荐(0) 编辑