
搜索
ankerfeng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
NYOJ722数独
http://acm.nyist.net/JudgeOnline/problem.php?pid=722 第一次做这类填数之类的经典题目,借鉴大神的代码,我只是给你备注一下WHY #include #include int 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 · 1041 阅读 · 0 评论 -
NYOJ128前缀式的计算递归求解当时…
题目地址 #include #include char 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 · 677 阅读 · 0 评论 -
NYOJ587blockhouses
题目大意: 题目原创 2014-04-23 16:05:34 · 658 阅读 · 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 · 804 阅读 · 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]) return true; return false; } double left,right; fo原创 2014-04-01 18:02:58 · 724 阅读 · 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 · 796 阅读 · 0 评论 -
迷宫寻宝(一)
迷宫寻宝(一) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 描述 一个叫ACM的寻宝者找到了一个藏宝图,它根据藏宝图找到了一个迷宫,这是一个很特别的迷宫,迷宫里有N个编过号的门(N 输入输入可能会有多组测试数据(不超过10组)。 每组测试数据的第一行包含了两个整数M,N(1 .表示可以走的路 S:表示ACM的出发原创 2014-04-18 17:08:13 · 971 阅读 · 0 评论