![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索
ankerfeng
这个作者很懒,什么都没留下…
展开
-
NYOJ722数独
http://acm.nyist.net/JudgeOnline/problem.php?pid=722第一次做这类填数之类的经典题目,借鉴大神的代码,我只是给你备注一下WHY#include#includeint Map[9][9],floag;int IsCan(int number,int x,int y){//判断Numebr是否满足数独的条件int i,j;for(i=0原创 2014-04-01 18:02:53 · 996 阅读 · 0 评论 -
NYOJ128前缀式的计算递归求解当时…
题目地址#include#includechar str[100000];int i=0;double count1(){ double sum; int n; switch(str[i]) { case '+':i++;return count1()+count1(); case '-':i++;return coun原创 2014-04-01 18:02:51 · 632 阅读 · 0 评论 -
NYOJ587blockhouses
题目大意:题目原创 2014-04-23 16:05:34 · 596 阅读 · 0 评论 -
NYOJ927The partial sum problem
#include "stdio.h"#include "stdlib.h"#include "string.h"int N, P, a[25];int Mcmp(const void *_a, const void *_b){int * a = (int *)_a;int *b = (int *)_b;return *a-*b;}int dfs(int s, int su原创 2014-04-01 18:03:00 · 746 阅读 · 0 评论 -
NYOJ4324 Point game
#include"stdio.h"double e = 1e-6;double num[7],v;int n;bool dfs(int t){ if(t==n) { if(fabs(v-num[n]) returntrue; return false; }double left,right; fo原创 2014-04-01 18:02:58 · 651 阅读 · 0 评论 -
NYOJ284优先级队列的应用
坦克大战时间限制:1000 ms | 内存限制:65535 KB难度:3描述Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now. What we are dis原创 2014-04-20 12:07:06 · 728 阅读 · 0 评论 -
迷宫寻宝(一)
迷宫寻宝(一)时间限制:1000 ms | 内存限制:65535 KB难度:4描述一个叫ACM的寻宝者找到了一个藏宝图,它根据藏宝图找到了一个迷宫,这是一个很特别的迷宫,迷宫里有N个编过号的门(N 输入输入可能会有多组测试数据(不超过10组)。每组测试数据的第一行包含了两个整数M,N(1.表示可以走的路S:表示ACM的出发原创 2014-04-18 17:08:13 · 863 阅读 · 0 评论